cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Tue, 12 Aug 2003 18:10:47 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20181@lists.php.net to get a copy of this message | ||
goba Tue Aug 12 14:10:47 2003 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
More enjoyable printout of the stats, and move legend into the text
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.71 php-master-web/manage/mirrors.php:1.72
--- php-master-web/manage/mirrors.php:1.71 Thu Aug 7 13:28:50 2003
+++ php-master-web/manage/mirrors.php Tue Aug 12 14:10:47 2003
@@ -268,12 +268,7 @@
<h1>Resources</h1>
<a href="http://php.net/mirroring.php"
target="_blank">Guidelines</a><br />
<a href="mailto:mirrors@php.net">Mailing list</a><br
/>
- <a href="http://www.iana.org/cctld/cctld-whois.htm"
target="_blank">Country TLDs</a><br />
- <h1>Legend</h1>
- <img src="/images/mirror_ok.png" /> Properly working<br />
- <img src="/images/mirror_special.png" /> Special site<br />
- <img src="/images/mirror_deactivated.png" /> Deactivated<br />
- <img src="/images/mirror_error.png" /> Outdated or inaccessible<br />
+ <a href="http://www.iana.org/cctld/cctld-whois.htm"
target="_blank">Country TLDs</a>
<h1>Last check time</h1>
<?php echo gmdate("Y/m/d H:i:s", $checktime); ?> GMT
</div>
@@ -428,12 +423,29 @@
$summary .= '</table></div>';
-// Print out mirror statistics and the summary table
-echo '<pre>'; var_dump($stats); echo '</pre>' . $summary;
+// Sort in reverse PHP version order and produce string
+arsort($stats['phpversion']);
+$versions = "";
+foreach($stats['phpversion'] as $version => $amount) {
+ $versions .= "<strong>$version</strong>: $amount,";
+}
+$versions = substr($versions, 0, -1);
-?>
-<p><a href="<?php echo $PHP_SELF;?>?id=0">Add a new
mirror</a></p>
-<?php
+echo <<<EOS
+<p>
+ Total number of mirrors: {$stat['mirrors']} of which {$stat['disabled']} is
manually
+ disabled (<img src="/images/mirror_deactivated.png" />) and
{$stat['autodisabled']}
+ is automatically disabled (<img src="/images/mirror_error.png" />). Other sites
are
+ properly working (<img src="/images/mirror_ok.png" />) Of all the sites,
+ {$stat['has_search']} has onsite search support (<img
src="/images/mirror_search.png" />)
+ and {$stat['has_stats']} has stats support (<img
src="/images/mirror_stats.png" />).
+ The PHP versions used on the sites are {$versions}.
+</p>
+
+$summary
+
+<p><a href="/manage/mirrors.php?id=0">Add a new mirror</a></p>
+EOS;
// Print out footer (end of script run)
foot();