cvs: phpweb / downloads.php
| From: | Gabor Hojtsy | Date: | Tue, 23 Jul 2002 11:09:49 +0000 |
| Subject: | cvs: phpweb / downloads.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11487@lists.php.net to get a copy of this message | ||
goba Tue Jul 23 07:09:49 2002 EDT
Modified files:
/phpweb downloads.php
Log:
Do not drive traffic from mirrors to another mirror, this was
intended to drive traffic far from php.net (the main server).
Index: phpweb/downloads.php
diff -u phpweb/downloads.php:1.121 phpweb/downloads.php:1.122
--- phpweb/downloads.php:1.121 Mon Jul 22 19:39:05 2002
+++ phpweb/downloads.php Tue Jul 23 07:09:47 2002
@@ -75,12 +75,16 @@
if ($num < $cmn-1) { echo " or "; }
}
echo ". You can also change mirrors at the bottom of this page.";
- $mirror = $cm[0];
+ if ($server == "www.php.net" || $server == "php.net") {
+ $mirror = $cm[0];
+ } else {
+ $mirror = "http://$server/";
+ }
} else {
echo "You can change mirrors at the bottom of the page.";
srand ((double)microtime()*1000000);
- if ($server == "www.php.net") {
+ if ($server == "www.php.net" || $server == "php.net") {
$default_mirrors = array("http://us2.php.net/", "http://ca.php.net", "http://us3.php.net","http://rs1.php.net");
$mirror = $default_mirrors[rand(0, count($default_mirrors)-1)];
} else {