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