Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Johan LACHENAL 2 years ago
commit 54c83e8dcf

@ -1,6 +1,6 @@
<?php <?php
//préfixe //préfixe
$rep = '../'; $rep = __DIR__ . '/../';
//BD //BD
$dsn = 'mysql:host=londres.uca.local; dbname=dbnogarnier1'; $dsn = 'mysql:host=londres.uca.local; dbname=dbnogarnier1';

@ -1,5 +1,4 @@
<?php <?php
use Vtiful\Kernel\Excel;
class Controller class Controller
{ {
@ -12,6 +11,7 @@ class Controller
$this->con=$con; $this->con=$con;
session_start(); session_start();
try{ try{
echo "controller";
global $rep, $vues, $error; global $rep, $vues, $error;
$action=$_REQUEST['action']; $action=$_REQUEST['action'];
switch($action) { switch($action) {

@ -2,9 +2,11 @@
require_once('./Config/Config.php'); require_once('./Config/Config.php');
require_once('./Config/Autoload.php'); require_once('./Config/Autoload.php');
Autoload::charger(); Autoload::charger();
echo "post";
$con = new Connection($dsn, $user, $password); $con = new Connection($dsn, $user, $password);
echo "con";
$control = new Controller($con); $control = new Controller($con);
echo "after";
session_regenerate_id(true); session_regenerate_id(true);
// session_unset(); // session_unset();

Loading…
Cancel
Save