cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Sun, 05 Jan 2003 18:41:11 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14755@lists.php.net to get a copy of this message | ||
goba Sun Jan 5 13:41:11 2003 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
Provide some information on when the last mirror check was successfull
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.24 php-master-web/manage/mirrors.php:1.25
--- php-master-web/manage/mirrors.php:1.24 Sun Jan 5 13:32:20 2003
+++ php-master-web/manage/mirrors.php Sun Jan 5 13:41:11 2003
@@ -199,6 +199,10 @@
exit();
}
+// Select last mirror check time from table
+$lct = mysql_query("SELECT UNIX_TIMESTAMP(lastchecked) FROM mirrors ORDER BY lastchecked DESC
LIMIT 1");
+list($checktime) = mysql_fetch_row($lct);
+
// Query whole mirror list and display all of them. The query is
// similar to one in the mirror fetch script. We need to get mirror
// status data to show colors and need to order by country too to make
@@ -228,6 +232,9 @@
An automatically deactivated mirror cannot be activated manually. It will be activated after
the next run of the automatic check (if the mirror is all right). Deactivated mirror maintainers
get notices of the deactivation.
+</p>
+<p>
+ Last mirror check time: <?php echo gmdate("Y/m/d H:i:s GMT", $checktime); ?>
</p>
<table border="0" cellspacing="1" width="100%">
<tr bgcolor="#aaaaaa">