From 787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 20 Mar 2012 09:23:54 +0400 Subject: [PATCH] set csrf and access_level in single user mode session --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/functions.php b/include/functions.php index 84b6da01..c19915bb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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"];