summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-10 19:01:06 +0400
committerAndrew Dolgov <[email protected]>2012-09-10 19:01:06 +0400
commit97acbaf190ff84b4cc5b01192f14d9ee384d6327 (patch)
treea64a4e9bfe24c8e4863437fc6ffffcd3b09f93da /backend.php
parentc3d2cda86de3b9242483de96d73ce5d9e82881de (diff)
login system fixes
remove old-style session checking from backend.php move outside subscription endpoint to public.php, change subscription bookmarklet
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 8e6ff6ced..87b0945b1 100644
--- a/backend.php
+++ b/backend.php
@@ -65,7 +65,7 @@
// TODO remove and handle within Handlers
- if (!($_SESSION["uid"] && validate_session($link))) {
+ /* if (!($_SESSION["uid"] && validate_session($link))) {
if ($op == 'pref-feeds' && $method == 'add') {
header("Content-Type: text/html");
login_sequence($link);
@@ -75,7 +75,7 @@
print json_encode(array("error" => array("code" => 6)));
}
return;
- }
+ } */
$purge_intervals = array(
0 => __("Use default"),
@@ -143,6 +143,10 @@
}
$handler->after();
return;
+ } else {
+ header("Content-Type: text/plain");
+ print json_encode(array("error" => array("code" => 6)));
+ return;
}
} else {
header("Content-Type: text/plain");