svn: /web/php-master/trunk/manage/ mirrors.php

From: Date: Thu, 24 Mar 2011 17:08:11 +0000
Subject: svn: /web/php-master/trunk/manage/ mirrors.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10730@lists.php.net to get a copy of this message
danbrown Thu, 24 Mar 2011 17:08:11 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309658 Log: Notify the list that a mirror has been modified as well, and show if it's active or inactive. Changed paths: U web/php-master/trunk/manage/mirrors.php Modified: web/php-master/trunk/manage/mirrors.php =================================================================== --- web/php-master/trunk/manage/mirrors.php 2011-03-24 16:19:01 UTC (rev 309657) +++ web/php-master/trunk/manage/mirrors.php 2011-03-24 17:08:11 UTC (rev 309658) @@ -64,7 +64,7 @@ } // In case a of a mirror is deleted, mail a notice to the - // php-mirrors list, so any malicios deletions can be tracked + // php-mirrors list, so any malicious deletions can be tracked if ($mode == "delete" || $mode == "insert") { $body = "The mirrors list was updated, and $hostname was " . ($mode == "delete" ? "deleted." : "added."); @@ -79,6 +79,13 @@ $body, "From: php-mirrors@lists.php.net" ); + + // If a mirror has been modified, send information safe for public eyes to the + // list: active status, hostname. + } elseif ($mode == 'update') { + $body = 'The mirror '.$hostname.' has been modified by '.$user.'. It\'s status is '; + $body .= isset($active) && $active == true ? 'active.' : 'inactive, and DNS will be disabled.'; + @mail('php-mirrors@lists.php.net','[mirrors] Status change for '.$hostname,$body,"From: php-mirrors@lists.php.net\r\n"); } } } else { @@ -429,7 +436,7 @@ $vnow = 0; foreach($stats['phpversion'] as $version => $amount) { if (empty($version)) { $version = "n/a"; } - $versions .= '<strong>'.$version.'</strong> ('.$amount.')<br/>'.PHP_EOL; + $versions .= '<span style="font-weight:bold;">'.$version.'</span> ('.$amount.')<br/>'.PHP_EOL; if (round(($vcount / 2)) == ++$vnow) { $versions .= '</div>'.PHP_EOL.'<div style="float:right;margin-right:35%;">';//width:120px;">'; }

« previous php.webmaster (#10730) next »