]> git.wh0rd.org - tt-rss.git/blob - errors.php
overall directory tree cleanup
[tt-rss.git] / errors.php
1 <?php
2 set_include_path(get_include_path() . PATH_SEPARATOR . "include");
3
4 require_once "functions.php";
5
6 $ERRORS[0] = "";
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. &lt;a href='db-updater.php'&gt;Please update&lt;/a&gt;.");
19
20 $ERRORS[6] = __("Request not authorized.");
21
22 $ERRORS[7] = __("No operation to perform.");
23
24 $ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
25
26 $ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
27
28 $ERRORS[9] = __("Configuration check failed");
29
30 $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see
31 official site for more information.");
32
33 $ERRORS[11] = "[This error is not returned by server]";
34
35 $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
36
37 if ($_REQUEST['mode'] == 'js') {
38 header("Content-Type: text/plain; charset=UTF-8");
39
40 print "var ERRORS = [];\n";
41
42 foreach ($ERRORS as $id => $error) {
43
44 $error = preg_replace("/\n/", "", $error);
45 $error = preg_replace("/\"/", "\\\"", $error);
46
47 print "ERRORS[$id] = \"$error\";\n";
48 }
49 }
50 ?>