From 4419c4c44b18eda0d3a04af882e50be069fee49d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 6 Sep 2008 22:36:16 +0000 Subject: Central: Removed idea of multiple central servers Refs #52 --- central/trunk/includes/instadisc.php | 40 ------------------------------------ 1 file changed, 40 deletions(-) (limited to 'central/trunk/includes') diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index f35d021..438fcfb 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php @@ -97,46 +97,6 @@ function instaDisc_sendItem($username, $id) } } -function instaDisc_sendUpdateNotice($softwareVersion) -{ - $username = instaDisc_getConfig('owner'); - $subscription = 'http://fourisland.com/' . $_SERVER['SERVER_NAME'] . '/'; - $title = 'Update your software to ' . $software; - $author = 'Hatkirby'; - $url = 'http://fourisland.com/projects/instadisc/wiki/CentralSoftwareUpdate'; - $semantics = array(); - - instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics); -} - -function instaDisc_sendDatabase($cserver) -{ - $getdb = "SELECT * FROM centralServers"; - $getdb2 = mysql_query($getdb); - $i=0; - while ($getdb3[$i] = mysql_fetch_array($getdb2)) - { - $db[$getdb3[$i]['url']]['code'] = $getdb3[$i]['code']; - $db[$getdb3[$i]['url']]['xmlrpc'] = $getdb3[$i]['xmlrpc']; - $i++; - } - - $cserver2 = $_SERVER['SERVER_NAME']; - $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver2) . "\""; - $getuk2 = mysql_query($getuk); - $getuk3 = mysql_fetch_array($getuk2); - - $verID = rand(1,2147483647); - - $client = new xmlrpc_client($cserver); - $msg = new xmlrpcmsg("InstaDisc.sendDatabase", array( new xmlrpcval($cserver2, 'string'), - new xmlrpcval(md5($cserver2 . ":" . $getuk3['code'] . ":" . $verID), 'string'), - new xmlrpcval($verID, 'int'), - new xmlrpcval(serialize($db), 'string'), - new xmlrpcval(instaDisc_getConfig('databaseVersion'), 'string'))); - $client->send($msg); -} - function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID = 0) { $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; -- cgit 1.4.1