aboutsummaryrefslogtreecommitdiff
path: root/views/global/router.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/global/router.php')
-rw-r--r--views/global/router.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/global/router.php b/views/global/router.php
index fa9348d..cd9b304 100644
--- a/views/global/router.php
+++ b/views/global/router.php
@@ -40,6 +40,8 @@ foreach (glob($MODELS_DIR . '/*.php') as $filename) {
require_once $filename;
}
+$TOKEN = (array_key_exists('token', $_COOKIE)) ? ($_COOKIE['token'] ?? "") : ("");
+
if (str_ends_with($view, '.php')) {
require_once $view;
}