<?
+ require_once "sanity_check.php";
require_once "version.php";
require_once "config.php";
require_once "db-prefs.php";
$ERRORS[5] = "Incorrect database schema version.";
+ $ERRORS[6] = "Not authorized.";
+
+ if ($_GET["c"] == 6) {
+ header("Location: login.php");
+ }
+
+ $ERRORS[7] = "No operation to perform.";
+
+ $ERRORS[8] = "Could not display feed: query failed. Please check label match syntax or local configuration.";
+
+ $ERRORS[8] = "Denied. Your access level is insufficient to access this page.";
?>
<html>
<h1>Fatal Error</h1>
- <div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?></div>
+ <div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?>
+
+ <? if ($_GET["p"]) { ?>
+ <p><?= htmlspecialchars($_GET["p"]) ?></p>
+ <? } ?>
+ </div>
</td>
</tr>