Skip to content
Snippets Groups Projects
Commit eaf8a9de authored by vautrin33u's avatar vautrin33u
Browse files

requete.php devient index.php

parent a8dd3c8b
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ $erreur = false;
$strerr = "<ul> Erreur : ";
if (!isset($_SESSION['id'])){
header("location:Requete.php");
header("location:index.php");
}
if (isset($_POST['connexion'])){
......@@ -28,13 +28,13 @@ if (isset($_POST['panier'])){
}
if (isset($_POST['home'])){
header("location:Requete.php");
header("location:index.php");
}
if (isset($_POST['deconnecter'])){
$_SESSION = array();
session_destroy();
header("location:Requete.php");
header("location:index.php");
}
?>
......
......@@ -8,7 +8,7 @@ window.addEventListener("load", function (){
var ok = document.getElementById('ok');
var retour = this.document.getElementById('retour');
retour.addEventListener('click', () =>{
window.location.assign ("/Requete.php");
window.location.assign ("/index.php");
});
ok.disabled = true;
......@@ -105,7 +105,7 @@ window.addEventListener("load", function (){
if (resultat == true){
ok.disabled = true;
explications.textContent = "Inscription réussie!";
window.location.assign ("/Requete.php");
window.location.assign ("/index.php");
}else{
explications.textContent = "Inscription a échouée! Ce pseudo est déjà utilisé. Veuillez réessayer.";
}
......@@ -243,7 +243,7 @@ window.addEventListener("load", function (){
var ok = document.getElementById('ok');
var retour = document.getElementById('retour');
retour.addEventListener('click', () =>{
window.location.assign ("/Requete.php");
window.location.assign ("/index.php");
});
ok.disabled = true;
......@@ -293,7 +293,7 @@ window.addEventListener("load", function (){
if (resultat == true){
ok.disabled = true;
explications.textContent = "Connexion réussie!";
window.location.assign ("/Requete.php");
window.location.assign ("/index.php");
}else{
explications.textContent = "Connexion a échouée! Vérifier le pseudo et le mot de passe.";
}
......
......@@ -22,7 +22,7 @@
if (isset($_POST['deconnecter'])){
$_SESSION = array();
session_destroy();
header("location:Requete.php");
header("location:index.php");
}
?>
......@@ -30,7 +30,7 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Requete</title>
<title>Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="suggestion.js"> </script>
<script type="text/javascript" src="recettes.js"> </script>
......
......@@ -29,13 +29,13 @@
}
if (isset($_POST['home'])){
header("location:Requete.php");
header("location:index.php");
}
if (isset($_POST['deconnecter'])){
$_SESSION = array();
session_destroy();
header("location:Requete.php");
header("location:index.php");
}
if (isset($_POST['profil'])){
header("location:Profil.php");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment