forked from rebillar/site-accueil-insa
tests
This commit is contained in:
parent
5eb712053b
commit
90cd1eaa5e
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ include "script.php";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
//CAS
|
//CAS
|
||||||
require_once("../phpCAS-1.3.6/CAS.php");
|
require_once("../phpCAS-1.3.6/CAS.php");
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ if(isset($_POST['login'])) {
|
||||||
$_SESSION = array();
|
$_SESSION = array();
|
||||||
session_destroy();
|
session_destroy();
|
||||||
header('Refresh:0');
|
header('Refresh:0');
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
|
||||||
$_SESSION['id']=1
|
$_SESSION['id']=1
|
||||||
|
|
|
@ -28,9 +28,9 @@ if($user['perm'] < 3) {
|
||||||
$mot = htmlspecialchars($_POST["mot"]);
|
$mot = htmlspecialchars($_POST["mot"]);
|
||||||
$req = $db->prepare("INSERT INTO mots_croise(name,trouve) VALUES(?,?)");
|
$req = $db->prepare("INSERT INTO mots_croise(name,trouve) VALUES(?,?)");
|
||||||
$req->execute(array($mot,FALSE));
|
$req->execute(array($mot,FALSE));
|
||||||
|
|
||||||
echo "ajt";
|
|
||||||
|
|
||||||
|
}else{
|
||||||
|
echo $_POST;
|
||||||
}
|
}
|
||||||
if(isset($_POST["SUPP_MOT"])){
|
if(isset($_POST["SUPP_MOT"])){
|
||||||
$req = $db->prepare("DELETE FROM mots_croise WHERE id=?");
|
$req = $db->prepare("DELETE FROM mots_croise WHERE id=?");
|
||||||
|
|
Loading…
Reference in a new issue