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