require_once "functions.php";
require_once "sessions.php";
+ ini_set('session.use_cookies', 0);
ini_set("session.gc_maxlifetime", 86400);
define('AUTH_DISABLE_OTP', true);
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"]);
}
header("Api-Content-Length: " . ob_get_length());
ob_end_flush();
-?>
+