From 45a8c28a6364feab7117881e1ee9708c5245ea21 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Fri, 25 Nov 2016 16:04:47 +0100 Subject: [PATCH] =?UTF-8?q?cosm=C3=A9tique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/salles_live.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/admin/salles_live.php b/admin/salles_live.php index aea02bf..7d19442 100644 --- a/admin/salles_live.php +++ b/admin/salles_live.php @@ -9,6 +9,14 @@ include_once('winlog_admin_conf.php'); include_once('connexions.php'); $delayMs = $delay * 1000; $username = phpCAS::getUser(); +$admin = false; // booleen : utilisateur administrateur ? +$supervis = false; // booleen : utilisateur superviseur ? +if (in_array($username, $administrateurs)) { + $admin = true; +} +if (in_array($username, $superviseurs)) { + $supervis = true; +} function ListeSalles() { $salles = Salles(); @@ -57,14 +65,6 @@ function InfoCouleurs() {