cvs: phpweb / bugs.php /include site.inc
| From: | Jim Winstead | Date: | Wed, 19 Sep 2001 17:54:08 +0000 |
| Subject: | cvs: phpweb / bugs.php /include site.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6448@lists.php.net to get a copy of this message | ||
jimw Wed Sep 19 13:54:08 2001 EDT
Modified files:
/phpweb/include site.inc
/phpweb bugs.php
Log:
no more infinite loop on bugs page
Index: phpweb/include/site.inc
diff -u phpweb/include/site.inc:1.213 phpweb/include/site.inc:1.214
--- phpweb/include/site.inc:1.213 Thu Sep 13 14:27:55 2001
+++ phpweb/include/site.inc Wed Sep 19 13:54:05 2001
@@ -16,6 +16,11 @@
return $MYSITE == "http://www.php.net/";
}
+function is_backup_primary() {
+ global $MYSITE;
+ return $MYSITE == "http://download.php.net/";
+}
+
function default_language() {
global $MIRRORS,$MYSITE;
return $MIRRORS[$MYSITE][6];
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.175 phpweb/bugs.php:1.176
--- phpweb/bugs.php:1.175 Mon Sep 17 13:04:00 2001
+++ phpweb/bugs.php Wed Sep 19 13:54:05 2001
@@ -19,6 +19,13 @@
$dbuser = "nobody";
$dbpwd = "";
} else {
+ if (is_backup_primary()) {
+ commonHeader("Service Unavailable");?>
+<p>Sorry, the bug database is temporarily unavailable.</p>
+<?php
+ commonFooter();
+ exit;
+ }
header("Location: http://www.php.net/bugs.php" . ($QUERY_STRING ?
"?$QUERY_STRING" : ""));
exit;
}