|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
session_start();
|
|
|
|
|
$_SESSION['role']='visiteur';
|
|
|
|
|
$_SESSION['role']='admin';
|
|
|
|
|
$_SESSION['login']=NULL;
|
|
|
|
|
$_SESSION['theme']='dark';
|
|
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ require_once __DIR__ . '/config/config.php';
|
|
|
|
|
|
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
|
|
|
|
|
|
$co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbwikifantasy;', 'kiem', '');
|
|
|
|
|
$co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbkekentin;', 'kekentin', 'Chocolat-77');
|
|
|
|
|
|
|
|
|
|
//twig
|
|
|
|
|
$loader = new \Twig\Loader\FilesystemLoader('vue/templates');
|
|
|
|
|