Small push, improvement of the visual of the "erreur.php" and "PageListPublic.php" pages

rayhan_modification
Emre KARTAL 2 years ago
parent c7ad29522d
commit eb24736d32

@ -1,7 +1,9 @@
# Presentation Projet_ToDoList_Php # Presentation Projet_ToDoList_Php
<div align = center> <div align = center>
![Image de l'application](Logo.png) ![Image de l'application](Logo.png)
</div> </div>
**Nom de lapplication** : ToDoList **Nom de lapplication** : ToDoList

@ -22,21 +22,6 @@ class Validation {
// $dVueEreur[] = "Veuillez revoir le mail*"; // $dVueEreur[] = "Veuillez revoir le mail*";
// } // }
<<<<<<< HEAD
//Vérification Email
if (!isset($email)||$email=="") {
$dVueEreur[] = "L'email est obligatoire.";
$pseudo="";
$i++;
}
if ($email != filter_var($email, FILTER_SANITIZE_STRING))
{
$dVueEreur[] = "Tentative d'injection de code (attaque sécurité)";
$nom="";
$i++;
}
=======
// //Vérification Pseudo // //Vérification Pseudo
// if (!isset($pseudo)||$pseudo=="") { // if (!isset($pseudo)||$pseudo=="") {
// $dVueEreur[] = "pas de pseudo"; // $dVueEreur[] = "pas de pseudo";
@ -45,7 +30,6 @@ class Validation {
// } // }
// val_string($pseudo,$i,$dVueEreur); // val_string($pseudo,$i,$dVueEreur);
>>>>>>> master
// //Vérification Mot de Passe // //Vérification Mot de Passe
// if (!isset($mdp)||$mdp=="") { // if (!isset($mdp)||$mdp=="") {
@ -54,27 +38,7 @@ class Validation {
// $i++; // $i++;
// } // }
<<<<<<< HEAD
//Vérification Pseudo
if (!isset($pseudo)||$pseudo=="") {
$dVueEreur[] = "Le pseudonyme est obligatoire.";
$pseudo="";
$i++;
}
val_string($pseudo,$i,$dVueEreur);
//Vérification Mot de Passe
if (!isset($mdp)||$mdp=="") {
$dVueEreur[] = "Veuillez renseignez votre mot de passe.";
$mdp="";
$i++;
}
val_string($mdp,$i,$dVueEreur);
=======
// val_string($mdp,$i,$dVueEreur); // val_string($mdp,$i,$dVueEreur);
>>>>>>> master
// if (!preg_match('/^.{5,}$/', $mdp)) { // if (!preg_match('/^.{5,}$/', $mdp)) {
@ -93,13 +57,7 @@ class Validation {
$str = preg_replace('/[^A-Za-z\-]/', '', $str); $str = preg_replace('/[^A-Za-z\-]/', '', $str);
if($str == null || $str == '') if($str == null || $str == '')
{ {
<<<<<<< HEAD
$dVueEreur[] = "Tentative d'injection de code (attaque sécurité)";
$str="";
$i++;
=======
return null; return null;
>>>>>>> master
} }
return $str; return $str;
} }

@ -23,7 +23,6 @@ class MdlUtilisateur
return $userGtw->getListePublic(0,10); return $userGtw->getListePublic(0,10);
} }
<<<<<<< HEAD:src/Modele/MdlVisiteur.php
public static function RecupererTache(){ public static function RecupererTache(){
$userGtw = new TacheGateway(); $userGtw = new TacheGateway();
@ -41,8 +40,5 @@ class MdlUtilisateur
return $userGtw->Supprimer($id); return $userGtw->Supprimer($id);
} }
=======
>>>>>>> master:src/modele/MdlUtilisateur.php
} }

@ -16,7 +16,7 @@ class TacheGateway{
} }
public function Editer(Tache $tache, string $nom, string $description){ public function Editer(Tache $tache, string $nom, string $description){
$query='UPDATE ToDoListe_Tache SET nom=:nom, description =:description WHERE id=:id'; $query='UPDATE ToDoList_Tache SET nom=:nom, description =:description WHERE id=:id';
$this->con->executeQuery($query, array('nom' => array($tache->getNom(), PDO::PARAM_STRING)), array('description' => array($tache->getdescription(), PDO::PARAM_STRING)), array('id' => array($tache->getId(),PDO::PARAM_INT))); $this->con->executeQuery($query, array('nom' => array($tache->getNom(), PDO::PARAM_STRING)), array('description' => array($tache->getdescription(), PDO::PARAM_STRING)), array('id' => array($tache->getId(),PDO::PARAM_INT)));
} }

