cvs: phpweb /bin mirrors.php
| From: | Rasmus Lerdorf | Date: | Thu, 20 Sep 2001 20:45:21 +0000 |
| Subject: | cvs: phpweb /bin mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6502@lists.php.net to get a copy of this message | ||
rasmus Thu Sep 20 16:45:21 2001 EDT
Modified files:
/phpweb/bin mirrors.php
Log:
Real fix
Index: phpweb/bin/mirrors.php
diff -u phpweb/bin/mirrors.php:1.4 phpweb/bin/mirrors.php:1.5
--- phpweb/bin/mirrors.php:1.4 Thu Sep 20 16:22:51 2001
+++ phpweb/bin/mirrors.php Thu Sep 20 16:45:21 2001
@@ -1,6 +1,11 @@
<?php
-require_once 'prepend.inc';
+$MYSITE = 'http://' . getenv("SERVER_NAME") .
'/';
+
+function is_primary_site() {
+ global $MYSITE;
+ return $MYSITE == "http://www.php.net/";
+}
// This file is intended to be used on php.net only!
if (!is_primary_site()) { exit; }