Source for file oldoffline.php

Documentation is available at oldoffline.php

  1. <?php
  2. /**
  3. * Bumblebee base file -- system offline message
  4. *
  5. * Inform the user that the system is offline.
  6. *
  7. @author     Stuart Prescott
  8. @copyright  Copyright Stuart Prescott
  9. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  10. @version    $Id$
  11. @package    Bumblebee
  12. *
  13. *  path (bumblebee root)/offline.php
  14. */
  15.  
  16. define('BUMBLEBEE'true);
  17. /** Load ancillary functions */
  18. require_once 'inc/typeinfo.php';
  19.  
  20.  
  21. /** Load in PHP4/5 compatability layer */
  22. require_once 'inc/compat.php';
  23. /** Load in the user configuration data */
  24. require_once 'inc/config.php';
  25.  
  26. $NON_FATAL_DB true;
  27. /** start the database session */
  28. require_once 'inc/db.php';
  29.  
  30. $conf ConfigReader::getInstance();
  31. if ($conf->status->database{
  32.   $conf->mergeDatabaseTable();
  33. }
  34. $conf->ParseConfig();
  35. $conf->status->offline true;
  36.  
  37. /** load the user and/or admin menu */
  38. require_once 'inc/menu.php';
  39.  
  40. // $pagetitle can be used in theme/pageheader.php
  41. $pagetitle  T_('System offline')' : ' $conf->value('main''SiteTitle');
  42. $pageheader T_('System offline');
  43. $pageBaseRef makeURL();
  44. /** display the HTML header section */
  45. include 'theme/pageheader.php';
  46. /** display the start of the html content */
  47. include 'theme/contentheader.php';
  48. /** popup information control */
  49. include 'inc/popups.php';
  50.  
  51. echo '<div id="bumblebeecontent">';
  52. echo T_('Sorry, this service is not currently available. Please try again later.');
  53.  
  54. echo '<div class="error"><p>'
  55.     .join($conf->status->messages'</p></p>')
  56.     .'</p></div>';
  57.  
  58. echo '</div>';
  59.  
  60. // Cause the page to reload back to the start page periodically to see if things
  61. // are alive again.
  62. $url makeURL();
  63. $interval 60*1000;   // refresh interval in milliseconds
  64. echo "
  65.       <script type='text/javascript'>
  66.         setTimeout('window.document.location.href=\"$url\"', $interval);
  67.       </script>
  68.     ";
  69.  
  70. /** display the page footer and close off the html page */
  71. include 'theme/pagefooter.php';
  72.  
  73. ?>

Documentation generated on Tue, 06 Mar 2007 10:01:47 +0000 by phpDocumentor 1.3.0