Mise en place de l'architecture MVC

ServeurDeTest
Noé GARNIER 2 years ago
parent 8854adc11e
commit 6656a90629

@ -0,0 +1,17 @@
<?php
class Connection extends PDO {
private $stmt;
public function __construct(string $dsn, string $username, string $password) {
parent::__construct($dsn,$username,$password);
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); }
public function executeQuery(string $query, array $parameters = []) :bool {
$this->stmt = parent::prepare($query);
foreach ($parameters as $name => $value) {
$this->stmt->bindValue($name, $value[0], $value[1]); }
return $this->stmt->execute(); }
public function getResults(): array {
return $this->stmt->fetchall();
}
}

@ -0,0 +1,6 @@
<?php
class Validation
{
}

@ -0,0 +1,6 @@
<?php
class Admin
{
}

@ -0,0 +1,6 @@
<?php
class DetailPartie
{
}

@ -0,0 +1,6 @@
<?php
class Enigme
{
}

@ -0,0 +1,6 @@
<?php
class Joueur
{
}

@ -0,0 +1,6 @@
<?php
class Partie
{
}

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 211 KiB

After

Width:  |  Height:  |  Size: 211 KiB

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Before

Width:  |  Height:  |  Size: 362 KiB

After

Width:  |  Height:  |  Size: 362 KiB

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Before

Width:  |  Height:  |  Size: 823 KiB

After

Width:  |  Height:  |  Size: 823 KiB

Before

Width:  |  Height:  |  Size: 292 KiB

After

Width:  |  Height:  |  Size: 292 KiB

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

@ -81,7 +81,7 @@
</a> </a>
</div> </div>
<div id="bottom"> <div id="bottom">
<a href="./TrianglePascal.html" class="btn" id="fleche"> <a href="TrianglePascal.html" class="btn" id="fleche">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -83,7 +83,7 @@
</a> </a>
</div> </div>
<div id="bottom"> <div id="bottom">
<a href="./CesarDecrypt.html" class="btn" id="fleche"> <a href="CesarDecrypt.html" class="btn" id="fleche">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -78,7 +78,7 @@
</a> </a>
</div> </div>
<div id="bottom"> <div id="bottom">
<a href="./CesarEncrypt.html" class="btn" id="fleche"> <a href="CesarEncrypt.html" class="btn" id="fleche">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -97,7 +97,7 @@
</a> </a>
</div> </div>
<div id="bottom"> <div id="bottom">
<a href="./Chouette.html" class="btn" id="fleche"> <a href="Chouette.html" class="btn" id="fleche">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -87,7 +87,7 @@ Mathématiquement, on applique la formule :
</a> </a>
</div> </div>
<div id="bottom"> <div id="bottom">
<a href="./Hanoi.html" class="btn" id="fleche"> <a href="Hanoi.html" class="btn" id="fleche">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -75,7 +75,7 @@ print(estPalindrome("abba"))</div>
</a> </a>
</div> </div>
<div id="bottom"> <div id="bottom">
<a href="./ChuckNorris.html" class="btn" id="fleche"> <a href="ChuckNorris.html" class="btn" id="fleche">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -24,7 +24,7 @@
</a> </a>
</div> </div>
<div> <div>
<a class="enigme" href="./Presentation.html"> <a class="enigme" href="Presentation.html">
<span></span> <span></span>
<span></span> <span></span>
<span></span> <span></span>

@ -15,7 +15,7 @@
<div class="top"> <div class="top">
<h2>Sign up</h2> <h2>Sign up</h2>
</div> </div>
<form action="get.php" method="POST"> <form action="../../../../Controller/get.php" method="POST">
<div class="user-box"> <div class="user-box">
<input type="email" id="email" name="email" required=""> <input type="email" id="email" name="email" required="">
<label>Email</label> <label>Email</label>

@ -37,7 +37,7 @@
<a <a
id="enigme" id="enigme"
class="mb-3 text-uppercase d-flex justify-content-center align-items-center" class="mb-3 text-uppercase d-flex justify-content-center align-items-center"
href="./Presentation.html" href="Presentation.html"
style="width: 260px; height: 50px" style="width: 260px; height: 50px"
> >
<span></span> <span></span>

@ -60,7 +60,7 @@
</div> </div>
</div> </div>
<div class="buttons"> <div class="buttons">
<a href="./Enigme/palindrome.html" class="btn"> <a href="Enigme/palindrome.html" class="btn">
<span class="noAnimation">Next</span> <span class="noAnimation">Next</span>
</a> </a>
</div> </div>

@ -1,41 +0,0 @@
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<title>Login</title>
</head>
<body>
<div class="main">
<div class="login-box" id="form">
<div class="top">
<h2>Sign up</h2>
</div>
<form action="../src/pages/LogSign/get.php" method="POST">
<div class="user-box">
<input type="text" id="email" name="email" required="">
<label>Email</label>
</div>
<div class="user-box">
<input type="text" id="username" name="username" required="">
<label>Username</label>
</div>
<div class="user-box">
<input type="password" id="password" name="password" required="">
<label>Password</label>
</div>
<div>
<button class="left" type="submit">
<span></span>
<span></span>
<span></span>
<span></span>
Submit
</button>
</div>
</form>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save