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