=$errorTitle;?>

array('Bad Request', 'The server cannot or will not process the request due to an apparent client error.', 'sowwy'), 401 => array('Unauthorized', 'You do not have access to this page.', 'sowwy'), 403 => array('Forbidden', 'The server has refused to fulfill your request.', 'sowwy'), 404 => array('Not Found', $requested . ' was not found on this server.', 'confused'), 405 => array('Method Not Allowed', 'The method specified in the Request-Line is not allowed for the specified resource.', 'confused'), 408 => array('Request Timeout', 'Your browser failed to send a request in the time allowed by the server.', 'sowwy'), 500 => array('Internal Server Error', 'The request was unsuccessful due to an unexpected condition encountered by the server.', 'confused'), 502 => array('Bad Gateway', 'The server received an invalid response from the upstream server while trying to fulfill the request.', 'confused'), 503 => array('Service Unavailable', 'The server is currently unavailable (because it is overloaded or down for maintenance).', 'confused'), 504 => array('Gateway Timeout', 'The upstream server failed to send a request in the time allowed by the server.', 'confused'), 999 => array('Not Logged In', 'You need to be logged in to access this page.', 'confused'), ); @$errorTitle = $codes[$status][0]; @$message = $codes[$status][1]; @$errorImage = $codes[$status][2]; if ($errorTitle == false || strlen($status) != 3) { $message = 'Please supply a valid status code.'; $errorTitle = "Error"; $errorImage = "confused"; } $data = false; ini_set("display_errors", 1); ini_set("error_reporting", E_ALL | E_STRICT); require_once("user.php"); require_once("functions.php"); $USER = new User("registration_callback"); $dbfile = DATABASE_LOCATION.'users.db'; $file_db = new PDO("sqlite:" . $dbfile); $file_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $dbOptions = $file_db->query('SELECT name FROM sqlite_master WHERE type="table" AND name="options"'); $hasOptions = "No"; foreach($dbOptions as $row) : if (in_array("options", $row)) : $hasOptions = "Yes"; endif; endforeach; if($hasOptions == "No") : $title = "Organizr"; $topbar = "#333333"; $topbartext = "#66D9EF"; $bottombar = "#333333"; $sidebar = "#393939"; $hoverbg = "#AD80FD"; $activetabBG = "#F92671"; $activetabicon = "#FFFFFF"; $activetabtext = "#FFFFFF"; $inactiveicon = "#66D9EF"; $inactivetext = "#66D9EF"; $loading = "#66D9EF"; $hovertext = "#000000"; endif; if($hasOptions == "Yes") : $resulto = $file_db->query('SELECT * FROM options'); foreach($resulto as $row) : $title = isset($row['title']) ? $row['title'] : "Organizr"; $topbartext = isset($row['topbartext']) ? $row['topbartext'] : "#66D9EF"; $topbar = isset($row['topbar']) ? $row['topbar'] : "#333333"; $bottombar = isset($row['bottombar']) ? $row['bottombar'] : "#333333"; $sidebar = isset($row['sidebar']) ? $row['sidebar'] : "#393939"; $hoverbg = isset($row['hoverbg']) ? $row['hoverbg'] : "#AD80FD"; $activetabBG = isset($row['activetabBG']) ? $row['activetabBG'] : "#F92671"; $activetabicon = isset($row['activetabicon']) ? $row['activetabicon'] : "#FFFFFF"; $activetabtext = isset($row['activetabtext']) ? $row['activetabtext'] : "#FFFFFF"; $inactiveicon = isset($row['inactiveicon']) ? $row['inactiveicon'] : "#66D9EF"; $inactivetext = isset($row['inactivetext']) ? $row['inactivetext'] : "#66D9EF"; $loading = isset($row['loading']) ? $row['loading'] : "#66D9EF"; $hovertext = isset($row['hovertext']) ? $row['hovertext'] : "#000000"; endforeach; endif; ?>