From 8bbbfe024dbe6d585598e919a26ece82cccc71a1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 8 Aug 2008 13:23:20 +0000 Subject: 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 --- central/trunk/instadisc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'central/trunk/instadisc.php') 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) function instaDisc_sendUpdateNotice($softwareVersion) { $username = instaDisc_getConfig('owner'); - $subscription = 'http://' . $_SERVER['HTTP_HOST']; + $subscription = 'http://fourisland.com/' . $_SERVER['SERVER_NAME'] . '/'; $title = 'Update your software to ' . $software; $author = 'Hatkirby'; $url = 'http://fourisland.com/projects/instadisc/wiki/CentralSoftwareUpdate'; @@ -312,7 +312,7 @@ function instaDisc_addSubscription($username, $url) { if ($header['Key'] == $getcode3['code']) { - $inssub = "INSERT INTO subscriptions (username,url,owner) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($header['Subscription']) . "\", \"true\")"; + $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']) . "\")"; $inssub2 = mysql_query($inssub); return true; -- cgit 1.4.1