ttrss/errors.php

49 lines
1.4 KiB
PHP
Raw Normal View History

2006-08-19 07:04:45 +00:00
<?php
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] = "";
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.");
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.");
2007-03-05 08:45:38 +00:00
$ERRORS[3] = __("Backend sanity check failed");
2007-03-05 08:45:38 +00:00
$ERRORS[4] = __("Frontend sanity check failed.");
$ERRORS[5] = __("Incorrect database schema version. &lt;a href='db-updater.php'&gt;Please update&lt;/a&gt;.");
2007-03-05 08:45:38 +00:00
$ERRORS[6] = __("Request not authorized.");
2007-03-05 08:45:38 +00:00
$ERRORS[7] = __("No operation to perform.");
2007-03-05 08:45:38 +00:00
$ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
2007-03-05 08:45:38 +00:00
$ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
2007-03-05 08:45:38 +00:00
$ERRORS[9] = __("Configuration check failed");
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:32:26 +00:00
$ERRORS[11] = "[This error is not returned by server]";
$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";
}
}
?>