Gestione ACL

This commit is contained in:
cmaffio
2016-04-27 17:28:35 +02:00
parent 8a6b198808
commit 9d2339d451
5 changed files with 254 additions and 9 deletions

31
proxy/acl_gest.php Executable file
View File

@@ -0,0 +1,31 @@
<?php
include_once ("../core/config.php");
$UTENTE = login();
$DIRITTI = diritti(1);
?>
<html>
<head>
<?php
if (isset($_GET['id'])) {
$id = $_GET['id'];
if (isset($_GET['azione'])) {
$azione = $_GET['azione'];
switch ($azione) {
case "attiva":
$query = "UPDATE proxy_acl_list SET attivo = 1, data = NOW() WHERE id = $id";
mysql_query( $query, $DB_ID );
break;
case "disattiva":
$query = "UPDATE proxy_acl_list SET attivo = 0, data = NOW() WHERE id = $id";
mysql_query( $query, $DB_ID );
break;
default:
$testo = "Regola non implementata";
break;
}
}
}
?>
<script type="text/javascript">
document.location.href='<?php print $_SERVER['HTTP_REFERER']?>'
</script>