appel Profil()

This commit is contained in:
jbousquie 2016-11-28 10:16:02 +01:00
parent df0e547968
commit 04dbe6067e

View File

@ -1,19 +1,17 @@
<?php <?php
include_once('libhome.php');
include_once('winlog_admin_conf.php'); include_once('winlog_admin_conf.php');
include_once('client_http.php'); include_once('client_http.php');
include_once('session.php');
$username = phpCAS::getUser(); $username = Username();
$admin = false; // booleen : utilisateur administrateur ? $profil = Profil($username);
if (in_array($username, $administrateurs)) { FiltreProfil($profil);
$admin = true;
}
Function bascule_salle($url) { Function bascule_salle($url) {
GetURL($url); GetURL($url);
} }
if ($admin) { if ($profil == 2) {
$action = $_GET["a"]; $action = $_GET["a"];
$salle = $_GET["s"]; $salle = $_GET["s"];