From 21fedb3af692b12c1f0aa266bbf788b01f2cbe4c Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sun, 26 Mar 2023 04:50:46 +0300 Subject: auth tests --- html/index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'html/index.php') diff --git a/html/index.php b/html/index.php index d26d0a3..92b825a 100644 --- a/html/index.php +++ b/html/index.php @@ -28,11 +28,19 @@ require_once '../core/config/anom_settings.php'; // core framework constants require_once 'app/config/app_constants.php'; // application constants + // Enable Autoloader // ----------------------------------------------------------------------------- require_once AUTOLOADER; +// Enable sessions +// ----------------------------------------------------------------------------- +$session = new (SESSION_DRIVER)(); // Start a new session + + +// prepare output control and benchmarking +// ----------------------------------------------------------------------------- ob_start(); // handle output if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life @@ -44,11 +52,10 @@ if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life require_once INIT_APPLICATION; - // Application is ready! // ----------------------------------------------------------------------------- -Route::run(Registry::get('REQUEST')); // Run baby, run! +Route::run(Registry::get('REQUEST')); // Run baby, run! if (!PRODUCTION) Benchmark::add_spot('end'); // request ended -- cgit v1.2.3