]>
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 | ||
50773ad4 AD |
31 | ?> |
32 | ||
33 | <html> | |
34 | <head> | |
35 | <title>Tiny Tiny RSS : Error Message</title> | |
36 | ||
37 | <link rel="stylesheet" href="tt-rss.css" type="text/css"> | |
38 | ||
39 | <!--[if gte IE 5.5000]> | |
40 | <script type="text/javascript" src="pngfix.js"></script> | |
41 | <![endif]--> | |
42 | ||
43 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
44 | </head> | |
45 | ||
46 | <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> | |
50773ad4 AD |
47 | <tr> |
48 | <td colspan="2"> | |
49 | <table cellspacing="0" cellpadding="0" width="100%"><tr> | |
50 | <td class="header" valign="middle"> | |
51 | <img src="images/ttrss_logo.png" alt="logo"> | |
52 | </td> | |
53 | <td align="right" valign="top"> | |
54 | <div id="notify"><span id="notify_body"></div> | |
55 | </td> | |
56 | </tr></table> | |
57 | </td> | |
58 | </tr> | |
50773ad4 AD |
59 | <tr> |
60 | <td id="prefContent" class="prefContent" valign="top" colspan="2"> | |
61 | ||
62 | <h1>Fatal Error</h1> | |
63 | ||
64 | <div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?></div> | |
65 | ||
66 | </td> | |
67 | </tr> | |
50773ad4 AD |
68 | <tr> |
69 | <td class="footer" colspan="2"> | |
70 | <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005 Andrew Dolgov | |
71 | <? if (WEB_DEMO_MODE) { ?> | |
72 | <br>Running in demo mode, some functionality is disabled. | |
73 | <? } ?> | |
74 | </td> | |
75 | </td> | |
50773ad4 AD |
76 | </table> |
77 | ||
78 | ||
79 | ||
80 | </body> | |
81 | </html> | |
82 |