tt-rss/errors.php

51 lines
1.5 KiB
PHP
Raw Normal View History

2006-08-19 09:04:45 +02:00
<?php
2011-12-11 20:59:25 +01:00
set_include_path(get_include_path() . PATH_SEPARATOR . "include");
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] = "";
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.");
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.");
2007-03-05 09:45:38 +01:00
$ERRORS[3] = __("Backend sanity check failed");
2007-03-05 09:45:38 +01: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 09:45:38 +01:00
$ERRORS[6] = __("Request not authorized.");
2007-03-05 09:45:38 +01:00
$ERRORS[7] = __("No operation to perform.");
2007-03-05 09:45:38 +01:00
$ERRORS[8] = __("Could not display feed: query failed. Please check label match syntax or local configuration.");
2007-03-05 09:45:38 +01:00
$ERRORS[8] = __("Denied. Your access level is insufficient to access this page.");
2007-03-05 09:45:38 +01:00
$ERRORS[9] = __("Configuration check failed");
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:32:26 +02: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 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";
}
}
?>