diff --git a/public_html/index.php b/public_html/index.php index 9cc4679..0b74f6a 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -2,10 +2,10 @@ use \router\core\Router; use \database\core\Repo; + use \api\core\Request; + use \api\core\AuthSystemDefault; use \database\core\DatabaseDriver; - debug(); - /* (1) Start session */ session_start(); $_SESSION['PERM'] = ['journalist']; @@ -13,7 +13,10 @@ /* (2) Set default Driver for Repos */ Repo::setDriver(DatabaseDriver::get()); - /* (3) launch router */ + /* (3) Set default AuthSystem */ + Request::setAuthSystem(new AuthSystemDefault); + + /* (4) launch router */ echo "
"; $MainRouter = Router::launch($_GET['url']);