Source for file oldoffline.php
Documentation is available at oldoffline.php
* Bumblebee base file -- system offline message
* Inform the user that the system is offline.
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* path (bumblebee root)/offline.php
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
/** Load in PHP4/5 compatability layer */
require_once 'inc/compat.php';
/** Load in the user configuration data */
require_once 'inc/config.php';
/** start the database session */
require_once 'inc/db.php';
if ($conf->status->database) {
$conf->mergeDatabaseTable();
$conf->status->offline =
true;
/** load the user and/or admin menu */
require_once 'inc/menu.php';
// $pagetitle can be used in theme/pageheader.php
$pagetitle =
T_('System offline').
' : ' .
$conf->value('main', 'SiteTitle');
$pageheader =
T_('System offline');
/** display the HTML header section */
include 'theme/pageheader.php';
/** display the start of the html content */
include 'theme/contentheader.php';
/** popup information control */
include 'inc/popups.php';
echo
'<div id="bumblebeecontent">';
echo
T_('Sorry, this service is not currently available. Please try again later.');
echo
'<div class="error"><p>'
.
join($conf->status->messages, '</p></p>')
// Cause the page to reload back to the start page periodically to see if things
$interval =
60*
1000; // refresh interval in milliseconds
<script type='text/javascript'>
setTimeout('window.document.location.href=\"$url\"', $interval);
/** display the page footer and close off the html page */
include 'theme/pagefooter.php';
Documentation generated on Tue, 06 Mar 2007 10:01:47 +0000 by phpDocumentor 1.3.0