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