cvs: php-master-web /manage mirrors.php
| From: | Philip Olson | Date: | Sat, 11 Apr 2009 15:54:57 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4390@lists.php.net to get a copy of this message | ||
philip Sat Apr 11 15:54:57 2009 UTC
Modified files:
/php-master-web/manage mirrors.php
Log:
- Made sqlite2 check logic logical again
- Updated moreinfo to be more useful
- Added on/off flag to the more info link
http://cvs.php.net/viewvc.cgi/php-master-web/manage/mirrors.php?r1=1.106&r2=1.107&diff_format=u
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.106 php-master-web/manage/mirrors.php:1.107
--- php-master-web/manage/mirrors.php:1.106 Wed Apr 8 23:53:42 2009
+++ php-master-web/manage/mirrors.php Sat Apr 11 15:54:57 2009
@@ -353,11 +353,9 @@
if (!$searchcell) { $searchcell = " "; }
*/
- if ($row['has_search']) {
+ if (is_sqlite_type_available($row['has_search'], 'sqlite')) {
$searchcell = "SQLite 2";
- if (is_sqlite_type_available($row['has_search'], 'sqlite')) {
- $stats['has_search']++;
- }
+ $stats['has_search']++;
} else {
$searchcell = " ";
}
@@ -424,7 +422,8 @@
if ($moreinfo) {
$summary .= '<tr><tr bgcolor="#e0e0e0"><td
bgcolor="#ffffff"> </td>' .
'<td colspan="7">' .
- "Last -- Update: $row[ulastupdated] Check:
$row[ulastchecked]" .
+ ' Last update: ' . date($row['ulastupdated'],
DATE_RSS) .
+ ' SQLites: ' . implode(' : ',
decipher_available_sqlites($row['has_search'])) .
'</td></tr>';
}
}
@@ -448,7 +447,8 @@
$last_check_time = get_print_date($checktime);
$current_time = get_print_date(time());
- $stats['ok'] = $stats['mirrors'] - $stats['autodisabled'] -
$stats['disabled'];
+ $stats['ok'] = $stats['mirrors'] - $stats['autodisabled'] -
$stats['disabled'];
+ $moreinfo_flag = empty($moreinfo) ? 1 : 0;
echo <<<EOS
<div id="resources">
@@ -493,7 +493,7 @@
</tr>
</table>
<h1>Resources</h1>
- <a href="/manage/mirrors.php?mi=1">See more info</a><br />
+ <a href="/manage/mirrors.php?mi={$moreinfo_flag}">See more info</a><br
/>
<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>