]>
Commit | Line | Data |
---|---|---|
1d3a17c7 | 1 | <?php |
f03a795d AD |
2 | set_include_path(get_include_path() . PATH_SEPARATOR . |
3 | dirname(__FILE__) . "/include"); | |
107d0cf3 | 4 | |
68535211 | 5 | require_once "functions.php"; |
1025ad87 | 6 | |
ebb948c2 | 7 | $ERRORS[0] = ""; |
af106b0e | 8 | |
d1db26aa | 9 | $ERRORS[1] = __("This program requires XmlHttpRequest " . |
d3f24242 | 10 | "to function properly. Your browser doesn't seem to support it."); |
af106b0e | 11 | |
d1db26aa | 12 | $ERRORS[2] = __("This program requires cookies " . |
d3f24242 | 13 | "to function properly. Your browser doesn't seem to support them."); |
af106b0e | 14 | |
d1db26aa | 15 | $ERRORS[3] = __("Backend sanity check failed"); |
af106b0e | 16 | |
d1db26aa | 17 | $ERRORS[4] = __("Frontend sanity check failed."); |
af106b0e | 18 | |
661135c7 | 19 | $ERRORS[5] = __("Incorrect database schema version. <a href='db-updater.php'>Please update</a>."); |
af106b0e | 20 | |
d1db26aa | 21 | $ERRORS[6] = __("Request not authorized."); |
af106b0e | 22 | |
d1db26aa | 23 | $ERRORS[7] = __("No operation to perform."); |
af106b0e | 24 | |
d1db26aa | 25 | $ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration."); |
af106b0e | 26 | |
d1db26aa | 27 | $ERRORS[8] = __("Denied. Your access level is insufficient to access this page."); |
af106b0e | 28 | |
d1db26aa | 29 | $ERRORS[9] = __("Configuration check failed"); |
aec3ce39 | 30 | |
ebb948c2 | 31 | $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see |
d3f24242 | 32 | official site for more information."); |
7a09510c | 33 | |
81352b54 | 34 | $ERRORS[11] = "[This error is not returned by server]"; |
f29ba148 AD |
35 | |
36 | $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration"); | |
68535211 AD |
37 | |
38 | if ($_REQUEST['mode'] == 'js') { | |
39 | header("Content-Type: text/plain; charset=UTF-8"); | |
40 | ||
41 | print "var ERRORS = [];\n"; | |
42 | ||
43 | foreach ($ERRORS as $id => $error) { | |
44 | ||
45 | $error = preg_replace("/\n/", "", $error); | |
46 | $error = preg_replace("/\"/", "\\\"", $error); | |
47 | ||
48 | print "ERRORS[$id] = \"$error\";\n"; | |
49 | } | |
50 | } | |
af106b0e | 51 | ?> |