]>
Commit | Line | Data |
---|---|---|
1d3a17c7 | 1 | <?php |
88e8fb3a AD |
2 | set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR . |
3 | get_include_path()); | |
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 | |
6cb57cc3 | 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 | |
6cb57cc3 | 31 | $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see 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 | 36 | |
27f7b593 AD |
37 | $ERRORS[13] = __("Method not found"); |
38 | ||
39 | $ERRORS[14] = __("Plugin not found"); | |
40 | ||
68535211 | 41 | if ($_REQUEST['mode'] == 'js') { |
bcb6b0c1 | 42 | header("Content-Type: text/javascript; charset=UTF-8"); |
68535211 AD |
43 | |
44 | print "var ERRORS = [];\n"; | |
45 | ||
46 | foreach ($ERRORS as $id => $error) { | |
47 | ||
48 | $error = preg_replace("/\n/", "", $error); | |
49 | $error = preg_replace("/\"/", "\\\"", $error); | |
50 | ||
51 | print "ERRORS[$id] = \"$error\";\n"; | |
52 | } | |
53 | } | |
af106b0e | 54 | ?> |