seuls les admins peuvent lancer stop

This commit is contained in:
jbousquie 2016-11-29 14:14:31 +01:00
parent c1f323b18d
commit 8134808e59

View File

@ -10,6 +10,8 @@ $username = Username();
$profil = Profil($username); $profil = Profil($username);
FiltreProfil($profil); FiltreProfil($profil);
if ($profil == 2) {
$act = ""; $act = "";
$logout = "fermer la session"; $logout = "fermer la session";
$logout_salle = "fermer toutes les sessions"; $logout_salle = "fermer toutes les sessions";
@ -41,5 +43,7 @@ if ($act != "") {
PostURL($url_stop, array('act'=>$act, 'host'=>$host)); PostURL($url_stop, array('act'=>$act, 'host'=>$host));
} }
} }
}
header('Location: salles_live.php'); header('Location: salles_live.php');
?> ?>