summaryrefslogtreecommitdiff
path: root/error.php
blob: e1e9045bf66f487bcd220d1c1add50fbcdd0bc6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<? require_once "version.php" ?>
<? require_once "config.php" ?>

<?
	$ERRORS[0] = "Unknown error";

	$ERRORS[1] = "This program requires XmlHttpRequest " .
			"to function properly. Your browser doesn't seem to support it.";

	$ERRORS[2] = "This program requires cookies " .
			"to function properly. Your browser doesn't seem to support them.";

	$ERRORS[3] = "Backend sanity check failed.";

	$ERRORS[4] = "Frontend sanity check failed.";

	$ERRORS[5] = "Incorrect database schema version.";

?>

<html>
<head>
	<title>Tiny Tiny RSS : Error Message</title>

	<link	rel="stylesheet" href="tt-rss.css" type="text/css">
	
	<!--[if gte IE 5.5000]>
		<script type="text/javascript" src="pngfix.js"></script>
	<![endif]-->

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (DISPLAY_HEADER) { ?>
<tr>
	<td colspan="2">
		<table cellspacing="0" cellpadding="0" width="100%"><tr>
			<td class="header" valign="middle">	
				<img src="images/ttrss_logo.png" alt="logo">	
			</td>
			<td align="right" valign="top">
				<div id="notify"><span id="notify_body"></div>
			</td>
		</tr></table>
	</td>
</tr>
<? } ?>
<tr>
	<td id="prefContent" class="prefContent" valign="top" colspan="2">
		
		<h1>Fatal Error</h1>

		<div class="bigErrorMsg"><?= $ERRORS[$_GET["c"]] ?></div>

	</td>
</tr>
<? if (DISPLAY_FOOTER) { ?>
<tr>
	<td class="footer" colspan="2">
		<a href="http://bah.spb.su/~fox/tt-rss/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005 Andrew Dolgov
		<? if (WEB_DEMO_MODE) { ?>
		<br>Running in demo mode, some functionality is disabled.
		<? } ?>
	</td>
</td>
<? } ?>
</table>



</body>
</html>