diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-08 13:23:20 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-08 13:23:20 +0000 |
commit | 8bbbfe024dbe6d585598e919a26ece82cccc71a1 (patch) | |
tree | ef67385a27bc9cd8ae1bee864a022de2986f88e8 /central/trunk/instadisc.php | |
parent | 4116da2199a163a72860f6265d52a2ae0b860967 (diff) | |
download | instadisc-8bbbfe024dbe6d585598e919a26ece82cccc71a1.tar.gz instadisc-8bbbfe024dbe6d585598e919a26ece82cccc71a1.tar.bz2 instadisc-8bbbfe024dbe6d585598e919a26ece82cccc71a1.zip |
Central: Imposed "instadisc" category contract
Now Central Servers will refuse to receive items with the category of "instadisc". However, the Client has to be modifed to send this data to the Central Server. Also added the Central Server Update Notice subscription to the database and provided a subscription file. Refs #26
Diffstat (limited to 'central/trunk/instadisc.php')
-rw-r--r-- | central/trunk/instadisc.php | 4 |
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) | |||
95 | function instaDisc_sendUpdateNotice($softwareVersion) | 95 | function 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; |