]>
Commit | Line | Data |
---|---|---|
50773ad4 | 1 | <? |
66581886 | 2 | require_once "sanity_check.php"; |
ff485f1d AD |
3 | require_once "version.php"; |
4 | require_once "config.php"; | |
5 | require_once "db-prefs.php"; | |
75c56ed7 | 6 | |
50773ad4 AD |
7 | $ERRORS[0] = "Unknown error"; |
8 | ||
9 | $ERRORS[1] = "This program requires XmlHttpRequest " . | |
10 | "to function properly. Your browser doesn't seem to support it."; | |
11 | ||
12 | $ERRORS[2] = "This program requires cookies " . | |
13 | "to function properly. Your browser doesn't seem to support them."; | |
14 | ||
15 | $ERRORS[3] = "Backend sanity check failed."; | |
16 | ||
17 | $ERRORS[4] = "Frontend sanity check failed."; | |
18 | ||
19 | $ERRORS[5] = "Incorrect database schema version."; | |
20 | ||
262bd8ea AD |
21 | $ERRORS[6] = "Not authorized."; |
22 | ||
23 | if ($_GET["c"] == 6) { | |
24 | header("Location: login.php"); | |
25 | } | |
26 | ||
a2770077 AD |
27 | $ERRORS[7] = "No operation to perform."; |
28 | ||
adccd201 AD |
29 | $ERRORS[8] = "Could not display feed: query failed. Please check label match syntax or local configuration."; |
30 | ||
81f8401d | 31 | $ERRORS[8] = "Denied. Your access level is insufficient to access this page."; |
50773ad4 AD |
32 | ?> |
33 | ||
34 | <html> | |
35 | <head> | |
36 | <title>Tiny Tiny RSS : Error Message</title> | |
37 | ||
38 | <link rel="stylesheet" href="tt-rss.css" type="text/css"> | |
39 | ||
40 | <!--[if gte IE 5.5000]> | |
41 | <script type="text/javascript" src="pngfix.js"></script> | |
42 | <![endif]--> | |
43 | ||
44 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
45 | </head> | |
46 | ||
47 | <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> | |
50773ad4 AD |
48 | <tr> |
49 | <td colspan="2"> | |
50 | <table cellspacing="0" cellpadding="0" width="100%"><tr> | |
51 | <td class="header" valign="middle"> | |
52 | <img src="images/ttrss_logo.png" alt="logo"> | |
53 | </td> | |
54 | <td align="right" valign="top"> | |
55 | <div id="notify"><span id="notify_body"></div> | |
56 | </td> | |
57 | </tr></table> | |
58 | </td> | |
59 | </tr> | |
50773ad4 AD |
60 | <tr> |
61 | <td id="prefContent" class="prefContent" valign="top" colspan="2"> | |
62 | ||
63 | <h1>Fatal Error</h1> | |
64 | ||
91d612b3 AD |
65 | <div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?> |
66 | ||
67 | <? if ($_GET["p"]) { ?> | |
68 | <p><?= htmlspecialchars($_GET["p"]) ?></p> | |
69 | <? } ?> | |
70 | </div> | |
50773ad4 AD |
71 | |
72 | </td> | |
73 | </tr> | |
50773ad4 AD |
74 | <tr> |
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. | |
79 | <? } ?> | |
80 | </td> | |
81 | </td> | |
50773ad4 AD |
82 | </table> |
83 | ||
84 | ||
85 | ||
86 | </body> | |
87 | </html> | |
88 |