]> git.wh0rd.org Git - tt-rss.git/commitdiff
set csrf and access_level in single user mode session
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 20 Mar 2012 05:23:54 +0000 (09:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 20 Mar 2012 05:23:54 +0000 (09:23 +0400)
include/functions.php

index 84b6da01530e79b979cf7570220e260227b4ff3d..c19915bb7bfccd2b786630d1d00f92b55b49566e 100644 (file)
 
                        $_SESSION["uid"] = 1;
                        $_SESSION["name"] = "admin";
+                       $_SESSION["access_level"] = 10;
+                       $_SESSION["csrf_token"] = sha1(uniqid(rand(), true));
 
                        $_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"];