mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
more fixes for backup primary
This commit is contained in:
@@ -8,6 +8,14 @@ if (is_primary_site() || strstr($MYSITE,"localhost")) {
|
||||
$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/bug-pwd-finder.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
require_once 'prepend.inc';
|
||||
|
||||
if(!is_primary_site()) {
|
||||
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/bugstats.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
9
cal.php
9
cal.php
@@ -1,12 +1,17 @@
|
||||
<?php
|
||||
include_once 'prepend.inc';
|
||||
|
||||
/*
|
||||
if (!is_primary_site()) {
|
||||
if (is_backup_primary()) {
|
||||
commonHeader("Service Unavailable");?>
|
||||
<p>Sorry, the event calendar is temporarily unavailable.</p>
|
||||
<?php
|
||||
commonFooter();
|
||||
exit;
|
||||
}
|
||||
header("Location: http://www.php.net/cal.php");
|
||||
exit;
|
||||
}
|
||||
*/
|
||||
if (!isset($format)) {
|
||||
$format = 'html';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user