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.
WF-Website/index.php

29 lines
552 B

<?php
session_start();
$_SESSION['role']='visiteur';
$_SESSION['login']=NULL;
$_SESSION['theme']='dark';
//chargement config
require_once __DIR__ . '/config/config.php';
require __DIR__ . '/vendor/autoload.php';
$co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbwikifantasy;', 'kiem', '');
//twig
$loader = new \Twig\Loader\FilesystemLoader('vue/templates');
$twig = new \Twig\Environment($loader, [
'cache' => false,
]);
$cont = new Controleur\FrontControler($co);
session_unset();
session_destroy();
$_SESSION = array();
?>