]>
Commit | Line | Data |
---|---|---|
50773ad4 | 1 | <? |
75c56ed7 AD |
2 | require_once "version.php" |
3 | require_once "config.php" | |
4 | require_once "db-prefs.php" | |
5 | ||
6 | $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); | |
7 | ||
50773ad4 AD |
8 | $ERRORS[0] = "Unknown error"; |
9 | ||
10 | $ERRORS[1] = "This program requires XmlHttpRequest " . | |
11 | "to function properly. Your browser doesn't seem to support it."; | |
12 | ||
13 | $ERRORS[2] = "This program requires cookies " . | |
14 | "to function properly. Your browser doesn't seem to support them."; | |
15 | ||
16 | $ERRORS[3] = "Backend sanity check failed."; | |
17 | ||
18 | $ERRORS[4] = "Frontend sanity check failed."; | |
19 | ||
20 | $ERRORS[5] = "Incorrect database schema version."; | |
21 | ||
22 | ?> | |
23 | ||
24 | <html> | |
25 | <head> | |
26 | <title>Tiny Tiny RSS : Error Message</title> | |
27 | ||
28 | <link rel="stylesheet" href="tt-rss.css" type="text/css"> | |
29 | ||
30 | <!--[if gte IE 5.5000]> | |
31 | <script type="text/javascript" src="pngfix.js"></script> | |
32 | <![endif]--> | |
33 | ||
34 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
35 | </head> | |
36 | ||
37 | <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> | |
75c56ed7 | 38 | <? if (get_pref($link, 'DISPLAY_HEADER')) { ?> |
50773ad4 AD |
39 | <tr> |
40 | <td colspan="2"> | |
41 | <table cellspacing="0" cellpadding="0" width="100%"><tr> | |
42 | <td class="header" valign="middle"> | |
43 | <img src="images/ttrss_logo.png" alt="logo"> | |
44 | </td> | |
45 | <td align="right" valign="top"> | |
46 | <div id="notify"><span id="notify_body"></div> | |
47 | </td> | |
48 | </tr></table> | |
49 | </td> | |
50 | </tr> | |
51 | <? } ?> | |
52 | <tr> | |
53 | <td id="prefContent" class="prefContent" valign="top" colspan="2"> | |
54 | ||
55 | <h1>Fatal Error</h1> | |
56 | ||
57 | <div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?></div> | |
58 | ||
59 | </td> | |
60 | </tr> | |
75c56ed7 | 61 | <? if (get_pref($link, 'DISPLAY_FOOTER')) { ?> |
50773ad4 AD |
62 | <tr> |
63 | <td class="footer" colspan="2"> | |
64 | <a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005 Andrew Dolgov | |
65 | <? if (WEB_DEMO_MODE) { ?> | |
66 | <br>Running in demo mode, some functionality is disabled. | |
67 | <? } ?> | |
68 | </td> | |
69 | </td> | |
70 | <? } ?> | |
71 | </table> | |
72 | ||
73 | ||
74 | ||
75 | </body> | |
76 | </html> | |
77 |