diff --git a/Bd/bd.sql b/Bd/bd.sql deleted file mode 100644 index 2c961fa7..00000000 --- a/Bd/bd.sql +++ /dev/null @@ -1,39 +0,0 @@ -CREATE TABLE Admin( -email varchar(50) PRIMARY KEY, -pseudo varchar(50), -mdp varchar(50) -); - -CREATE TABLE Enigme( -idEnigme char(5) PRIMARY KEY, -admin varchar(50) REFERENCES Admin(email), -enonce varchar(250) NOT NULL, -aide varchar(250), -rappel varchar(250), -solution varchar(250) NOT NULL, -test varchar(250) NOT NULL, -tempsDeResolution numeric CHECK (tempsDeResolution >0) -); - -CREATE TABLE Joueur( -email varchar(50) PRIMARY KEY, -enigmeEnCours varchar(50) REFERENCES Enigme(idEnigme), -pseudo varchar(50), -mdp varchar(50) -); - -CREATE TABLE Partie( -idPartie char(5) NOT NULL, -joueur varchar(50) REFERENCES Joueur(email), -enigme char(5) REFERENCES Enigme(idEnigme), -points numeric CHECK (points >0), -PRIMARY KEY(idGame, joueur, enigme) -); - -CREATE TABLE DetailPartie( -idPartie char(5) NOT NULL, -joueur varchar(50) REFERENCES Joueur(email), -enigme char(5) REFERENCES Enigme(idEnigme), -points numeric CHECK (points >0), -PRIMARY KEY(idGame, joueur, enigme) -); \ No newline at end of file diff --git a/Bd/MCD&MLD.drawio.pdf b/Documentation/MCD&MLD.drawio.pdf similarity index 100% rename from Bd/MCD&MLD.drawio.pdf rename to Documentation/MCD&MLD.drawio.pdf diff --git a/WEB/Config/Config.php b/WEB/Config/Config.php new file mode 100644 index 00000000..ce30a946 --- /dev/null +++ b/WEB/Config/Config.php @@ -0,0 +1,16 @@ +con=$con; session_start(); try{ + global $rep, $vues; $action=$_REQUEST['action']; switch($action) { case NULL: - //require ('../View/src/pages/Main.html'); - header('Location: http://londres.uca.local/~nogarnier1/Scripted/WEB/View/src/pages/Main.html'); + require ('./View/src/pages/Main.php'); + //header('Location: http://londres.uca.local/~nogarnier1/Scripted/WEB/View/src/pages/Main.html'); + break; + case "signUp": + $this->signUp(); break; case "login": $this->login(); break; + case "goToPresentation": + $this->goToPresentation(); + break; + case "goToHome": + $this->goToHome(); + break; + case "goToLogin": + $this->goToLogin(); + break; + case "goToSignUp": + $this->goToSignUp(); + break; } } catch (PDOException $e) { - //si erreur BD, pas le cas ici - $dataVueEreur[] = "Erreur inattendue!!! "; - //require(__DIR__.'/../vues/erreur.php'); // ajout du code de la vue ici + require ($rep.$vues['erreurBd']); } - catch (Exception $e2) - { - $dataVueEreur[] = "Erreur inattendue!!! "; - //require ($rep.$vues['erreur']); + } + + private function signUp() { + global $rep, $vues; + try { + $gateway = new JoueurGateway($this->con); + $validation = new Validation(); + if (! $validation->ValidateEmail($_REQUEST['email'])) { + throw (new Exception("Email non valide")); + } + $joueur = new Joueur($_REQUEST['email'], $_REQUEST['username'], $_REQUEST['password']); + $gateway->insert($joueur); + $_SESSION['connected'] = 'true'; + require ('./View/src/pages/Main.php'); + }catch (Exception $e){ + require($rep.$vues['erreurSignUp']); + } + } + private function login(){ + global $rep, $vues; + try { + $gateway = new JoueurGateway($this->con); + $joueur = $gateway->getJoueurByEmail($_REQUEST['email']); + if ($joueur->getEmail() == null){ + throw new JoueurNotFoundException("Joueur introuvable"); + } + $mdp = $gateway->getMdpByEmail($_REQUEST['email']); + if ($mdp != $_REQUEST['password']){ + throw new InvalidMdpException("Mot de passe invalide"); + } + $_SESSION['connected'] = 'true'; + require ('./View/src/pages/Main.php'); + }catch (JoueurNotFoundException $e){ + require($rep.$vues['erreurLoginEmail']); + }catch (InvalidMdpException $m) { + require($rep . $vues['erreurLoginMdp']); + } + } + + private function goToPresentation() { + global $rep, $vues; + try { + require ('./View/src/pages/Presentation.html'); + }catch (Exception $e){ + require($rep.$vues['erreur404']); + } + } + + private function goToHome() { + global $rep, $vues; + try { + require ('./View/src/pages/Main.php'); + }catch (Exception $e){ + require($rep.$vues['erreur404']); + } + } + + private function goToLogin() { + global $rep, $vues; + try { + require ('./View/src/pages/LogSign/Login.php'); + }catch (Exception $e){ + require($rep.$vues['erreur404']); } } - private function login() { - $gateway=new JoueurGateway($this->con); - $joueur=new Joueur($_REQUEST['email'], $_REQUEST['username'], $_REQUEST['password']); - $gateway->insert($joueur); - $gateway->showAll(); + private function goToSignUp() { + global $rep, $vues; + try { + require ('./View/src/pages/LogSign/SignUp.php'); + }catch (Exception $e){ + require($rep.$vues['erreur404']); + } } } \ No newline at end of file diff --git a/WEB/Controller/DetailPartieGateway.php b/WEB/Controller/DetailPartieGateway.php deleted file mode 100644 index 2e2f8102..00000000 --- a/WEB/Controller/DetailPartieGateway.php +++ /dev/null @@ -1,52 +0,0 @@ -con = $con; - } - - /** - * @param Connection $con - */ - public function setCon(Connection $con): void - { - $this->con = $con; - } - - public function insert(DetailPartie $detailPartie) - { - $query="INSERT INTO DetailPartie VALUES (:idDetailPartie,:joueur,:partie,:enigme,:pointsObtenus,:classement)"; - $this->con->executeQuery($query,array( - 'idDetailPartie' => array($detailPartie->getIdDetailPartie(),PDO::PARAM_STR), - 'joueur' => array($detailPartie->getJoueur(),PDO::PARAM_STR), - 'partie' => array($detailPartie->getPartie(),PDO::PARAM_STR), - 'enigme' => array($detailPartie->getEnigme(),PDO::PARAM_STR), - 'pointsObtenus' => array($detailPartie->getPointsObtenus(),PDO::PARAM_INT), - 'classement' => array($detailPartie->getClassement(),PDO::PARAM_INT) - )); - } - public function delete(string $partie){ - $query="DELETE * FROM DetailPartie WHERE partie=:partie"; - $this->con->executeQuery($query,array( - 'partie' => array($partie,PDO::PARAM_STR) - )); - } - public function showAll(){ - $query="SELECT * FROM DetailPartie"; - $this->con->executeQuery($query); - $results=$this->con->getResults(); - foreach($results as $row) - { - $row['idDetailPartie']; - } - } - - -} \ No newline at end of file diff --git a/WEB/Controller/EnigmeGateway.php b/WEB/Controller/EnigmeGateway.php index 03a33c31..6f15131b 100644 --- a/WEB/Controller/EnigmeGateway.php +++ b/WEB/Controller/EnigmeGateway.php @@ -1,6 +1,4 @@ getLine().' in '.$this->getFile() + .': '.$this->getMessage().' Mdp invalide'; + return $errorMsg; + } +} \ No newline at end of file diff --git a/WEB/Controller/JoueurGateway.php b/WEB/Controller/JoueurGateway.php index 4d49a6c5..f6737e72 100644 --- a/WEB/Controller/JoueurGateway.php +++ b/WEB/Controller/JoueurGateway.php @@ -1,8 +1,5 @@ con->executeQuery($query, array( + ':email' => array($email,PDO::PARAM_STR) + )); + $results=$this->con->getResults(); + foreach ($results as $row) { + $email=$row['email']; + $pseudo=$row['pseudo']; + $mdp=$row['mdp']; + } + if ($results == null){ + throw new JoueurNotFoundException("Joueur Introuvable"); + } + return new Joueur($email, $pseudo, $mdp); + } + + public function getMdpByEmail(string $email) : string{ + $query = "SELECT mdp FROM Joueur WHERE email=:email"; + $this->con->executeQuery($query, array( + ':email' => array($email,PDO::PARAM_STR) + )); + $results=$this->con->getResults(); + foreach ($results as $row) { + $mdp=$row['mdp']; + } + if ($results == null){ + throw new InvalidMdpException("Mots de passe Incorrect"); + } + return $mdp; + } + public function showAll() : void{ $query = "SELECT * FROM Joueur"; $this->con->executeQuery($query); diff --git a/WEB/Controller/JoueurNotFoundException.php b/WEB/Controller/JoueurNotFoundException.php new file mode 100644 index 00000000..0b604c42 --- /dev/null +++ b/WEB/Controller/JoueurNotFoundException.php @@ -0,0 +1,10 @@ +getLine().' in '.$this->getFile() + .': '.$this->getMessage().' Joueur not found'; + return $errorMsg; + } +} \ No newline at end of file diff --git a/WEB/Controller/Traitement.php b/WEB/Controller/Traitement.php deleted file mode 100644 index 1e7cf661..00000000 --- a/WEB/Controller/Traitement.php +++ /dev/null @@ -1,12 +0,0 @@ - - - - - \ No newline at end of file diff --git a/WEB/Model/DetailPartie.php b/WEB/Model/DetailPartie.php deleted file mode 100644 index b80095cd..00000000 --- a/WEB/Model/DetailPartie.php +++ /dev/null @@ -1,125 +0,0 @@ -idDetailPartie = $idDetailPartie; - $this->joueur = $joueur; - $this->partie = $partie; - $this->enigme = $enigme; - $this->pointsObtenus = $pointsObtenus; - $this->classement = $classement; - } - - /** - * @return string - */ - public function getIdDetailPartie(): string - { - return $this->idDetailPartie; - } - - /** - * @param string $idDetailPartie - */ - public function setIdDetailPartie(string $idDetailPartie): void - { - $this->idDetailPartie = $idDetailPartie; - } - - /** - * @return string - */ - public function getJoueur(): string - { - return $this->joueur; - } - - /** - * @param string $joueur - */ - public function setJoueur(string $joueur): void - { - $this->joueur = $joueur; - } - - /** - * @return string - */ - public function getPartie(): string - { - return $this->partie; - } - - /** - * @param string $partie - */ - public function setPartie(string $partie): void - { - $this->partie = $partie; - } - - /** - * @return string - */ - public function getEnigme(): string - { - return $this->enigme; - } - - /** - * @param string $enigme - */ - public function setEnigme(string $enigme): void - { - $this->enigme = $enigme; - } - - /** - * @return int - */ - public function getPointsObtenus(): int - { - return $this->pointsObtenus; - } - - /** - * @param int $pointsObtenus - */ - public function setPointsObtenus(int $pointsObtenus): void - { - $this->pointsObtenus = $pointsObtenus; - } - - /** - * @return int - */ - public function getClassement(): int - { - return $this->classement; - } - - /** - * @param int $classement - */ - public function setClassement(int $classement): void - { - $this->classement = $classement; - } -} \ No newline at end of file diff --git a/WEB/Model/Enigme.php b/WEB/Model/Enigme.php index 40163a39..d14528ec 100644 --- a/WEB/Model/Enigme.php +++ b/WEB/Model/Enigme.php @@ -3,17 +3,15 @@ class Enigme { private string $idEnigme; - private string $admin; private string $enonce; private string $aide; private string $rappel; private string $solution; private string $test; - private float $tempsDeResolution; + private int $tempsDeResolution; /** * @param string $idEnigme - * @param string $admin * @param string $enonce * @param string $aide * @param string $rappel @@ -21,16 +19,29 @@ class Enigme * @param string $test * @param int $tempsDeResolution */ - public function __construct(string $idEnigme, string $admin, string $enonce, string $aide, string $rappel, string $solution, string $test, float $tempsDeResolution) + public function __construct(string $idEnigme, string $enonce, string $aide, string $rappel, string $solution, string $test, int $tempsDeResolution) { - $this->idEnigme = $idEnigme; - $this->admin = $admin; - $this->enonce = $enonce; - $this->aide = $aide; - $this->rappel = $rappel; - $this->solution = $solution; - $this->test = $test; - $this->tempsDeResolution = $tempsDeResolution; + $arguments=func_get_args(); + $index=func_num_args(); + if(method_exists($this,$function='__construct'.$index)); + call_user_func(array(array($this,$function),$arguments)); + } + + public function __constructMulti(string $idEnigme, string $enonce, string $solution, string $test, int $tempsDeResolution){ + $this->idEnigme=$idEnigme; + $this->enonce=$enonce; + $this->solution=$solution; + $this->test=$test; + $this->tempsDeResolution=$tempsDeResolution; + } + + public function __constructSolo(string $idEnigme, string $enonce, string $aide, string $rappel, string $solution, string $test){ + $this->idEnigme=$idEnigme; + $this->enonce=$enonce; + $this->aide=$aide; + $this->rappel=$rappel; + $this->solution=$solution; + $this->test=$test; } /** @@ -49,22 +60,6 @@ class Enigme $this->idEnigme = $idEnigme; } - /** - * @return string - */ - public function getAdmin(): string - { - return $this->admin; - } - - /** - * @param string $admin - */ - public function setAdmin(string $admin): void - { - $this->admin = $admin; - } - /** * @return string */ @@ -148,7 +143,7 @@ class Enigme /** * @return int */ - public function getTempsDeResolution(): float + public function getTempsDeResolution(): int { return $this->tempsDeResolution; } @@ -156,7 +151,7 @@ class Enigme /** * @param int $tempsDeResolution */ - public function setTempsDeResolution(float $tempsDeResolution): void + public function setTempsDeResolution(int $tempsDeResolution): void { $this->tempsDeResolution = $tempsDeResolution; } diff --git a/WEB/Model/Partie.php b/WEB/Model/Partie.php index baf996df..11375902 100644 --- a/WEB/Model/Partie.php +++ b/WEB/Model/Partie.php @@ -3,13 +3,16 @@ class Partie { private string $idPartie; + private date $datePartie; /** * @param string $idPartie + * @param date $datePartie */ public function __construct(string $idPartie) { $this->idPartie = $idPartie; + $this->datePartie = getdate(NULL); } /** @@ -27,4 +30,22 @@ class Partie { $this->idPartie = $idPartie; } + + /** + * @return date + */ + public function getDatePartie(): date + { + return $this->datePartie; + } + + /** + * @param date $datePartie + */ + public function setDatePartie(date $datePartie): void + { + $this->datePartie = $datePartie; + } + + } \ No newline at end of file diff --git a/WEB/Model/bd.sql b/WEB/Model/bd.sql index 92dce34c..69c86116 100644 --- a/WEB/Model/bd.sql +++ b/WEB/Model/bd.sql @@ -3,11 +3,13 @@ -- CREATE scripted; -- USE scripted; -DROP TABLE GameDetail; DROP TABLE Contenir; -DROP TABLE Game; -DROP TABLE Resoudre; +DROP TABLE Gerer; +DROP TABLE ResoudreMulti; +DROP TABLE Participer; +DROP TABLE ResoudreEnSolo; DROP TABLE Enigme; +DROP TABLE Partie; DROP TABLE Admin; DROP TABLE Joueur; @@ -24,7 +26,7 @@ mdp varchar(50) ); CREATE TABLE Enigme( -idEnigme char(5) PRIMARY KEY, +id char(5) PRIMARY KEY, admin varchar(50) REFERENCES Admin(email), enonce varchar(250) NOT NULL, aide varchar(250), @@ -34,31 +36,28 @@ test varchar(250) NOT NULL, tempsDeResolution numeric CHECK (tempsDeResolution >0) ); -CREATE TABLE Resoudre( -joueur varchar(50) REFERENCES Joueur(email), -enigme varchar(5) REFERENCES Enigme(idEnigme), -PRIMARY KEY(joueur, enigme) -); - CREATE TABLE Game( -idGame char(5) PRIMARY KEY +id char(5) PRIMARY KEY ); -CREATE TABLE Contenir( -game varchar(50) REFERENCES Game(idGame), -enigme varchar(5) REFERENCES Enigme(idEnigme), -PRIMARY KEY(game, enigme) +CREATE TABLE ResoudreEnSolo( +joueur varchar(50) REFERENCES Joueur(email), +enigme varchar(5) REFERENCES Enigme(id), +indexEnigme numeric UNIQUE, +PRIMARY KEY(joueur, enigme) ); -CREATE TABLE GameDetail( -idGameDetail char(5), +CREATE TABLE ResoudreEnMulti( joueur varchar(50) REFERENCES Joueur(email), -game varchar(50) REFERENCES Game(idGame), -enigme varchar(5) REFERENCES Enigme(idEnigme), -pointsObtenu numeric NOT NULL CHECK (pointsObtenu >= 0), -classement numeric NOT NULL -CHECK (classement >= 1 && classement <= 3), -tempsDeResolution numeric CHECK (tempsDeResolution >0) +enigme varchar(5) REFERENCES Enigme(id), +partie char(5) REFERENCES Partie(id), +indexEnigme numeric UNIQUE, +PRIMARY KEY(joueur, enigme, partie) ); -INSERT INTO Joueur VALUE ('code@c.com','SU','RPRISE'); +CREATE TABLE Contenir( +partie varchar(50) REFERENCES Partie(id), +enigme varchar(5) REFERENCES Enigme(id), +indexEnigme numeric UNIQUE, +PRIMARY KEY(partie, enigme) +); diff --git a/WEB/View/Error/Erreur.php b/WEB/View/Error/Erreur.php new file mode 100644 index 00000000..e11be05c --- /dev/null +++ b/WEB/View/Error/Erreur.php @@ -0,0 +1,9 @@ + + +

ERREUR

+

Erreur inatendu

+ + + \ No newline at end of file diff --git a/WEB/View/Error/Erreur404.php b/WEB/View/Error/Erreur404.php new file mode 100644 index 00000000..84b9c616 --- /dev/null +++ b/WEB/View/Error/Erreur404.php @@ -0,0 +1,9 @@ + + +

ERREUR

+

Page introuvable

+ + + diff --git a/WEB/View/Error/ErreurBd.php b/WEB/View/Error/ErreurBd.php new file mode 100644 index 00000000..8c80510e --- /dev/null +++ b/WEB/View/Error/ErreurBd.php @@ -0,0 +1,9 @@ + + +

ERREUR

+

Erreur avec la base de donnée

+ + + diff --git a/WEB/View/Error/ErreurLoginEmail.php b/WEB/View/Error/ErreurLoginEmail.php new file mode 100644 index 00000000..f939830c --- /dev/null +++ b/WEB/View/Error/ErreurLoginEmail.php @@ -0,0 +1,10 @@ + + +

ERREUR

+

Joueur introuvable

+ + + + diff --git a/WEB/View/Error/ErreurLoginMdp.php b/WEB/View/Error/ErreurLoginMdp.php new file mode 100644 index 00000000..4db8f12b --- /dev/null +++ b/WEB/View/Error/ErreurLoginMdp.php @@ -0,0 +1,10 @@ + + +

ERREUR

+

Mot de passe invalide

+ + + + diff --git a/WEB/View/Error/ErreurSignUp.php b/WEB/View/Error/ErreurSignUp.php new file mode 100644 index 00000000..2af01518 --- /dev/null +++ b/WEB/View/Error/ErreurSignUp.php @@ -0,0 +1,10 @@ + + +

ERREUR

+

E-mail invalide

+ + + + diff --git a/WEB/View/src/CSS/Enigmev2.css b/WEB/View/src/CSS/Enigmev2.css new file mode 100644 index 00000000..e861a9ee --- /dev/null +++ b/WEB/View/src/CSS/Enigmev2.css @@ -0,0 +1,215 @@ +/*Fonts CSS */ + +@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap'); + +/*Default CSS*/ + + + +/*Ace CSS */ + +.ace{ + width: 45%; + height: 90%; + max-height: 100%; + margin-bottom: 0; + margin-right: 10px; +} + + +/* Main Button Css */ + +.buttons{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + cursor: pointer; +} + +.compiler_class .buttons div{ + display: flex; +} + +.buttons .btn{ + position: relative; + width: 120px; + height: 60px; + display: inline-block; + background: transparent; + margin: 20px; + } + + + .buttons .btn:before, .buttons .btn:after + { + content:''; + position: absolute; + inset: 0; + transition: 0.5s; + background: #f00 + } + + +.buttons .btn:nth-child(1):before, .buttons .btn:nth-child(1):after +{ + background: linear-gradient(45deg, #00ccff, #0e1538, #d400d4) +} + +.buttons .btn:nth-child(2):before, .buttons .btn:nth-child(2):after +{ + background: linear-gradient(45deg, #d400d4, #0e1538, #fb5942); +} + +.buttons .btn:hover:before +{ + inset: -3px; +} + +.buttons .btn:hover:after +{ + inset: -3px; + filter: blur(10px); +} + +.buttons .btn span{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: inline-block; + background: #0e1538; + z-index: 10; + display: flex; + justify-content: center; + align-items: center; + font-size: 1.2em; + text-transform: uppercase; + letter-spacing: 2px; + color: #fff; + border: 1px solid #040a29; + overflow: hidden; +} + +.buttons .btn span::before{ + content:''; + position: absolute; + top: 0; + left: -50%; + width: 100%; + height: 100%; + background: rgba(255,255,255,0.075); + transform: skew(25deg) +} + + + +.buttons .btn .noAnimation { + animation: none; + font-size: 1em; +} + + +/* Modal CSS */ + +.modal-container { + position: fixed; + top: 0; + left: 0; + z-index: 10; + + display: none; + justify-content: center; + align-items: center; + + width: 100%; + height: 100%; + background: var(--m-background); + } + + .modal-container:target { + display: flex; + align-items: center; + } + + .modal { + display: flex; + justify-content: center; + align-items: flex-end; + width: 30%; + height: 35%; + padding: 10px 0; + border-radius: .8rem; + + color: aliceblue; + background: var(--background); + box-shadow: var(--m-shadow, .4rem .4rem 8.2rem .2rem) var(--shadow-1); + position: relative; + overflow: hidden; + } + + /* Modal H1 */ + + .modal #containerResult{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + width: 80%; + height: 100%; + } + + + /* Modal Container Buttons */ + + .modal .buttons{ + display: flex; + align-items: flex-end; + height: 100%; + width: auto; + } + + .modal .buttons #top{ + display: flex; + justify-content: flex-end; + align-items: flex-start; + width: auto; + height: 50%; + } + + .modal .buttons #bottom{ + display: flex; + justify-content: center; + align-items: flex-end; + width: auto; + height: 50%; + } + + /* Modal buttons btn */ + + .modal .buttons .btn{ + width: 30px; + height: 30px; + margin : 0 15px; + } + + .modal .buttons #bottom{ + width: 100%; + } + + .modal .buttons #fleche{ + display: none; + width: 75px; + height: 40px; + } + + .modal .buttons .btn span{ + background: #06124b; + color: white; + } + + .modal .buttons #bottom .btn:nth-child(1):before, .modal .buttons #bottom .btn:nth-child(1):after + { + background: linear-gradient(45deg, #d400d4, #0e1538, #fb5942); + } \ No newline at end of file diff --git a/WEB/View/src/pages/Enigme/Enigmebootstrap.html b/WEB/View/src/pages/Enigme/Enigmebootstrap.html new file mode 100644 index 00000000..4238858c --- /dev/null +++ b/WEB/View/src/pages/Enigme/Enigmebootstrap.html @@ -0,0 +1,84 @@ + + + + + + Bootstrap Site + + + + + + + + + +
+
+
+
+ home +
+
+

+ p + alin + d + rome +

+

+
+

Consigne


+

+ Écrire une fonction estPalindrome qui prend en argument un entier et qui renvoie True si c’est un palindrome et False sinon. +



+

Rappel


+

Un palindrome est un nombre qui peut se lire dans les deux sens. Par exemple 111.



+

Exemple


+

Entrée :      Sortie :

+

[1,0,1]        True

+

[1,1,9,1]       False



+

Aide


+

En python l’instruction [::-1] permet d’inverse une chaine de caractère. Par exemple print("ae"[::-1]) affiche : ea.

+
+
+
+
def estPalindrome(var): + return var == var[::-1] +print(estPalindrome("abba")) +
+
+
+
+ +
+ +
+
+
+ + + + + + + \ No newline at end of file diff --git a/WEB/View/src/pages/LogSign/Login.php b/WEB/View/src/pages/LogSign/Login.php index f8c053bd..a969d3bf 100644 --- a/WEB/View/src/pages/LogSign/Login.php +++ b/WEB/View/src/pages/LogSign/Login.php @@ -4,7 +4,7 @@ - + Login @@ -15,10 +15,10 @@

Sign up

-
+
- - + +
@@ -32,7 +32,7 @@ Submit - + diff --git a/WEB/View/src/pages/LogSign/SignUp.php b/WEB/View/src/pages/LogSign/SignUp.php index beb22719..a700b15e 100644 --- a/WEB/View/src/pages/LogSign/SignUp.php +++ b/WEB/View/src/pages/LogSign/SignUp.php @@ -4,7 +4,7 @@ - + Login @@ -15,7 +15,7 @@

Sign up

- +
@@ -30,19 +30,12 @@
- Sign up - +
diff --git a/WEB/View/src/pages/Main.html b/WEB/View/src/pages/Main.php similarity index 75% rename from WEB/View/src/pages/Main.html rename to WEB/View/src/pages/Main.php index 7d09afc0..2355ce52 100644 --- a/WEB/View/src/pages/Main.html +++ b/WEB/View/src/pages/Main.php @@ -16,7 +16,7 @@ integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous" /> - + @@ -34,12 +34,20 @@
- + + > + diff --git a/WEB/View/src/pages/Presentation.html b/WEB/View/src/pages/Presentation.html index e4f6ca8e..c9c27c01 100644 --- a/WEB/View/src/pages/Presentation.html +++ b/WEB/View/src/pages/Presentation.html @@ -1,86 +1,69 @@ - - - - - - - - + + + + + + + + Presentation
-
- -
-

- P - resen - t - ation -

-
-
-
-
- Foxy -
-

- Bonjour utilisateur ! Je suis Foxy, une IA créer par Howard Aiken, - un eminent chercheur, malhereusement celui-ci est mort. J'ai - besoin de votre aide pour protéger mon code source d'une - organisation malveillante qui veut le voler. Pour cela, je vais - vous demander de résoudre des énigmes. Mais tout d'abord, vous - devez passer un test de qualification. Si vous réussissez, vous - pourrez accéder aux énigmes. Bonne chance utilisateur ! -

-
-
-
-
-
-

- Le Bouton Run te permet de tester ton code, n'oublie pas de faire - print(nomFonction(x)) pour afficher sur la console ! -

-
- -
-
-
- -
-

- Tu pense avoir réussi ? Tres bien ! Utilise le bouton submit pour - faire valider ton code et passer à la prochaine enigme -

-
-
-
- - Next - +
+
+ home +
+
+

+ P + resen + t + ation +

+
+
+
+
+ Foxy +
+

Bonjour utilisateur ! Je suis Foxy, une IA créer par Howard Aiken, un eminent chercheur, + malhereusement celui-ci est mort. J'ai besoin de votre aide pour protéger mon code source d'une organisation + malveillante qui veut le voler. Pour cela, je vais vous demander de résoudre des énigmes. Mais tout d'abord, + vous devez passer un test de qualification. Si vous réussissez, vous pourrez accéder aux énigmes. + Bonne chance utilisateur ! +

+
+
+
+
+
+

Le Bouton Run te permet de tester ton code, n'oublie pas de faire print(nomFonction(x)) pour afficher sur la console !

+
+ +
+
+
+ +
+

Tu pense avoir réussi ? Tres bien ! Utilise le bouton submit pour faire valider ton code et passer à la prochaine enigme

+
+
+
diff --git a/WEB/index.php b/WEB/index.php new file mode 100644 index 00000000..e72b326e --- /dev/null +++ b/WEB/index.php @@ -0,0 +1,24 @@ + - - - - - - - \ No newline at end of file diff --git a/WEB/php/.idea/php.iml b/WEB/php/.idea/php.iml deleted file mode 100644 index c956989b..00000000 --- a/WEB/php/.idea/php.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/WEB/php/.idea/php.xml b/WEB/php/.idea/php.xml deleted file mode 100644 index 35715888..00000000 --- a/WEB/php/.idea/php.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/WEB/php/.idea/vcs.xml b/WEB/php/.idea/vcs.xml deleted file mode 100644 index b2bdec2d..00000000 --- a/WEB/php/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file