From 3aae43225d49d95729114ed1ca619707c50cd406 Mon Sep 17 00:00:00 2001 From: Johan LACHENAL Date: Mon, 28 Nov 2022 13:08:47 +0100 Subject: [PATCH 1/8] =?UTF-8?q?Ajout=20de=20la=20creation=20de=20partie=20?= =?UTF-8?q?multis=20et=20de=20parties=20solo=20pour=20retracer=20la=20prog?= =?UTF-8?q?ression=20des=20joueurs=20les=20enigmes=20solo=20ne=20pourront?= =?UTF-8?q?=20pas=20etre=20en=20multi=20et=20inversement=20=C3=A0=20moins?= =?UTF-8?q?=20de=20cr=C3=A9er=202=20enigmes=20semblables=20avec=20d'un=20c?= =?UTF-8?q?ot=C3=A9=20des=20points=20=C3=A0=200=20et=20de=20l'autre=20cot?= =?UTF-8?q?=C3=A9=20des=20points=20ajout=C3=A9s=20a=20la=20base=20de=20don?= =?UTF-8?q?n=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Controller/PartieGateway.php | 35 +++++++++-- WEB/Controller/UtilisateurGateway.php | 85 +++++++++++++++++++++++---- WEB/Factory/PartieFactory.php | 23 ++++++-- 3 files changed, 124 insertions(+), 19 deletions(-) diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php index 5252f0e6..6db232a2 100644 --- a/WEB/Controller/PartieGateway.php +++ b/WEB/Controller/PartieGateway.php @@ -17,15 +17,16 @@ class PartieGateway * @param array $listeJoueur */ - public function creerPartie(array $listeJoueur){ - $query = "SELECT * FROM Enigme"; + public function creerPartieMulti(array $listeJoueur){ + $query = "SELECT * FROM Enigme + WHERE points IS NOT NULL OR points != 0"; $this->con->executeQuery($query); $results = $this->con->getResults(); $query= "SELECT max(p.id) FROM PARTIE p;"; $this->con->executeQuery($query); - $max=$this->con->getResults()[0]; - $partie=PartieFactory::createPartie($max,$results); + $max=$this->con->getResults()[0]["max"]; + $partie=PartieFactory::createPartieMulti($max,$results); $query= "INSERT INTO Partie VALUES (:idPartie,:idEnigme)"; $this->con->executeQuery($query, array(':idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER))); foreach($partie->getListeEnigme() as $Enigme){ @@ -42,6 +43,30 @@ class PartieGateway } } + public function creerPartieSolo(Utilisateur $utilisateur){ + $query = "SELECT * FROM Enigme + WHERE points IS NULL OR points = 0"; + $this->con->executeQuery($query); + $results = $this->con->getResults(); + $query= "SELECT max(p.id) + FROM PARTIE p;"; + $this->con->executeQuery($query); + $max=$this->con->getResults()[0]["max"]; + $partie=PartieFactory::createPartieSolo($max,$results); + $query= "INSERT INTO Partie VALUES (:idPartie,:idEnigme)"; + $this->con->executeQuery($query, array(':idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER))); + foreach($partie->getListeEnigme() as $Enigme){ + $query= "INSERT INTO Contenir VALUES (:idPartie, :idEnigme)"; + $this->con->executeQuery($query, array( + ':idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER), + ':idEnigme' => array($Enigme->getIdEnigme(), SQLITE3_INTEGER))); + } + $query= "INSERT INTO Participer VALUES (:idPartie, :idJoueur, FALSE)"; + $this->con->executeQuery($query, array( + 'idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER), + 'idJoueur' => array($utilisateur->getEmail(), SQLITE3_INTEGER))); + } + public function delete(string $idPartie){ $query= "DELETE FROM Partie WHERE id = :idPartie"; $this->con->executeQuery($query, array(':idPartie' => array($idPartie, SQLITE3_INTEGER))); @@ -54,7 +79,7 @@ class PartieGateway $query= "SELECT max(p.id) FROM PARTIE p;"; $this->con->executeQuery($query); - $max=$this->con->getResults()[0]; + $max=$this->con->getResults()[0]["max"]; $listePartieHistory=array(); foreach($results as $row) { diff --git a/WEB/Controller/UtilisateurGateway.php b/WEB/Controller/UtilisateurGateway.php index 7e87d809..e1df5436 100644 --- a/WEB/Controller/UtilisateurGateway.php +++ b/WEB/Controller/UtilisateurGateway.php @@ -91,9 +91,9 @@ class UtilisateurGateway $this->con->executeQuery($query, array( ':emailUtilisateur' => array($emailUtilisateur,SQLITE3_TEXT) )); - $idPartie=$this->con->getResults()[0]; + $idPartie=$this->con->getResults()[0]["partie"]; - $query="SELECT e.id FROM Resoudre r, Contenir c1,Contenir c2, Enigme e WHERE + $query="SELECT e.id, c2.indexEnigme FROM Resoudre r, Contenir c1,Contenir c2, Enigme e WHERE r.id = :idPartie AND r.joueur=:idJoueur AND r.partie=:idPartie @@ -104,29 +104,94 @@ class UtilisateurGateway AND r.temps = (SELECT max(r.temps))"; $results=$this->con->getResults(); if(empty($results)) - $query="SELECT enigme FROM Contenir WHERE + { + $query="SELECT c.enigme, c.indexEnigme FROM Contenir c WHERE c.partie = :idPartie AND c.indexEnigme = 0"; $results=$this->con->getResults(); - $idEnigme=$results[0]; + } + $idEnigme=$results[0]["enigme"]; + $index=$results[0]["indexEnigme"]; $query="SELECT max(classement) FROM Enigme e,Partie p, Resoudre r - WHERE p.id=r.partie; + WHERE p.id=r.partie AND e.id=r.enigme"; $this->con->executeQuery($query); $results=$this->con->getResults(); if(empty($results)) $classement=1; else - $classement=$results[0]+1; + $classement=$results[0]["max"]+1; + + $query="SELECT * FROM Resoudre + WHERE r.joueur=:joueur + AND r.enigme=:idEnigme + AND r.partie=:idPartie"; + $this->con->executeQuery($query, array( + "joueur" => array($emailUtilisateur, SQLITE3_TEXT), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER))); + $results=$this->con->getResults(); + if(empty($results)) + { + $query="INSERT INTO Resoudre VALUES (:joueur, :enigme,:partie,:classement,:index,:temps,TRUE)"; + $this->con->executeQuery($query, array( + "joueur" => array($emailUtilisateur, SQLITE3_TEXT), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER), + "classement" => array($classement, SQLITE3_INTEGER), + "index" => array($index, SQLITE3_INTEGER), + "temps" => array($emailUtilisateur, SQLITE3_FLOAT))); + } + else + { + $query="UPDATE Resoudre + SET classement=:classement; + WHERE joueur=:joueur + AND enigme=:idEnigme + AND partie=:idPartie"; + $this->con->executeQuery($query, array( + "joueur" => array($emailUtilisateur, SQLITE3_TEXT), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER), + "classement" => array($classement, SQLITE3_INTEGER))); + } + } + + public function passerEnigmeMulti(string $emailUtilisateur){ + $query="SELECT p.partie FROM Participer + WHERE p.joueur = :emailUtilisateur + and p.enCours = TRUE"; + $this->con->executeQuery($query, array( + ':emailUtilisateur' => array($emailUtilisateur,SQLITE3_TEXT) + )); + $idPartie=$this->con->getResults()[0]["partie"]; + + $query="SELECT e.id, c2.indexEnigme FROM Resoudre r, Contenir c1,Contenir c2, Enigme e WHERE + r.id = :idPartie + AND r.joueur=:idJoueur + AND r.partie=:idPartie + AND r.temps IS NOT NULL + AND c1.partie = r.partie + AND c2.index=c1.index + 1 + AND e.id = c1.enigme + AND r.temps = (SELECT max(r.temps))"; + $results=$this->con->getResults(); + if(empty($results)) + $query="SELECT c.enigme, c.indexEnigme FROM Contenir c WHERE + c.partie = :idPartie + AND c.indexEnigme = 0"; + $results=$this->con->getResults(); + $idEnigme=$results[0]["enigme"]; + $index=$results[0]["indexEnigme"]; $query="INSERT INTO Resoudre VALUES (:joueur, :enigme,:partie,:classement,:index,:temps,TRUE)"; $this->con->executeQuery($query, array( "joueur" => array($emailUtilisateur, SQLITE3_TEXT), - "enigme" => array($idEnigme, SQLITE3_TEXT), - "partie" => array($idPartie, SQLITE3_TEXT), - "classement" => array($classement, SQLITE3_INTEGER), - "index" => array(, SQLITE3_INTEGER), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER), + "classement" => array(NULL, SQLITE3_NULL), + "index" => array($index, SQLITE3_INTEGER), "temps" => array($emailUtilisateur, SQLITE3_FLOAT))); } diff --git a/WEB/Factory/PartieFactory.php b/WEB/Factory/PartieFactory.php index f0f1d438..58f3bb53 100644 --- a/WEB/Factory/PartieFactory.php +++ b/WEB/Factory/PartieFactory.php @@ -2,7 +2,7 @@ include_once "EnigmeFactory.php"; include_once "../Model/Partie.php"; class PartieFactory{ - public static function createPartie($idMax,$resultsEnigme) : Partie + public static function createPartieMulti($idMax,$resultsEnigme) : Partie { $tempsResolutionPartie=0; $tabEnigme=array(); @@ -11,16 +11,31 @@ class PartieFactory{ while($tempsResolutionPartie <= 30) { $randomNumber=$tabIndex[array_rand($tabIndex)]; - $tabEnigme=EnigmeFactory::create($resultsEnigme[$randomNumber]); + $tabEnigme[]=EnigmeFactory::create($resultsEnigme[$randomNumber]); $TempsResolutionPartie+=$resultsEnigme[$randomNumber]['tempsDeResolution']; unset($tabIndex[$randomNumber]); } - $partie=new Partie($idMax,$resultsEnigme); + $partie=new Partie($idMax+1,$tabEnigme); + return $partie; + } + + public static function createPartieSolo($idMax,$resultsEnigme) : Partie + { + $tabEnigme=array(); + foreach($resultsEnigme as $row) + { + $tabEnigme[]=EnigmeFactory::create($row); + } + $partie=new Partie($idMax+1,$tabEnigme); return $partie; } public static function createPartieHistory($id,$resultsEnigme) : Partie { - $partie=new Partie($id,$resultsEnigme); + foreach($resultsEnigme as $row) + { + $tabEnigme[]=EnigmeFactory::create($row); + } + $partie=new Partie($id,$tabEnigme); return $partie; } } \ No newline at end of file From dd366646773b073119d8928523d7946df7a542d4 Mon Sep 17 00:00:00 2001 From: Johan LACHENAL Date: Mon, 28 Nov 2022 13:24:49 +0100 Subject: [PATCH 2/8] Ajout de la resolution d'enigme solo et multi --- WEB/Controller/PartieGateway.php | 8 ++- WEB/Controller/UtilisateurGateway.php | 79 ++++++++++++++++++++++++++- 2 files changed, 83 insertions(+), 4 deletions(-) diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php index 6db232a2..a5622975 100644 --- a/WEB/Controller/PartieGateway.php +++ b/WEB/Controller/PartieGateway.php @@ -61,7 +61,13 @@ class PartieGateway ':idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER), ':idEnigme' => array($Enigme->getIdEnigme(), SQLITE3_INTEGER))); } - $query= "INSERT INTO Participer VALUES (:idPartie, :idJoueur, FALSE)"; + foreach($partie->getListeEnigme() as $Enigme){ + $query= "INSERT INTO Contenir VALUES (:idPartie, :idEnigme)"; + $this->con->executeQuery($query, array( + ':idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER), + ':idEnigme' => array($Enigme->getIdEnigme(), SQLITE3_INTEGER))); + } + $query= "INSERT INTO Participer VALUES (:idPartie, :idJoueur, TRUE)"; $this->con->executeQuery($query, array( 'idPartie' => array($partie->getIdPartie(), SQLITE3_INTEGER), 'idJoueur' => array($utilisateur->getEmail(), SQLITE3_INTEGER))); diff --git a/WEB/Controller/UtilisateurGateway.php b/WEB/Controller/UtilisateurGateway.php index e1df5436..7304eb32 100644 --- a/WEB/Controller/UtilisateurGateway.php +++ b/WEB/Controller/UtilisateurGateway.php @@ -172,7 +172,9 @@ class UtilisateurGateway AND r.joueur=:idJoueur AND r.partie=:idPartie AND r.temps IS NOT NULL - AND c1.partie = r.partie + AND r.enigme=c1.enigme + AND r.partie = c1.partie + AND r.partie = c2.partie AND c2.index=c1.index + 1 AND e.id = c1.enigme AND r.temps = (SELECT max(r.temps))"; @@ -195,9 +197,80 @@ class UtilisateurGateway "temps" => array($emailUtilisateur, SQLITE3_FLOAT))); } - public function resoudreEnigmeSolo(string $emailUtilisateur, int $idEnigme, int $idPartie) + public function resoudreEnigmeSolo(string $emailUtilisateur) { - $query="INSERT INTO Resoudre VALUES (:joueur, :enigme,:partie,NULL,:index,:temps,False)"; + $query="SELECT c.partie FROM Contenir + WHERE c.joueur = :emailUtilisateur + and c.enCours = TRUE"; + $this->con->executeQuery($query, array( + ':emailUtilisateur' => array($emailUtilisateur,SQLITE3_TEXT) + )); + $idPartie=$this->con->getResults()[0]["partie"]; + + $query="SELECT e.id, c2.indexEnigme FROM Resoudre r, Contenir c1,Contenir c2, Enigme e WHERE + r.id = :idPartie + AND r.joueur=:idJoueur + AND r.partie=:idPartie + AND r.enigme = c1.enigme + AND c1.partie = r.partie + AND c2.partie = r.partie + AND c2.index=c1.index + 1 + AND e.id = c2.enigme + AND r.indexEnigme = (SELECT max(r.indexEnigme))"; + $results=$this->con->getResults(); + if(empty($results)) + { + $query="SELECT c.enigme, c.indexEnigme FROM Contenir c WHERE + c.partie = :idPartie + AND c.indexEnigme = 0"; + $results=$this->con->getResults(); + } + $idEnigme=$results[0]["enigme"]; + $index=$results[0]["indexEnigme"]; + + $query="SELECT max(classement) FROM Enigme e,Partie p, Resoudre r + WHERE p.id=r.partie + AND e.id=r.enigme"; + $this->con->executeQuery($query); + $results=$this->con->getResults(); + if(empty($results)) + $classement=1; + else + $classement=$results[0]["max"]+1; + + $query="SELECT * FROM Resoudre + WHERE r.joueur=:joueur + AND r.enigme=:idEnigme + AND r.partie=:idPartie"; + $this->con->executeQuery($query, array( + "joueur" => array($emailUtilisateur, SQLITE3_TEXT), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER))); + $results=$this->con->getResults(); + if(empty($results)) + { + $query="INSERT INTO Resoudre VALUES (:joueur, :enigme,:partie,:classement,:index,:temps,TRUE)"; + $this->con->executeQuery($query, array( + "joueur" => array($emailUtilisateur, SQLITE3_TEXT), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER), + "classement" => array($classement, SQLITE3_INTEGER), + "index" => array($index, SQLITE3_INTEGER), + "temps" => array($emailUtilisateur, SQLITE3_FLOAT))); + } + else + { + $query="UPDATE Resoudre + SET classement=:classement; + WHERE joueur=:joueur + AND enigme=:idEnigme + AND partie=:idPartie"; + $this->con->executeQuery($query, array( + "joueur" => array($emailUtilisateur, SQLITE3_TEXT), + "enigme" => array($idEnigme, SQLITE3_INTEGER), + "partie" => array($idPartie, SQLITE3_INTEGER), + "classement" => array($classement, SQLITE3_INTEGER))); + } } public function showAll() : void{ From 97eb4435ef68b0e132213f20338426610d7ee859 Mon Sep 17 00:00:00 2001 From: Johan LACHENAL Date: Mon, 28 Nov 2022 16:20:14 +0100 Subject: [PATCH 3/8] =?UTF-8?q?il=20manque=20la=20cr=C3=A9ation=20d'une=20?= =?UTF-8?q?file=20d'attente=20de=20joueur,=20l'instantiation=20du=20temps?= =?UTF-8?q?=20d'une=20partie=20et=20la=20fa=C3=A7on=20de=20transformer=20l?= =?UTF-8?q?e=20temps=20en=20nombre=20flottant=20et=20la=20passation=20du?= =?UTF-8?q?=20temps=20=C3=A0=20la=20base=20de=20donner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Controller/UserController.php | 13 +++++++++++++ WEB/Controller/UtilisateurGateway.php | 8 +++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/WEB/Controller/UserController.php b/WEB/Controller/UserController.php index a1fc969e..bd6b4c53 100644 --- a/WEB/Controller/UserController.php +++ b/WEB/Controller/UserController.php @@ -36,6 +36,9 @@ class UserController case "goToEnigme": $this->goToEnigme(); break; + case "goToQueue": + $this->goToQueue(); + break; } } catch (PDOException $e) { @@ -164,4 +167,14 @@ class UserController require($rep.$vues['erreur']); } } + + private function goToQueue() { + global $rep, $vues, $error; + try { + require ($rep.$vues['Queue']); + }catch (Exception $e){ + $error = "404"; + require($rep.$vues['erreur']); + } + } } \ No newline at end of file diff --git a/WEB/Controller/UtilisateurGateway.php b/WEB/Controller/UtilisateurGateway.php index 7304eb32..e9c2ec01 100644 --- a/WEB/Controller/UtilisateurGateway.php +++ b/WEB/Controller/UtilisateurGateway.php @@ -83,7 +83,7 @@ class UtilisateurGateway return $estAdmin; } - public function resoudreEnigmeMulti(string $emailUtilisateur) + /*public function resoudreEnigmeMulti(string $emailUtilisateur) { $query="SELECT c.partie FROM Contenir WHERE c.joueur = :emailUtilisateur @@ -141,7 +141,8 @@ class UtilisateurGateway "partie" => array($idPartie, SQLITE3_INTEGER), "classement" => array($classement, SQLITE3_INTEGER), "index" => array($index, SQLITE3_INTEGER), - "temps" => array($emailUtilisateur, SQLITE3_FLOAT))); + "temps" => array($temps, SQLITE3_FLOAT))); + return array($emailUtilisateur => array($points,$temps)) } else { @@ -155,8 +156,9 @@ class UtilisateurGateway "enigme" => array($idEnigme, SQLITE3_INTEGER), "partie" => array($idPartie, SQLITE3_INTEGER), "classement" => array($classement, SQLITE3_INTEGER))); + return array(); } - } + }*/ public function passerEnigmeMulti(string $emailUtilisateur){ $query="SELECT p.partie FROM Participer From 1bd047719230b53631bbef4ad7e841fbb98188b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20GARNIER?= Date: Mon, 28 Nov 2022 18:10:24 +0100 Subject: [PATCH 4/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WEB/Config/Con?= =?UTF-8?q?fig.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Config/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index 78c5f776..60336acc 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -14,7 +14,7 @@ $rep = __DIR__ . '/../'; // $password = 'p'; // SQULITE3 -$dsn = './Model/scripted.db'; +$dsn = '/WEB/Model/scripted.db'; //Sel de hashage $sel = "JeSuisUnSeldeHashageEtJeSuisUniqueEtTresSecuriseEtJeSuisTresLong"; From 596ad3488f14e1ecda5aa12b47dc5ad0ae255c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20GARNIER?= Date: Mon, 28 Nov 2022 18:11:40 +0100 Subject: [PATCH 5/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WEB/Config/Con?= =?UTF-8?q?fig.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Config/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index 60336acc..e29ca755 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -14,7 +14,7 @@ $rep = __DIR__ . '/../'; // $password = 'p'; // SQULITE3 -$dsn = '/WEB/Model/scripted.db'; +$dsn = '../Model/scripted.db'; //Sel de hashage $sel = "JeSuisUnSeldeHashageEtJeSuisUniqueEtTresSecuriseEtJeSuisTresLong"; From e2cfc158f74613bbbedaf68e533c1bda383d47d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20GARNIER?= Date: Mon, 28 Nov 2022 18:12:25 +0100 Subject: [PATCH 6/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WEB/Config/Con?= =?UTF-8?q?fig.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Config/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index e29ca755..78c5f776 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -14,7 +14,7 @@ $rep = __DIR__ . '/../'; // $password = 'p'; // SQULITE3 -$dsn = '../Model/scripted.db'; +$dsn = './Model/scripted.db'; //Sel de hashage $sel = "JeSuisUnSeldeHashageEtJeSuisUniqueEtTresSecuriseEtJeSuisTresLong"; From 4a7f56d1d2de01fa0525bcfcde2cd3c2f40b7072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20GARNIER?= Date: Mon, 28 Nov 2022 18:15:16 +0100 Subject: [PATCH 7/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WEB/Config/Con?= =?UTF-8?q?fig.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Config/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index 78c5f776..95a7158d 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -14,7 +14,7 @@ $rep = __DIR__ . '/../'; // $password = 'p'; // SQULITE3 -$dsn = './Model/scripted.db'; +$dsn = '../Model/Scripted'; //Sel de hashage $sel = "JeSuisUnSeldeHashageEtJeSuisUniqueEtTresSecuriseEtJeSuisTresLong"; From 22afdb9e8c1d84b4088089761105b66c72eca354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20GARNIER?= Date: Mon, 28 Nov 2022 18:15:52 +0100 Subject: [PATCH 8/8] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WEB/Config/Con?= =?UTF-8?q?fig.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WEB/Config/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php index 95a7158d..78c5f776 100644 --- a/WEB/Config/Config.php +++ b/WEB/Config/Config.php @@ -14,7 +14,7 @@ $rep = __DIR__ . '/../'; // $password = 'p'; // SQULITE3 -$dsn = '../Model/Scripted'; +$dsn = './Model/scripted.db'; //Sel de hashage $sel = "JeSuisUnSeldeHashageEtJeSuisUniqueEtTresSecuriseEtJeSuisTresLong";