2 require_once "sanity_check.php";
3 require_once "version.php";
4 require_once "config.php";
5 require_once "db-prefs.php";
7 $ERRORS[0] = "Unknown error";
9 $ERRORS[1] = "This program requires XmlHttpRequest " .
10 "to function properly. Your browser doesn't seem to support it.";
12 $ERRORS[2] = "This program requires cookies " .
13 "to function properly. Your browser doesn't seem to support them.";
15 $ERRORS[3] = "Backend sanity check failed.";
17 $ERRORS[4] = "Frontend sanity check failed.";
19 $ERRORS[5] = "Incorrect database schema version.";
21 $ERRORS[6] = "Not authorized.";
23 if ($_GET["c"] == 6) {
24 header("Location: login.php");
27 $ERRORS[7] = "No operation to perform.";
29 $ERRORS[8] = "Could not display feed: query failed. Please check label match syntax or local configuration.";
31 $ERRORS[8] = "Denied. Your access level is insufficient to access this page.";
36 <title>Tiny Tiny RSS : Error Message</title>
38 <link rel="stylesheet" href="tt-rss.css" type="text/css">
40 <!--[if gte IE 5.5000]>
41 <script type="text/javascript" src="pngfix.js"></script>
44 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
47 <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
50 <table cellspacing="0" cellpadding="0" width="100%"><tr>
51 <td class="header" valign="middle">
52 <img src="images/ttrss_logo.png" alt="logo">
54 <td align="right" valign="top">
55 <div id="notify"><span id="notify_body"></div>
61 <td id="prefContent" class="prefContent" valign="top" colspan="2">
65 <div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?>
67 <? if ($_GET["p"]) { ?>
68 <p><?= htmlspecialchars($_GET["p"]) ?></p>
75 <td class="footer" colspan="2">
76 <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005 Andrew Dolgov
77 <? if (WEB_DEMO_MODE) { ?>
78 <br>Running in demo mode, some functionality is disabled.