]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
do not use regexps in get_self_url_prefix()
[tt-rss.git] / backend.php
index 8e6ff6ced4ff3fa60c9cbfc4641d332643117be3..bf87b55d3e63cc40aaca58b15aeac8984f6dc860 100644 (file)
                authenticate_user($link, "admin", null);
        }
 
-       // TODO remove and handle within Handlers
-
-       if (!($_SESSION["uid"] && validate_session($link))) {
-               if ($op == 'pref-feeds' && $method == 'add') {
-                       header("Content-Type: text/html");
-                       login_sequence($link);
-                       render_login_form($link);
-               } else {
-                       header("Content-Type: text/plain");
-                       print json_encode(array("error" => array("code" => 6)));
-               }
-               return;
-       }
-
        $purge_intervals = array(
                0  => __("Use default"),
                -1 => __("Never purge"),
                                        }
                                        $handler->after();
                                        return;
+                               } else {
+                                       header("Content-Type: text/plain");
+                                       print json_encode(array("error" => array("code" => 6)));
+                                       return;
                                }
                        } else {
                                header("Content-Type: text/plain");