about summary refs log tree commit diff stats
path: root/central/trunk/instadisc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/instadisc.php')
-rw-r--r--central/trunk/instadisc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/central/trunk/instadisc.php b/central/trunk/instadisc.php index a1d491a..7af4c1f 100644 --- a/central/trunk/instadisc.php +++ b/central/trunk/instadisc.php
@@ -95,7 +95,7 @@ function instaDisc_sendItem($username, $id)
95function instaDisc_sendUpdateNotice($softwareVersion) 95function instaDisc_sendUpdateNotice($softwareVersion)
96{ 96{
97 $username = instaDisc_getConfig('owner'); 97 $username = instaDisc_getConfig('owner');
98 $subscription = 'http://' . $_SERVER['HTTP_HOST']; 98 $subscription = 'http://fourisland.com/' . $_SERVER['SERVER_NAME'] . '/';
99 $title = 'Update your software to ' . $software; 99 $title = 'Update your software to ' . $software;
100 $author = 'Hatkirby'; 100 $author = 'Hatkirby';
101 $url = 'http://fourisland.com/projects/instadisc/wiki/CentralSoftwareUpdate'; 101 $url = 'http://fourisland.com/projects/instadisc/wiki/CentralSoftwareUpdate';
@@ -312,7 +312,7 @@ function instaDisc_addSubscription($username, $url)
312 { 312 {
313 if ($header['Key'] == $getcode3['code']) 313 if ($header['Key'] == $getcode3['code'])
314 { 314 {
315 $inssub = "INSERT INTO subscriptions (username,url,owner) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($header['Subscription']) . "\", \"true\")"; 315 $inssub = "INSERT INTO subscriptions (username,url,owner,category) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($header['Subscription']) . "\", \"true\", \"" . mysql_real_escape_string($header['Category']) . "\")";
316 $inssub2 = mysql_query($inssub); 316 $inssub2 = mysql_query($inssub);
317 317
318 return true; 318 return true;