From: Andrew Dolgov Date: Tue, 10 Jul 2012 11:24:04 +0000 (+0400) Subject: do not perform sanity checks on each backend request X-Git-Tag: 1.6.0~189 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=545ca067895c841e265d1bc79484235b6cf900b3;p=tt-rss.git do not perform sanity checks on each backend request --- diff --git a/backend.php b/backend.php index efc3793d..0b0fdba4 100644 --- a/backend.php +++ b/backend.php @@ -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"; diff --git a/include/functions.php b/include/functions.php index c98de261..a3de2461 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,4 +1,7 @@