2017-11-23 10:23:09 +00:00
|
|
|
<?php require_once '../autoloader.php';
|
|
|
|
|
|
|
|
use \router\core\Router;
|
2017-11-24 15:00:12 +00:00
|
|
|
use \database\core\Repo;
|
|
|
|
use \database\core\DatabaseDriver;
|
2017-11-23 10:23:09 +00:00
|
|
|
|
2017-11-24 15:00:12 +00:00
|
|
|
debug();
|
|
|
|
|
|
|
|
/* (1) Start session */
|
2017-11-23 11:57:49 +00:00
|
|
|
session_start();
|
|
|
|
$_SESSION['PERM'] = ['journalist'];
|
2017-11-24 15:00:12 +00:00
|
|
|
|
|
|
|
/* (2) Set default Driver for Repos */
|
|
|
|
Repo::setDriver(DatabaseDriver::get());
|
|
|
|
|
|
|
|
/* (3) launch router */
|
|
|
|
echo "<pre>";
|
2017-11-23 10:23:09 +00:00
|
|
|
$MainRouter = Router::launch($_GET['url']);
|
|
|
|
|