main/public_html/index.php

20 lines
390 B
PHP
Executable File

<?php require_once '../autoloader.php';
use \router\core\Router;
use \database\core\Repo;
use \database\core\DatabaseDriver;
debug();
/* (1) Start session */
session_start();
$_SESSION['PERM'] = ['journalist'];
/* (2) Set default Driver for Repos */
Repo::setDriver(DatabaseDriver::get());
/* (3) launch router */
echo "<pre>";
$MainRouter = Router::launch($_GET['url']);