cvs: phpweb /bin mirrors.php

From: Date: Sat, 07 Jul 2001 00:43:23 +0000
Subject: cvs: phpweb /bin mirrors.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5245@lists.php.net to get a copy of this message
jimw Fri Jul 6 20:43:23 2001 EDT Modified files: /phpweb/bin mirrors.php Log: set the type of inactive mirrors so they won't show up in the dropdown Index: phpweb/bin/mirrors.php diff -u phpweb/bin/mirrors.php:1.1 phpweb/bin/mirrors.php:1.2 --- phpweb/bin/mirrors.php:1.1 Fri Jul 6 20:12:53 2001 +++ phpweb/bin/mirrors.php Fri Jul 6 20:43:21 2001 @@ -6,6 +6,8 @@ echo "<?php\n\$MIRRORS = array(\n"; while ($row = mysql_fetch_array($res)) { if (!strstr("http:",$row[hostname])) $row[hostname]="http://$row[hostname]/"; + # set inactive mirrors to type 2 so they won't show up in the drop-down. + if (!$row[active]) $row[mirrortype] = 2; echo " \"$row[hostname]\" => array(\"$row[cc]\",\"$row[providername]\",$row[has_stats],\"$row[providerurl]\",$row[mirrortype],$row[has_search],\"$row[lang]\"),\n"; } echo ' 0 => array("xx", "Unknown", 0, "/", 2, 0, "en")', "\n";

« previous php.mirrors (#5245) next »