This commit is contained in:
thaaoblues 2023-07-02 19:37:53 +02:00
parent 5eb712053b
commit 90cd1eaa5e
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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=?");