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