1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:25:54 +00:00

do not perform sanity checks on each backend request

This commit is contained in:
Andrew Dolgov
2012-07-10 15:24:04 +04:00
parent 383b00906c
commit 545ca06789
3 changed files with 9 additions and 13 deletions

View File

@@ -39,7 +39,6 @@
require_once "functions.php";
require_once "sessions.php";
require_once "sanity_check.php";
require_once "config.php";
require_once "db.php";
require_once "db-prefs.php";
@@ -125,12 +124,12 @@
5 => __("Power User"),
10 => __("Administrator"));
$error = sanity_check($link);
#$error = sanity_check($link);
if ($error['code'] != 0 && $op != "logout") {
print json_encode(array("error" => $error));
return;
}
#if ($error['code'] != 0 && $op != "logout") {
# print json_encode(array("error" => $error));
# return;
#}
function __autoload($class) {
$file = "classes/".strtolower(basename($class)).".php";