From e33e6714d78c18878e6e7b5f91d059ff9e28a03b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 26 Nov 2017 12:07:28 +0100 Subject: [PATCH] upd: public.index (set AuthSystemDefault as default AuthSystem for api.core.Request) --- public_html/index.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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']);