From 58ef34316dcf52919a65c7e263267faab648a86d Mon Sep 17 00:00:00 2001 From: cmaffio Date: Tue, 10 May 2016 17:29:46 +0200 Subject: [PATCH] Gestione files di gestione --- proxy/acl_edit.php | 10 +++++----- proxy/acl_lista.php | 4 ++-- proxy/proxy_gest.php | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/proxy/acl_edit.php b/proxy/acl_edit.php index 7cd07f7..74fe228 100755 --- a/proxy/acl_edit.php +++ b/proxy/acl_edit.php @@ -99,9 +99,9 @@ if ($id) { - ACL Attiva + ACL Attiva - ACL non Attiva + ACL non Attiva @@ -146,11 +146,11 @@ if ($dato['attivo']) { - + - ACL Attiva + ACL Attiva - ACL non Attiva + ACL non Attiva diff --git a/proxy/acl_lista.php b/proxy/acl_lista.php index 1f8ada0..bb95634 100755 --- a/proxy/acl_lista.php +++ b/proxy/acl_lista.php @@ -70,9 +70,9 @@ while ($dato = mysql_fetch_array ( $res )) { - ACL attiva + ACL attiva - ACL non attiva + ACL non attiva Dettaglio diff --git a/proxy/proxy_gest.php b/proxy/proxy_gest.php index f8a821d..143ed18 100755 --- a/proxy/proxy_gest.php +++ b/proxy/proxy_gest.php @@ -32,6 +32,28 @@ if (isset($_GET['id'])) { $query = "DELETE FROM proxy_net WHERE id = $id"; mysql_query( $query, $DB_ID ); break; + + case "acl_up": + $query = "UPDATE proxy_acl_list SET attivo = 1, data = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + case "acl_down": + $query = "UPDATE proxy_acl_list SET attivo = 0, data = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + case "link_up": + $query = "UPDATE proxy_acl SET attivo = 1, data = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + case "link_down": + $query = "UPDATE proxy_acl SET attivo = 0, data = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + case "link_rm": + $query = "DELETE FROM proxy_acl WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + default: $testo = "Regola non implementata"; break;