]> git.wh0rd.org - tt-rss.git/blame - errors.php
add Public_Handler
[tt-rss.git] / errors.php
CommitLineData
1d3a17c7 1<?php
107d0cf3
AD
2 set_include_path(get_include_path() . PATH_SEPARATOR . "include");
3
68535211 4 require_once "functions.php";
1025ad87 5
ebb948c2 6 $ERRORS[0] = "";
af106b0e 7
d1db26aa 8 $ERRORS[1] = __("This program requires XmlHttpRequest " .
d3f24242 9 "to function properly. Your browser doesn't seem to support it.");
af106b0e 10
d1db26aa 11 $ERRORS[2] = __("This program requires cookies " .
d3f24242 12 "to function properly. Your browser doesn't seem to support them.");
af106b0e 13
d1db26aa 14 $ERRORS[3] = __("Backend sanity check failed");
af106b0e 15
d1db26aa 16 $ERRORS[4] = __("Frontend sanity check failed.");
af106b0e 17
661135c7 18 $ERRORS[5] = __("Incorrect database schema version. &lt;a href='db-updater.php'&gt;Please update&lt;/a&gt;.");
af106b0e 19
d1db26aa 20 $ERRORS[6] = __("Request not authorized.");
af106b0e 21
d1db26aa 22 $ERRORS[7] = __("No operation to perform.");
af106b0e 23
d1db26aa 24 $ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
af106b0e 25
d1db26aa 26 $ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
af106b0e 27
d1db26aa 28 $ERRORS[9] = __("Configuration check failed");
aec3ce39 29
ebb948c2 30 $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see
d3f24242 31 official site for more information.");
7a09510c 32
81352b54 33 $ERRORS[11] = "[This error is not returned by server]";
f29ba148
AD
34
35 $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
68535211
AD
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 }
af106b0e 50?>