From 90cd1eaa5ea0e33878f96ab0d304a74580debcbb Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Sun, 2 Jul 2023 19:37:53 +0200 Subject: [PATCH] tests --- admin/index.php | 4 ++-- admin/mots_croises.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/index.php b/admin/index.php index 9f4f81d..2f4a42a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -4,7 +4,7 @@ include "script.php"; -/* + //CAS require_once("../phpCAS-1.3.6/CAS.php"); @@ -43,7 +43,7 @@ if(isset($_POST['login'])) { $_SESSION = array(); session_destroy(); header('Refresh:0'); -}*/ +} $_SESSION['id']=1 diff --git a/admin/mots_croises.php b/admin/mots_croises.php index d8e3271..e61187d 100644 --- a/admin/mots_croises.php +++ b/admin/mots_croises.php @@ -28,9 +28,9 @@ if($user['perm'] < 3) { $mot = htmlspecialchars($_POST["mot"]); $req = $db->prepare("INSERT INTO mots_croise(name,trouve) VALUES(?,?)"); $req->execute(array($mot,FALSE)); - - echo "ajt"; + }else{ + echo $_POST; } if(isset($_POST["SUPP_MOT"])){ $req = $db->prepare("DELETE FROM mots_croise WHERE id=?");