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