cvs: php-master-web /scripts mirror-summary
| From: | Gabor Hojtsy | Date: | Thu, 18 Aug 2005 08:49:02 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-summary | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-29017@lists.php.net to get a copy of this message | ||
goba Thu Aug 18 04:49:02 2005 EDT
Modified files:
/php-master-web/scripts mirror-summary
Log:
remove maintainer information from overview emails, since noone really used this mail to directly
contact maintainers, and plain email addresses are vulnerable to spam bots
http://cvs.php.net/diff.php/php-master-web/scripts/mirror-summary?r1=1.15&r2=1.16&ty=u
Index: php-master-web/scripts/mirror-summary
diff -u php-master-web/scripts/mirror-summary:1.15 php-master-web/scripts/mirror-summary:1.16
--- php-master-web/scripts/mirror-summary:1.15 Sun Nov 21 07:37:43 2004
+++ php-master-web/scripts/mirror-summary Thu Aug 18 04:48:58 2005
@@ -44,26 +44,30 @@
. "Edit mirror listings here: http://master.php.net/manage/mirrors.php\n\n";
// List mirrors which seem to be down
-$body .= "No response was returned from these following hosts within the last three
days:\n\n";
for ($i=0; $i < $total; $i++) {
if (!$hosts[$i]['active']) {
- $body .= sprintf("%s -- %s\n", $hosts[$i]['hostname'],
$hosts[$i]['maintainer']);
$inactives[$hosts[$i]['hostname']] = array($hosts[$i]['maintainer'],
$hosts[$i]['ocmt']);
}
}
+if (count($inactives)) {
+ $body .= "No response was returned from these following hosts within the last three
days:\n\n";
+ $body .= wordwrap(join(', ', array_keys($inactives))) . "\n";
+}
// List all mirrors which seem to be outdated
-$body .= "\nThese mirrors have not been updated in at least 7 days:\n\n";
for ($i=0; $i < $total; $i++) {
if ($hosts[$i]['active'] && !$hosts[$i]['current']) {
- $body .= sprintf("%s -- %s\n", $hosts[$i]['hostname'],
$hosts[$i]['maintainer']);
$outdated[$hosts[$i]['hostname']] = array($hosts[$i]['maintainer'],
$hosts[$i]['ocmt']);
}
}
+if (count($outdated)) {
+ $body .= "\nThese mirrors have not been updated in at least 7 days:\n\n";
+ $body .= wordwrap(join(', ', array_keys($outdated))) . "\n";
+}
$body .= "\nAnd now for the rest of the mirrors:\n"
.
"----------------------------------------------------------------------------------------\n"
- . " Host \t\t PHP Version \t\t Last Updated\t\t Maintainer\n"
+ . " Host \t\t PHP Version \t\t Last Updated\n"
.
"----------------------------------------------------------------------------------------\n";
/* A note about the padding - given that email readers produce interesting results for spacing,
@@ -88,7 +92,7 @@
for ($i=0; $i < $total; $i++) {
if ($hosts[$i]['active'] && $hosts[$i]['current']){
- $body .= sprintf(" %s%s%s%s%s\t\t%s\n", $hosts[$i]['hostname'], pad(11,
"hostname"), $hosts[$i]['phpversion'], pad(5, "phpversion"),
date("F j, Y, g:i a", $hosts[$i]['lastupdate']),
$hosts[$i]['maintainer']);
+ $body .= sprintf(" %s%s%s%s%s\n", $hosts[$i]['hostname'], pad(11,
"hostname"), $hosts[$i]['phpversion'], pad(5, "phpversion"),
date("F j, Y, g:i a", $hosts[$i]['lastupdate']));
}
}
@@ -105,7 +109,7 @@
// Mail text for those mirror maintainers with inactive mirror sites
$inactives_text = "Hi!\n\nOur automatic mirror site check was unable to reach\n"
."the PHP.net mirror site maintained by you for three or more days\n"
- ."now, *or* have found a critical error in your mirror setup.\n"
+ ."now, *or* have found a permanent fatal error in your mirror setup.\n"
."Therefore our bot automatically disabled your listing as an\n"
."official PHP.net mirror site.\n\n"
."{{lasterror}}"