@ -22,7 +22,7 @@
<h4><a class="nav-item nav-link text-light" href="index.php?action=logout">Se deconnecter</a></h4> <h4><a class="nav-item nav-link text-light" href="index.php?action=logout">Se deconnecter</a></h4>
<?php <?php
} else { } else {
?> <h5><a class="nav-item nav-link text-light" href="login">Se connecter</a></h5> ?> <h5><a class="nav-item btn btn-outline-light" href="login">Se connecter</a></h5>
<h5><a class="nav-item nav-link text-light" href="inscription">S'inscrire</a></h5> <h5><a class="nav-item nav-link text-light" href="inscription">S'inscrire</a></h5>
<?php <?php

@ -120,28 +120,20 @@
Products Products
</h6> </h6>
<p> <p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-html" viewBox="0 0 16 16"> <img src="https://img.shields.io/badge/HTML-000?style=for-the-badge&logo=html5&logoColor=orange&color=f8f9fa">
<path fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5Zm-9.736 7.35v3.999h-.791v-1.714H1.79v1.714H1V11.85h.791v1.626h1.682V11.85h.79Zm2.251.662v3.337h-.794v-3.337H4.588v-.662h3.064v.662H6.515Zm2.176 3.337v-2.66h.038l.952 2.159h.516l.946-2.16h.038v2.661h.715V11.85h-.8l-1.14 2.596H9.93L8.79 11.85h-.805v3.999h.706Zm4.71-.674h1.696v.674H12.61V11.85h.79v3.325Z"/> </img>
</svg>
<a href="#!" class="text-reset">Html</a>
</p> </p>
<p> <p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-css" viewBox="0 0 16 16"> <img src="https://img.shields.io/badge/CSS-000?style=for-the-badge&logo=Css3&logoColor=blue&color=f8f9fa">
<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM3.397 14.841a1.13 1.13 0 0 0 .401.823c.13.108.289.192.478.252.19.061.411.091.665.091.338 0 .624-.053.859-.158.236-.105.416-.252.539-.44.125-.189.187-.408.187-.656 0-.224-.045-.41-.134-.56a1.001 1.001 0 0 0-.375-.357 2.027 2.027 0 0 0-.566-.21l-.621-.144a.97.97 0 0 1-.404-.176.37.37 0 0 1-.144-.299c0-.156.062-.284.185-.384.125-.101.296-.152.512-.152.143 0 .266.023.37.068a.624.624 0 0 1 .246.181.56.56 0 0 1 .12.258h.75a1.092 1.092 0 0 0-.2-.566 1.21 1.21 0 0 0-.5-.41 1.813 1.813 0 0 0-.78-.152c-.293 0-.551.05-.776.15-.225.099-.4.24-.527.421-.127.182-.19.395-.19.639 0 .201.04.376.122.524.082.149.2.27.352.367.152.095.332.167.539.213l.618.144c.207.049.361.113.463.193a.387.387 0 0 1 .152.326.505.505 0 0 1-.085.29.559.559 0 0 1-.255.193c-.111.047-.249.07-.413.07-.117 0-.223-.013-.32-.04a.838.838 0 0 1-.248-.115.578.578 0 0 1-.255-.384h-.765ZM.806 13.693c0-.248.034-.46.102-.633a.868.868 0 0 1 .302-.399.814.814 0 0 1 .475-.137c.15 0 .283.032.398.097a.7.7 0 0 1 .272.26.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964 1.441 1.441 0 0 0-.489-.272 1.838 1.838 0 0 0-.606-.097c-.356 0-.66.074-.911.223-.25.148-.44.359-.572.632-.13.274-.196.6-.196.979v.498c0 .379.064.704.193.976.131.271.322.48.572.626.25.145.554.217.914.217.293 0 .554-.055.785-.164.23-.11.414-.26.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.799.799 0 0 1-.118.363.7.7 0 0 1-.272.25.874.874 0 0 1-.401.087.845.845 0 0 1-.478-.132.833.833 0 0 1-.299-.392 1.699 1.699 0 0 1-.102-.627v-.495ZM6.78 15.29a1.176 1.176 0 0 1-.111-.449h.764a.578.578 0 0 0 .255.384c.07.049.154.087.25.114.095.028.201.041.319.041.164 0 .301-.023.413-.07a.559.559 0 0 0 .255-.193.507.507 0 0 0 .085-.29.387.387 0 0 0-.153-.326c-.101-.08-.256-.144-.463-.193l-.618-.143a1.72 1.72 0 0 1-.539-.214 1 1 0 0 1-.351-.367 1.068 1.068 0 0 1-.123-.524c0-.244.063-.457.19-.639.127-.181.303-.322.527-.422.225-.1.484-.149.777-.149.304 0 .564.05.779.152.217.102.384.239.5.41.12.17.187.359.2.566h-.75a.56.56 0 0 0-.12-.258.624.624 0 0 0-.246-.181.923.923 0 0 0-.37-.068c-.216 0-.387.05-.512.152a.472.472 0 0 0-.184.384c0 .121.047.22.143.3a.97.97 0 0 0 .404.175l.621.143c.217.05.406.12.566.211.16.09.285.21.375.358.09.148.135.335.135.56 0 .247-.063.466-.188.656a1.216 1.216 0 0 1-.539.439c-.234.105-.52.158-.858.158-.254 0-.476-.03-.665-.09a1.404 1.404 0 0 1-.478-.252 1.13 1.13 0 0 1-.29-.375Z"/> </img>
</svg>
<a href="#!" class="text-reset">Css</a>
</p> </p>
<p> <p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-php" viewBox="0 0 16 16"> <img src="https://img.shields.io/badge/PHP-000?style=for-the-badge&logo=php&logoColor=purple&color=f8f9fa">
<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM1.6 11.85H0v3.999h.791v-1.342h.803c.287 0 .531-.057.732-.173.203-.117.358-.275.463-.474a1.42 1.42 0 0 0 .161-.677c0-.25-.053-.476-.158-.677a1.176 1.176 0 0 0-.46-.477c-.2-.12-.443-.179-.732-.179Zm.545 1.333a.795.795 0 0 1-.085.38.574.574 0 0 1-.238.241.794.794 0 0 1-.375.082H.788V12.48h.66c.218 0 .389.06.512.181.123.122.185.295.185.522Zm4.48 2.666V11.85h-.79v1.626H4.153V11.85h-.79v3.999h.79v-1.714h1.682v1.714h.79Zm.703-3.999h1.6c.288 0 .533.06.732.179.2.117.354.276.46.477.105.201.158.427.158.677 0 .25-.054.476-.161.677-.106.199-.26.357-.463.474a1.452 1.452 0 0 1-.733.173H8.12v1.342h-.791V11.85Zm2.06 1.714a.795.795 0 0 0 .084-.381c0-.227-.061-.4-.184-.521-.123-.122-.294-.182-.513-.182h-.66v1.406h.66a.794.794 0 0 0 .375-.082.574.574 0 0 0 .237-.24Z"/> </img>
</svg>
<a href="#!" class="text-reset">Php</a>
</p> </p>
<p> <p>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filetype-js" viewBox="0 0 16 16"> <img src="https://img.shields.io/badge/JavaScript-000?style=for-the-badge&logo=javascript&logoColor=yellow&color=f8f9fa">
<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2H8v-1h4a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5L14 4.5ZM3.186 15.29a1.176 1.176 0 0 1-.111-.449h.765a.578.578 0 0 0 .255.384c.07.049.153.087.249.114.095.028.202.041.319.041.164 0 .302-.023.413-.07a.559.559 0 0 0 .255-.193.507.507 0 0 0 .085-.29.387.387 0 0 0-.153-.326c-.101-.08-.255-.144-.462-.193l-.619-.143a1.72 1.72 0 0 1-.539-.214 1.001 1.001 0 0 1-.351-.367 1.068 1.068 0 0 1-.123-.524c0-.244.063-.457.19-.639.127-.181.303-.322.528-.422.224-.1.483-.149.776-.149.305 0 .564.05.78.152.216.102.383.239.5.41.12.17.186.359.2.566h-.75a.56.56 0 0 0-.12-.258.624.624 0 0 0-.247-.181.923.923 0 0 0-.369-.068c-.217 0-.388.05-.513.152a.472.472 0 0 0-.184.384c0 .121.048.22.143.3a.97.97 0 0 0 .405.175l.62.143c.218.05.406.12.566.211.16.09.285.21.375.358.09.148.135.335.135.56 0 .247-.063.466-.188.656a1.216 1.216 0 0 1-.539.439c-.234.105-.52.158-.858.158-.254 0-.476-.03-.665-.09a1.404 1.404 0 0 1-.478-.252 1.13 1.13 0 0 1-.29-.375Zm-3.104-.033A1.32 1.32 0 0 1 0 14.791h.765a.576.576 0 0 0 .073.27.499.499 0 0 0 .454.246c.19 0 .33-.055.422-.164.092-.11.138-.265.138-.466v-2.745h.79v2.725c0 .44-.119.774-.357 1.005-.236.23-.564.345-.984.345a1.59 1.59 0 0 1-.569-.094 1.145 1.145 0 0 1-.407-.266 1.14 1.14 0 0 1-.243-.39Z"/> </img>
</svg>
<a href="#!" class="text-reset">JavaScript</a>
</p> </p>
</div> </div>
<!-- Grid column --> <!-- Grid column -->
@ -181,4 +173,5 @@
</div> </div>
<!-- Copyright --> <!-- Copyright -->
</footer> </footer>
</html> </html>

@ -1,18 +1,30 @@
<html> <!DOCTYPE html>
<head><title>Erreur</title> <html lang="en">
</head> <head>
<link rel="shortcut icon" href="./vue/Images/gif.gif" type="../Images/gif">
<body> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<h1>ERREUR !!!!!</h1> <title>Erreur Page</title>
<?php <!-- CSS only -->
if (isset($dVueEreur)) { <link rel="stylesheet" href="./vue/css/style.css">
foreach ($dVueEreur as $value){ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https:/stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- JavaScript Bundle with Popper -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<?php require($rep.$vues['NavBar']); ?>
<div class="model">
<h1>ERREUR !!!!!</h1>
<?php
if (isset($dVueEreur)) {
foreach ($dVueEreur as $value){
echo $value; echo $value;
} }
} }
?> ?>
</div>
</body> </html> </body>
</html>
Loading…
Cancel
Save