]> git.wh0rd.org - tt-rss.git/blobdiff - error.php
remove PG_VERSION config variable, get version from server
[tt-rss.git] / error.php
index 1fd59ed700ee5873fe4e4b45b7c4eff1947da16a..8c5a6a4b5efb761148197b6ec1e0392c3da84604 100644 (file)
--- a/error.php
+++ b/error.php
@@ -1,4 +1,5 @@
 <?
+       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>