Leni BEAULATON 6 months ago
commit 094e991d1d

@ -0,0 +1,3 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

@ -1,7 +1,7 @@
<?php
session_start();
$_SESSION['role']='visiteur';
$_SESSION['role']='admin';
$_SESSION['login']=NULL;
$_SESSION['theme']='dark';
@ -11,7 +11,8 @@ require_once __DIR__ . '/config/config.php';
require __DIR__ . '/vendor/autoload.php';
//$co = new \Gateway\Connection("pgsql:host=londres;dbname=dblebeaulato","lebeaulato","MaSQL:2004!");
$co = new \Gateway\Connection('pgsql:host=localhost;dbname=dbkekentin;', 'kekentin', 'Chocolat-77');
//twig
$loader = new \Twig\Loader\FilesystemLoader('vue/templates');
@ -26,4 +27,4 @@ session_unset();
session_destroy();
$_SESSION = array();
?>
?>

@ -6,11 +6,11 @@ use Gateway\Connection;
Class FrontControler{
private $listAction;
private string $role = 'visitor'; //Mettre en admin le temps de créer les comptes
private string $role = 'admin' //Mettre en admin le temps de créer les comptes
private Connection $co;
public function __construct(/*$co*/){
global $twig;

Loading…
Cancel
Save