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/install.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/install.php')
-rw-r--r-- | central/trunk/install.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/central/trunk/install.php b/central/trunk/install.php index 46300c8..2722b1f 100644 --- a/central/trunk/install.php +++ b/central/trunk/install.php | |||
@@ -198,6 +198,7 @@ if (!isset($_GET['submit'])) | |||
198 | $sql[10] = "INSERT INTO config (name,value) VALUES (\"databaseVersion\",\"1\")"; | 198 | $sql[10] = "INSERT INTO config (name,value) VALUES (\"databaseVersion\",\"1\")"; |
199 | $sql[11] = "INSERT INTO users (username, password, email, ip) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\",\"" . mysql_real_escape_string(md5($_POST['adminPass'])) . "\",\"" . mysql_real_escape_string($_POST['adminEmail']) . "\",\"" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "\")"; | 199 | $sql[11] = "INSERT INTO users (username, password, email, ip) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\",\"" . mysql_real_escape_string(md5($_POST['adminPass'])) . "\",\"" . mysql_real_escape_string($_POST['adminEmail']) . "\",\"" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "\")"; |
200 | $sql[12] = "INSERT INTO centralServers (url, code, xmlrpc) VALUES (\"" . mysql_real_escape_string('central.fourisland.com') . "\",\"" . mysql_real_escape_string(md5('central.fourisland.com')) . "\",\"" . mysql_real_escape_string('http://central.fourisland.com/xmlrpc.php') . "\")"; | 200 | $sql[12] = "INSERT INTO centralServers (url, code, xmlrpc) VALUES (\"" . mysql_real_escape_string('central.fourisland.com') . "\",\"" . mysql_real_escape_string(md5('central.fourisland.com')) . "\",\"" . mysql_real_escape_string('http://central.fourisland.com/xmlrpc.php') . "\")"; |
201 | $sql[13] = "INSERT INTO subscriptions (username, url, owner, category) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\", \"" . mysql_real_escape_string('http://fourisland.com/' . $_SERVER['SERVER_NAME'] . '/') . "\", \"true\", \"instadisc\")"; | ||
201 | 202 | ||
202 | foreach ($sql as $name => $value) | 203 | foreach ($sql as $name => $value) |
203 | { | 204 | { |