We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9954c commit 7800a74Copy full SHA for 7800a74
resources/init.php
@@ -38,6 +38,10 @@
38
$_SESSION["messages"] = [];
39
}
40
41
+if (!array_key_exists("csrf_tokens", $_SESSION)) {
42
+ $_SESSION["csrf_tokens"] = [];
43
+}
44
+
45
if (isset($_SERVER["REMOTE_USER"])) {
46
// Check if SSO is enabled on this page
47
$SSO = UnitySSO::getSSO();
@@ -57,10 +61,6 @@
57
61
$SEND_PIMESG_TO_ADMINS = CONFIG["mail"]["send_pimesg_to_admins"];
58
62
59
63
$SQL->addLog($OPERATOR->uid, $_SERVER["REMOTE_ADDR"], "user_login", $OPERATOR->uid);
60
-
- if (!array_key_exists("csrf_tokens", $_SESSION)) {
- $_SESSION["csrf_tokens"] = [];
- }
64
65
66
$LOC_HEADER = __DIR__ . "/templates/header.php";
0 commit comments