fix azzeramento regole e fix font dropdown

This commit is contained in:
cmaffio
2016-06-23 16:29:37 +02:00
parent 64411bc0a5
commit 2b1b48b072
3 changed files with 28 additions and 27 deletions

View File

@@ -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 );
}
}
?>