summaryrefslogtreecommitdiff
path: root/html/index.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-26 04:50:46 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-26 04:50:46 +0300
commit21fedb3af692b12c1f0aa266bbf788b01f2cbe4c (patch)
treee600e16a2894407eba840e7694a4f290669e31d8 /html/index.php
parentd90b51ce89bcc693e3014b313fe8e3b975031adf (diff)
downloadclassroom-21fedb3af692b12c1f0aa266bbf788b01f2cbe4c.tar.gz
classroom-21fedb3af692b12c1f0aa266bbf788b01f2cbe4c.tar.bz2
classroom-21fedb3af692b12c1f0aa266bbf788b01f2cbe4c.zip
auth tests
Diffstat (limited to 'html/index.php')
-rw-r--r--html/index.php11
1 files changed, 9 insertions, 2 deletions
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