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