cvs: php-master-web /scripts mirror-test

From: Date: Sun, 02 Jun 2002 04:12:05 +0000
Subject: cvs: php-master-web /scripts mirror-test
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10612@lists.php.net to get a copy of this message
jimw Sun Jun 2 00:12:05 2002 EDT Modified files: /php-master-web/scripts mirror-test Log: don't enable/disable mirrors. this gets too many wrong. Index: php-master-web/scripts/mirror-test diff -u php-master-web/scripts/mirror-test:1.5 php-master-web/scripts/mirror-test:1.6 --- php-master-web/scripts/mirror-test:1.5 Wed May 22 07:40:12 2002 +++ php-master-web/scripts/mirror-test Sun Jun 2 00:12:05 2002 @@ -23,9 +23,8 @@ /* make all hosts active again -- cop out / cheat to get around the deactivation later */ -$query = "UPDATE mirrors SET active = 1 WHERE mirrortype = 1 "; - -$result = mysql_query($query) or die("unable to update the database"); +#$query = "UPDATE mirrors SET active = 1 WHERE mirrortype = 1 "; +#$result = mysql_query($query) or die("unable to update the database"); /* now this stage takes a long time, and we need to go out of PHP to execute it, so we are going to write that info to a file */ @@ -113,7 +112,7 @@ mysql_connect("localhost","nobody","") or die("unable to connect to database"); mysql_select_db("php3"); $query = "UPDATE mirrors SET active = 0 WHERE hostname = '" . $hosts[$i]['hostname'] . "'"; - $result = mysql_query($query) or die("unable to get from the database"); +# $result = mysql_query($query) or die("unable to get from the database"); } }

« previous php.mirrors (#10612) next »