diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 22:00:21 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 22:21:31 +0200 |
| commit | edf446fae669f3370609f5a955c3d6c863a93524 (patch) | |
| tree | c46984167cc5b79c51b243602f7a4837d428fd82 /views/global | |
| parent | 73ad3e330be1a6849269fec5d4b7b42b0330cede (diff) | |
| download | nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.tar.gz nowayforward_human-edf446fae669f3370609f5a955c3d6c863a93524.zip | |
feat: Replace sessionStorage with (custom) cookieStorage
Diffstat (limited to 'views/global')
| -rw-r--r-- | views/global/router.php | 2 |
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; } |
