winlog/admin/bloque_salle.php
2016-11-24 13:57:23 +01:00

27 lines
444 B
PHP

<?php
include_once('winlog_admin_conf.php');
include_once('client_http.php');
Function bascule_salle($url) {
GetURL($url);
}
$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");
?>