summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-07-10 15:24:04 +0400
committerAndrew Dolgov <[email protected]>2012-07-10 15:24:04 +0400
commit545ca067895c841e265d1bc79484235b6cf900b3 (patch)
treea6d6fe014ac872b3abb0c6bb1b976d92a241154b /backend.php
parent383b00906cc1777a4e4339300b52700802d8885f (diff)
do not perform sanity checks on each backend request
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/backend.php b/backend.php
index efc3793d3..0b0fdba4c 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";