set csrf and access_level in single user mode session

This commit is contained in:
Andrew Dolgov 2012-03-20 09:23:54 +04:00
parent fe2f004cd9
commit 787e5ebc21

View file

@ -811,6 +811,8 @@
$_SESSION["uid"] = 1;
$_SESSION["name"] = "admin";
$_SESSION["access_level"] = 10;
$_SESSION["csrf_token"] = sha1(uniqid(rand(), true));
$_SESSION["ip_address"] = $_SERVER["REMOTE_ADDR"];