예제 #1
0
 /**
  * Set a maintenance page.
  *
  * @access public
  * @static
  * @param integer $iMaintenanceTime Time site will be down for (in seconds).
  * @return void
  */
 public static function maintenance($iMaintenanceTime)
 {
     // Set the HTTP status codes for the Maintenance page
     Http::setMaintenanceCodes($iMaintenanceTime);
     // Prevent caching in the browser
     (new Browser())->noCache();
     // Inclusion of the HTML Maintenance page
     include PH7_PATH_SYS . 'global/views/' . PH7_DEFAULT_THEME . '/other/maintenance.html.php';
     // Stop script
     exit;
 }