diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend.php b/backend.php index 4ab000d..018c0e8 100644 --- a/backend.php +++ b/backend.php @@ -4,13 +4,9 @@ require_once "sessions.php"; require_once "db.php"; - $ldb = Db::get(); - - $op = $_REQUEST["op"]; - header("Content-type: text/json"); - $owner = SQLite3::escapeString($_SESSION["owner"]); + @$owner = SQLite3::escapeString($_SESSION["owner"]); if (!$owner) { header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized"); @@ -18,6 +14,10 @@ die; } + $op = $_REQUEST["op"]; + + $ldb = Db::get(); + ob_start("ob_gzhandler"); switch ($op) { |