2 require_once "version.php"
3 require_once "config.php"
4 require_once "db-prefs.php"
6 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
8 $ERRORS[0] = "Unknown error";
10 $ERRORS[1] = "This program requires XmlHttpRequest " .
11 "to function properly. Your browser doesn't seem to support it.";
13 $ERRORS[2] = "This program requires cookies " .
14 "to function properly. Your browser doesn't seem to support them.";
16 $ERRORS[3] = "Backend sanity check failed.";
18 $ERRORS[4] = "Frontend sanity check failed.";
20 $ERRORS[5] = "Incorrect database schema version.";
26 <title
>Tiny Tiny RSS
: Error Message
</title
>
28 <link rel
="stylesheet" href
="tt-rss.css" type
="text/css">
30 <!--[if gte IE
5.5000]>
31 <script type
="text/javascript" src
="pngfix.js"></script
>
34 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
37 <table width
="100%" height
="100%" cellspacing
="0" cellpadding
="0" class="main">
38 <?
if (get_pref($link, 'DISPLAY_HEADER')) { ?
>
41 <table cellspacing
="0" cellpadding
="0" width
="100%"><tr
>
42 <td
class="header" valign
="middle">
43 <img src
="images/ttrss_logo.png" alt
="logo">
45 <td align
="right" valign
="top">
46 <div id
="notify"><span id
="notify_body"></div
>
53 <td id
="prefContent" class="prefContent" valign
="top" colspan
="2">
57 <div
class="bigErrorMsg"><?
= $ERRORS[$_GET["c"]] ?
></div
>
61 <?
if (get_pref($link, 'DISPLAY_FOOTER')) { ?
>
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
.