cvs: phpweb / downloads.php
| From: | Gabor Hojtsy | Date: | Sat, 21 Dec 2002 13:41:30 +0000 |
| Subject: | cvs: phpweb / downloads.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14378@lists.php.net to get a copy of this message | ||
goba Sat Dec 21 08:41:30 2002 EDT
Modified files:
/phpweb downloads.php
Log:
Removing old mirror detection code, as it is not used
anymore, it was not a too close approximation and the
geoip method is also on the horizon.
Index: phpweb/downloads.php
diff -u phpweb/downloads.php:1.148 phpweb/downloads.php:1.149
--- phpweb/downloads.php:1.148 Sun Dec 15 11:42:08 2002
+++ phpweb/downloads.php Sat Dec 21 08:41:30 2002
@@ -6,7 +6,6 @@
*
**********************************************************************/
-
require_once 'prepend.inc';
header("Cache-Control: private");
@@ -67,53 +66,6 @@
?>
<h1>Latest version of PHP</h1>
-
-<?php
-
-/* ******** DONT NEED THIS NOW, WITH THE NEW MIRROR LISTING PAGE
-
-echo '<p>';
-echo 'Before you download, please make sure you are using a <a
href="mirrors.php">mirror</a> close to you.';
-
-$cm = find_closest_mirrors();
-$cmn = count($cm);
-if ($cmn > 0) {
- if(!in_array("http://$server/", $cm)) {
- echo "We found ";
- echo ($cmn > 1 ? "$cmn mirrors" : "a mirror");
- echo " near you. We recommend that you use one of these.\n";
- echo " Please visit: ";
- foreach ($cm as $num => $mirror) {
- echo '<a href="' . $mirror . 'downloads.php">' .
$mirror . '</a>';
- if ($num < $cmn-1) { echo " or "; }
- }
- echo ". You can also change mirrors at the bottom of this page.";
- 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.";
- $mirror = "";
- }
-} else {
- echo "You can change mirrors at the bottom of the page.";
- srand ((double)microtime()*1000000);
-
- if ($server == "www.php.net" || $server == "php.net") {
- $default_mirrors = array("http://us2.php.net/", "http://us3.php.net/","http://rs1.php.net/");
- $mirror = $default_mirrors[rand(0, count($default_mirrors)-1)];
- } else {
- $mirror = "";
- }
-}
-echo '</p>';
-
-***************** */
-
-?>
-
<h2>Complete Source Code</h2>
<ul>