cvs: php-master-web /manage mirrors.php /scripts mirror-test

From: Date: Wed, 20 Aug 2003 13:59:37 +0000
Subject: cvs: php-master-web /manage mirrors.php /scripts mirror-test
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-20510@lists.php.net to get a copy of this message
goba Wed Aug 20 09:59:37 2003 EDT Modified files: /php-master-web/scripts mirror-test /php-master-web/manage mirrors.php Log: Better identify mirrors with old stats setups (like old search), so we can clean those out finally, and move to a fully automated stats feature polling, instead of dealing with it on the admin interface Index: php-master-web/scripts/mirror-test diff -u php-master-web/scripts/mirror-test:1.51 php-master-web/scripts/mirror-test:1.52 --- php-master-web/scripts/mirror-test:1.51 Tue Aug 5 06:54:50 2003 +++ php-master-web/scripts/mirror-test Wed Aug 20 09:59:36 2003 @@ -120,8 +120,8 @@ $hosts[$index]['has_search'] = $info[3]; } - // If stats is sure to be supported, update db - if ($info[4] == '1') { + // Update stats availability info + if (in_array($info[4], array('0', '1', '2'))) { $hosts[$index]['has_stats'] = $info[4]; } Index: php-master-web/manage/mirrors.php diff -u php-master-web/manage/mirrors.php:1.76 php-master-web/manage/mirrors.php:1.77 --- php-master-web/manage/mirrors.php:1.76 Sat Aug 16 03:18:30 2003 +++ php-master-web/manage/mirrors.php Wed Aug 20 09:59:37 2003 @@ -363,12 +363,15 @@ if (!$searchcell) { $searchcell = "&nbsp;"; } // Stats information cell - $statscell = '&nbsp;'; - if ($row['has_stats'] == "1") { - $statscell = "<a href=\"http://$row[hostname]/stats/\" target=\"_blank\">" . - "<img src=\"/images/mirror_stats.png\" /></a>"; + $statscell = ''; + if ($row['has_stats'] == "2") { $statscell = '('; } + if (in_array($row['has_stats'], array("1", "2"))) { + $statscell .= "<a href=\"http://$row[hostname]/stats/\" target=\"_blank\">" . + "<img src=\"/images/mirror_stats.png\" /></a>"; $stats['has_stats']++; } + if ($row['has_stats'] == "2") { $statscell .= ')'; } + if (!$statscell) { $statscell = "&nbsp;"; } // Maintainer contact information cell $emailcell = '&nbsp;';

« previous php.mirrors (#20510) next »