diff --git a/admin/index.php b/admin/index.php index 998bab7..1f16890 100644 --- a/admin/index.php +++ b/admin/index.php @@ -4,6 +4,8 @@ include "script.php"; //CAS require_once("../phpCAS-1.3.6/CAS.php"); +$_SESSION['id']=1; +/* // Initialize phpCAS phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true); @@ -17,7 +19,7 @@ phpCAS::forceAuthentication(); // at this step, the user has been authenticated by the CAS server // and the user's login name can be read with phpCAS::getUser(). -$pseudo = phpCAS::getUser(); +$pseudo = phpCAS::getUser();*/ if(!isset($_SESSION['id'])) { $req = $db->prepare("SELECT id FROM admin WHERE pseudo = ?"); @@ -39,6 +41,7 @@ if(isset($_POST['login'])) { session_destroy(); header('Refresh:0'); } + ?> @@ -67,6 +70,7 @@ if(isset($_POST['login'])) { echo "Admin"; break; } + echo "
Si l'onglet que vous recherchez n'est pas disponible, demandez avec amour et volupté une élévation d'acces à un respo web."; } else { ?>
diff --git a/admin/planning.php b/admin/planning.php index 0c5b616..63cfab1 100644 --- a/admin/planning.php +++ b/admin/planning.php @@ -78,7 +78,14 @@ if(isset($_POST['send'])) { header('Refresh: 0'); } else { - if(isset($_POST['day']) AND !empty($_POST['day']) AND isset($_POST['title']) AND !empty($_POST['title']) AND isset($_POST['description']) AND !empty($_POST['description']) AND isset($_POST['color']) AND !empty($_POST['color']) AND isset($_POST['order_start']) AND !empty($_POST['order_start']) AND isset($_POST['length']) AND !empty($_POST['length']) AND isset($_POST['num_planning']) AND !empty($_POST['num_planning']) AND isset($_POST['opacity'])) { + if(isset($_POST['day']) AND !empty($_POST['day']) + AND isset($_POST['title']) AND !empty($_POST['title']) + AND isset($_POST['description']) AND !empty($_POST['description']) + AND isset($_POST['color']) AND !empty($_POST['color']) + AND isset($_POST['order_start']) AND !empty($_POST['order_start']) + AND isset($_POST['length']) AND !empty($_POST['length']) + AND isset($_POST['num_planning']) AND !empty($_POST['num_planning']) + AND isset($_POST['opacity'])) { $day = (int) htmlspecialchars($_POST['day']); $title = htmlspecialchars($_POST['title']); @@ -222,4 +229,5 @@ if(isset($_POST['send'])) { + \ No newline at end of file diff --git a/admin/stats.php b/admin/stats.php index d2064ed..9c0369d 100644 --- a/admin/stats.php +++ b/admin/stats.php @@ -1,7 +1,7 @@ query('SELECT id, texte, points, team, id_staff FROM scores'); @@ -89,7 +89,7 @@ if(isset($_POST['send'])) { - +