Source for file offline.php

Documentation is available at offline.php

  1. <?php
  2. /**
  3. * System offline message
  4. *
  5. @author    Stuart Prescott
  6. @copyright  Copyright Stuart Prescott
  7. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  8. @version    $Id: offline.php,v 1.1 2007/02/09 00:19:48 themill Exp $
  9. @package    Bumblebee
  10. @subpackage Actions
  11. *
  12. *  path (bumblebee root)/inc/actions/login.php
  13. */
  14.  
  15. /** Load ancillary functions */
  16. require_once 'inc/typeinfo.php';
  17.  
  18. /** parent object */
  19. require_once 'inc/actions/actionaction.php';
  20.  
  21. /**
  22. * Print a polite message to inform the user that the system is offline
  23. *
  24. * Authentication is undertaken by the class BumblebeeAuth
  25. @package    Bumblebee
  26. @subpackage Actions
  27. */
  28. class ActionOffline extends ActionAction {
  29.  
  30.   /**
  31.   * Initialising the class
  32.   *
  33.   * @return void nothing
  34.   */
  35.   function ActionOffline($auth$PDATA{
  36.     parent::ActionAction($auth$PDATA);
  37.     $this->mungeInputData();
  38.   }
  39.  
  40.   function go({
  41.     $conf ConfigReader::getInstance();
  42.  
  43.     echo T_('Sorry, this service is not currently available. Please try again later.');
  44.  
  45.     echo '<div class="error"><p>'
  46.             .join($conf->status->messages'</p></p>')
  47.           .'</p></div>';
  48.  
  49.     // Cause the page to reload back to the start page periodically to see if things
  50.     // are alive again.
  51.     $url makeURL();
  52.     $interval 60*1000;   // refresh interval in milliseconds
  53.     echo "
  54.       <script type='text/javascript'>
  55.         setTimeout('window.document.location.href=\"$url\"', $interval);
  56.       </script>
  57.       ";
  58.   }
  59.  
  60. }
  61.  
  62. ?>

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