You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
695 B
34 lines
695 B
<?php
|
|
|
|
session_start();
|
|
if(!isset($_SESSION['role'])){
|
|
$_SESSION['role']='visitor';
|
|
}
|
|
if(!isset($_SESSION['user'])){
|
|
$_SESSION['user']=NULL;
|
|
}
|
|
if(!isset($_SESSION['theme'])){
|
|
$_SESSION['theme']='dark';
|
|
}
|
|
|
|
//chargement config
|
|
require_once __DIR__ . '/config/config.php';
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
$co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbkekentin;', 'kekentin', 'passwd');
|
|
|
|
//twig
|
|
$loader = new \Twig\Loader\FilesystemLoader('vue/templates');
|
|
$twig = new \Twig\Environment($loader, [
|
|
'cache' => false,
|
|
]);
|
|
|
|
$twig->addGlobal('racine','/~lebeaulato/WF-Website'); // /~kekentin/WF/WF-Website
|
|
|
|
|
|
$cont = new Controleur\FrontControler($co);
|
|
|
|
|
|
?>
|