forked from rebillar/site-accueil-insa
tweaks
This commit is contained in:
parent
bd5acd9044
commit
5eb712053b
2 changed files with 10 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
<?php
|
||||
$page = "index";
|
||||
include "script.php";
|
||||
|
||||
|
||||
|
||||
/*
|
||||
//CAS
|
||||
require_once("../phpCAS-1.3.6/CAS.php");
|
||||
|
||||
|
@ -39,7 +43,10 @@ if(isset($_POST['login'])) {
|
|||
$_SESSION = array();
|
||||
session_destroy();
|
||||
header('Refresh:0');
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
$_SESSION['id']=1
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -28,6 +28,8 @@ 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";
|
||||
|
||||
}
|
||||
if(isset($_POST["SUPP_MOT"])){
|
||||
|
|
Loading…
Reference in a new issue