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:
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