winlog/admin/bloque_salle.php
2016-11-28 10:16:02 +01:00

34 lines
627 B
PHP

<?php
include_once('winlog_admin_conf.php');
include_once('client_http.php');
include_once('session.php');
$username = Username();
$profil = Profil($username);
FiltreProfil($profil);
Function bascule_salle($url) {
GetURL($url);
}
if ($profil == 2) {
$action = $_GET["a"];
$salle = $_GET["s"];
$url = "";
$param = "?s=$salle";
if ($action === "b") {
$url = $url_bloque . $param;
}
if ($action === "d") {
$url = $url_debloque . $param;
}
if ($action != "" ) {
bascule_salle($url);
}
}
$precedent = $_SERVER["HTTP_REFERER"];
header("Location: $precedent");
?>