com web/master: Add a link to the mirror-info page for quick observation.: manage/mirrors.php
| From: | Daniel P. Brown | Date: | Tue, 09 Oct 2012 20:57:18 +0000 |
| Subject: | com web/master: Add a link to the mirror-info page for quick observation.: manage/mirrors.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14818@lists.php.net to get a copy of this message | ||
Commit: 6217678165e085979d07204a88994b0655446560
Author: Daniel P. Brown <danbrown@php.net> Tue, 9 Oct 2012 16:57:18 -0400
Parents: e6959bcb395f4319d71677c4462339d3c4dd1738
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=6217678165e085979d07204a88994b0655446560
Log:
Add a link to the mirror-info page for quick observation.
Changed paths:
M manage/mirrors.php
Diff:
diff --git a/manage/mirrors.php b/manage/mirrors.php
index 585d493..a9d01a0 100644
--- a/manage/mirrors.php
+++ b/manage/mirrors.php
@@ -467,7 +467,8 @@ function page_mirror_list($moreinfo = false)
// Print out mirror site link
$summary .= '<td class="rounded"><a href="http://' . $row['hostname'] . '/"
target="_blank">' .
- $row['hostname'] . '</a><br /></td>' .
"\n";
+ $row['hostname'] . '</a>'.PHP_EOL .
+ ' <a href="http://'.$row['hostname'].'/mirror-info"
target="_blank"><img src="/images/mirror_info.png"/></a><br
/></td>' . "\n";
// Print out mirror provider information
$summary .= '<td class="rounded"><a href="' .
$row['providerurl'] . '">' .
@@ -508,7 +509,7 @@ function page_mirror_list($moreinfo = false)
// If any info on the error of this mirror is available, print it out
if ($errorinfo) {
$summary .= "<tr class=\"mirrorerror\"><td
bgcolor=\"#ffffff\"></td>" .
- "<td colspan=\"7\" class=\"rounded\"><img
src=\"/images/mirror_info.png\" /> <small>";
+ "<td colspan=\"7\" class=\"rounded\"><img
src=\"/images/mirror_notice.png\" /> <small>";
if (($errorblock = preg_split('/==\r?\n/',$errorinfo)) != 0) {
$summary .= nl2br($errorblock[(count($errorblock)-1)]);
} else {