- $ERRORS[10] = "Your version of MySQL is not currently supported. Please see
- official site for more information.";
+ $ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
+
+ $ERRORS[9] = __("Configuration check failed");
+
+ $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see official site for more information.");
+
+ $ERRORS[11] = "[This error is not returned by server]";
+
+ $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
+
+ $ERRORS[13] = __("Method not found");
+
+ $ERRORS[14] = __("Plugin not found");
+
+ if ($_REQUEST['mode'] == 'js') {
+ header("Content-Type: text/javascript; 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";
+ }
+ }