From 8ad582b3b2b7f2ef8adbd722668c64d9dc2289d1 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 25 Mar 2025 05:23:52 -0700 Subject: [PATCH] Instantiate ExceptionHandler, CSRFTokenizer objects --- index.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 2117e8c4..e078adf6 100755 --- a/index.php +++ b/index.php @@ -23,13 +23,12 @@ * as you leave these references intact in the header comments of your source files. */ -require 'includes/session.php'; -require 'includes/csrf.php'; -ensureCSRFSessionToken(); - -require_once 'includes/exceptions.php'; require_once 'includes/config.php'; require_once 'includes/autoload.php'; +$handler = new RaspAP\Exceptions\ExceptionHandler; +$token = new RaspAP\Tokens\CSRFTokenizer; + +require_once 'includes/session.php'; require_once 'includes/defaults.php'; require_once 'includes/locale.php'; require_once 'includes/functions.php'; @@ -59,7 +58,7 @@ initializeApp(); > - + CSRFMetaTag() ?>