summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-03-20 09:23:54 +0400
committerAndrew Dolgov <[email protected]>2012-03-20 09:23:54 +0400
commit787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d (patch)
tree0f9468b45bc2763b06ee8b233118e9c578a23d41 /include/functions.php
parentfe2f004cd990f739ce4b265ce2932b0e11b19f1e (diff)
set csrf and access_level in single user mode session
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 84b6da015..c19915bb7 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"];