<?php /* ------------------------------------------------------ * INCLUDE CLASS DEFINITION PRIOR TO INITIALIZING * ------------------------------------------------------ */ require_once 'classes/MySQLHandler.php'; $lErrorMessage = ""; try { MySQLHandler::databaseAvailable(); } catch (Exception $e) { $lErrorMessage = $e->getMessage(); } //Here because of very weird error session_start(); $lSubmitButtonClicked = isset($_REQUEST["database-offline-php-submit-button"]); if ($lSubmitButtonClicked) { $_SESSION["UserOKWithDatabaseFailure"] = "TRUE"; header("Location: index.php", true, 302); } //end if ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="./styles/global-styles.css" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Database Offline</title> </head> <div class="page-title">The database server appears to be offline.</div>