From 74dafd4ec901db76148cc0894b94d0e80fadec08 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 4 Aug 2008 14:39:11 +0000 Subject: Central: Reverted instadisc.php For some reason, instadisc.php was accidentally replaced with xmlrpc.php and commited. It has been reverted now. Also, xmlrpc.php has been using $_SERVER['HTTP_HOST'], but that variable returns the server's address PLUS the port number. $_SERVER['SERVER_NAME'] is much more appropriate for this instance. --- central/trunk/xmlrpc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'central/trunk/xmlrpc.php') diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 3b734ad..95d439d 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php @@ -125,7 +125,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription instaDisc_sendUpdateNotice($softwareVersion); } else if ($softwareVersion < instaDisc_getConfig('softwareVersion')) { - $cserver2 = $_SERVER['HTTP_HOST']; + $cserver2 = $_SERVER['SERVER_NAME']; $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver2) . "\""; $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); @@ -142,7 +142,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription if ($databaseVersion > instaDisc_getConfig('databaseVersion')) { - $cserver2 = $_SERVER['HTTP_HOST']; + $cserver2 = $_SERVER['SERVER_NAME']; $getuk = "SELECT * FROM centralServers WHERE url = \"" . mysql_real_escape_string($cserver2) . "\""; $getuk2 = mysql_query($getuk); $getuk3 = mysql_fetch_array($getuk2); -- cgit 1.4.1