]> git.wh0rd.org - tt-rss.git/blob - errors.php
fix fatalError() not working properly
[tt-rss.git] / errors.php
1 <?php
2 require_once "functions.php";
3
4 $ERRORS[0] = __("Unknown error");
5
6 $ERRORS[1] = __("This program requires XmlHttpRequest " .
7 "to function properly. Your browser doesn't seem to support it.");
8
9 $ERRORS[2] = __("This program requires cookies " .
10 "to function properly. Your browser doesn't seem to support them.");
11
12 $ERRORS[3] = __("Backend sanity check failed");
13
14 $ERRORS[4] = __("Frontend sanity check failed.");
15
16 $ERRORS[5] = __("Incorrect database schema version. &lt;a href='db-updater.php'&gt;Please update&lt;/a&gt;.");
17
18 $ERRORS[6] = __("Request not authorized.");
19
20 $ERRORS[7] = __("No operation to perform.");
21
22 $ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
23
24 $ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
25
26 $ERRORS[9] = __("Configuration check failed");
27
28 $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see
29 official site for more information.");
30
31 $ERRORS[11] = "[This error is not returned by server]";
32
33 $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
34
35 if ($_REQUEST['mode'] == 'js') {
36 header("Content-Type: text/plain; charset=UTF-8");
37
38 print "var ERRORS = [];\n";
39
40 foreach ($ERRORS as $id => $error) {
41
42 $error = preg_replace("/\n/", "", $error);
43 $error = preg_replace("/\"/", "\\\"", $error);
44
45 print "ERRORS[$id] = \"$error\";\n";
46 }
47 }
48 ?>