diff --git a/firewall/firewall_library.php b/firewall/firewall_library.php index d97bfd9..0ccd856 100644 --- a/firewall/firewall_library.php +++ b/firewall/firewall_library.php @@ -264,25 +264,25 @@ function elimina ($cerca) { function azzera () { global $UTENTE, $DB_ID, $CONF, $FW_conf; - $query = " UPDATE - firewall_versoesterno_regole - SET - stato = 0, - modifica = NOW() - WHERE - stato = 1 - "; + $query = "SELECT id FROM firewall_versoesterno_regole WHERE stato = 1"; $res = mysql_query( $query, $DB_ID ); + while ($dato = mysql_fetch_array ( $res )) { + $id = $dato['id']; + $query = "UPDATE firewall_versoesterno_regole SET stato = 0, modifica = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + $query = "INSERT INTO firewall_logs SET id_utenti = 1, tabella = 'versoesterno', id_regole = $id, stato = 0, data = NOW()"; + mysql_query( $query, $DB_ID ); + } - $query = " UPDATE - firewall_versointerno_regole - SET - stato = 0, - modifica = NOW() - WHERE - stato = 1 - "; + $query = "SELECT id FROM firewall_versointerno_regole WHERE stato = 1"; $res = mysql_query( $query, $DB_ID ); + while ($dato = mysql_fetch_array ( $res )) { + $id = $dato['id']; + $query = "UPDATE firewall_versointerno_regole SET stato = 0, modifica = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + $query = "INSERT INTO firewall_logs SET id_utenti = 1, tabella = 'versointerno', id_regole = $id, stato = 0, data = NOW()"; + mysql_query( $query, $DB_ID ); + } } ?> diff --git a/firewall/firewall_logs.php b/firewall/firewall_logs.php index 3f501ac..9dcb6ce 100755 --- a/firewall/firewall_logs.php +++ b/firewall/firewall_logs.php @@ -101,28 +101,28 @@ $tabella->intestazione (array("", "Data", "", "Utente", "", "Nome Regola", "", " @@ -135,9 +135,9 @@ $tabella->intestazione (array("", "Data", "", "Utente", "", "Nome Regola", "", " diff --git a/risorse/stili/stile.css b/risorse/stili/stile.css index 31afc69..4c320e0 100644 --- a/risorse/stili/stile.css +++ b/risorse/stili/stile.css @@ -40,6 +40,7 @@ td.sep { font-family: verdana; font-size: 1px; text-align: left; height:1px; td.valoretxt { font-family: verdana; font-size: 14px; text-align: left; vertical-align:text-top; text-decoration: none; color: #000000; background-color: #f3f3f3;} td.col0 { font-family: verdana; font-size: 14px; text-align: left; width:20px; vertical-align:text-top; text-decoration: none; color: #000000; background-color: #dcd2d2; white-space: nowrap} +option.testo { font-family: verdana; font-size: 11px; text-align: left; vertical-align:text-top; text-decoration: none; color: #000000; } td.ltop { font-family: verdana; font-size: 14px; text-align: left; vertical-align:text-top; text-decoration: none; color: #000000; } td.ctop { font-family: verdana; font-size: 14px; text-align: center; vertical-align:text-top; text-decoration: none; color: #000000; } td.rtop { font-family: verdana; font-size: 14px; text-align: right; vertical-align:text-top; text-decoration: none; color: #000000; }