2006-08-19 07:04:45 +00:00
|
|
|
<?php
|
2011-12-11 19:59:25 +00:00
|
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . "include");
|
|
|
|
|
2011-02-18 09:28:03 +00:00
|
|
|
require_once "functions.php";
|
2007-03-05 09:04:55 +00:00
|
|
|
|
2011-03-18 14:39:23 +00:00
|
|
|
$ERRORS[0] = "";
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[1] = __("This program requires XmlHttpRequest " .
|
2006-12-21 17:12:51 +00:00
|
|
|
"to function properly. Your browser doesn't seem to support it.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[2] = __("This program requires cookies " .
|
2006-12-21 17:12:51 +00:00
|
|
|
"to function properly. Your browser doesn't seem to support them.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[3] = __("Backend sanity check failed");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[4] = __("Frontend sanity check failed.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2010-11-09 13:33:08 +00:00
|
|
|
$ERRORS[5] = __("Incorrect database schema version. <a href='db-updater.php'>Please update</a>.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[6] = __("Request not authorized.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[7] = __("No operation to perform.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
|
2006-03-31 05:18:55 +00:00
|
|
|
|
2007-03-05 08:45:38 +00:00
|
|
|
$ERRORS[9] = __("Configuration check failed");
|
2006-08-13 04:46:40 +00:00
|
|
|
|
2011-03-18 14:39:23 +00:00
|
|
|
$ERRORS[10] = __("Your version of MySQL is not currently supported. Please see
|
2006-12-21 17:12:51 +00:00
|
|
|
official site for more information.");
|
2007-04-24 03:28:10 +00:00
|
|
|
|
2007-04-24 03:32:26 +00:00
|
|
|
$ERRORS[11] = "[This error is not returned by server]";
|
2008-11-10 05:29:19 +00:00
|
|
|
|
|
|
|
$ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
|
2011-02-18 09:28:03 +00:00
|
|
|
|
|
|
|
if ($_REQUEST['mode'] == 'js') {
|
|
|
|
header("Content-Type: text/plain; charset=UTF-8");
|
|
|
|
|
|
|
|
print "var ERRORS = [];\n";
|
|
|
|
|
|
|
|
foreach ($ERRORS as $id => $error) {
|
|
|
|
|
|
|
|
$error = preg_replace("/\n/", "", $error);
|
|
|
|
$error = preg_replace("/\"/", "\\\"", $error);
|
|
|
|
|
|
|
|
print "ERRORS[$id] = \"$error\";\n";
|
|
|
|
}
|
|
|
|
}
|
2006-03-31 05:18:55 +00:00
|
|
|
?>
|