]> git.wh0rd.org - tt-rss.git/blobdiff - api/index.php
bump VERSION_STATIC due to Dojo changes
[tt-rss.git] / api / index.php
index a8484ef0e562c8ae3adc81209c6249cf9466099b..d451a3ac8fd53a6620d3d9a70fbc3bf0aadff0d3 100644 (file)
 
        if (!init_plugins()) return;
 
+       if ($_SESSION["uid"]) {
+               if (!validate_session()) {
+                       header("Content-Type: text/json");
+
+                       print json_encode(array("seq" => -1,
+                               "status" => 1,
+                               "content" => array("error" => "NOT_LOGGED_IN")));
+
+                       return;
+               }
+
+               load_user_plugins( $_SESSION["uid"]);
+       }
+
        $method = strtolower($_REQUEST["op"]);
 
        $handler = new API($_REQUEST);