fix azzeramento regole e fix font dropdown
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -101,28 +101,28 @@ $tabella->intestazione (array("", "Data", "", "Utente", "", "Nome Regola", "", "
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="spazioh">
|
||||
<select name="tempo" onchange="this.form.submit()">
|
||||
<option value="HOUR" <?php if ($tempo == "HOUR") {print "selected=\"selected\""; } ?>>Ultima Ora</option>
|
||||
<option value="DAY" <?php if ($tempo == "DAY") {print "selected=\"selected\""; } ?>>Ultimo Giorno</option>
|
||||
<option value="WEEK" <?php if ($tempo == "WEEK") {print "selected=\"selected\""; } ?>>Ultima Settimana</option>
|
||||
<option value="MONTH" <?php if ($tempo == "MONTH") {print "selected=\"selected\""; } ?>>Ultimo Mese</option>
|
||||
<option value="YEAR" <?php if ($tempo == "YEAR") {print "selected=\"selected\""; } ?>>Ultimo Anno</option>
|
||||
<option class="testo" value="HOUR" <?php if ($tempo == "HOUR") {print "selected=\"selected\""; } ?>>Ultima Ora</option>
|
||||
<option class="testo" value="DAY" <?php if ($tempo == "DAY") {print "selected=\"selected\""; } ?>>Ultimo Giorno</option>
|
||||
<option class="testo" value="WEEK" <?php if ($tempo == "WEEK") {print "selected=\"selected\""; } ?>>Ultima Settimana</option>
|
||||
<option class="testo" value="MONTH" <?php if ($tempo == "MONTH") {print "selected=\"selected\""; } ?>>Ultimo Mese</option>
|
||||
<option class="testo" value="YEAR" <?php if ($tempo == "YEAR") {print "selected=\"selected\""; } ?>>Ultimo Anno</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="spazioh">
|
||||
<select name="idutente" onchange="this.form.submit()">
|
||||
<option value=0 <?php if ($idutente == 0) {print "selected=\"selected\""; } ?>>----</option>
|
||||
<option class="testo" value=0 <?php if ($idutente == 0) {print "selected=\"selected\""; } ?>>----</option>
|
||||
<?php while ($dato = mysql_fetch_array ( $res_user )) { ?>
|
||||
<option value="<?php print $dato['id'] ?>" <?php if ($idutente == $dato['id']) {print "selected=\"selected\""; } ?>><?php print $dato['utente'] ?></option>
|
||||
<option class="testo" value="<?php print $dato['id'] ?>" <?php if ($idutente == $dato['id']) {print "selected=\"selected\""; } ?>><?php print $dato['utente'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
<td class="spazioh"><img src="<?php print $CONF['base_url'] ?>/img/spazio.gif"></td>
|
||||
<td class="spazioh">
|
||||
<select name="nome" onchange="this.form.submit()">
|
||||
<option value=0 <?php if ($idip == 0) {print "selected=\"selected\""; } ?>>----</option>
|
||||
<option class="testo" value=0 <?php if ($idip == 0) {print "selected=\"selected\""; } ?>>----</option>
|
||||
<?php while ($dato = mysql_fetch_array ( $res_nome )) { ?>
|
||||
<option value="<?php print $dato['nome'] ?>" <?php if ($nome == $dato['nome']) {print "selected=\"selected\""; } ?>><?php print $dato['nome'] ?></option>
|
||||
<option class="testo" value="<?php print $dato['nome'] ?>" <?php if ($nome == $dato['nome']) {print "selected=\"selected\""; } ?>><?php print $dato['nome'] ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
@@ -135,9 +135,9 @@ $tabella->intestazione (array("", "Data", "", "Utente", "", "Nome Regola", "", "
|
||||
<td class="spazioh"></td>
|
||||
<td class="spazioh">
|
||||
<select name="tipo" onchange="this.form.submit()">
|
||||
<option value=0 <?php if ($idip == 0) {print "selected=\"selected\""; } ?>>----</option>
|
||||
<option class="testo" value=0 <?php if ($idip == 0) {print "selected=\"selected\""; } ?>>----</option>
|
||||
<?php while ($dato = mysql_fetch_array ( $res_tipo )) { ?>
|
||||
<option value="<?php print $dato['tipo'] ?>" <?php if ($tipo == $dato['tipo']) {print "selected=\"selected\""; } ?>><?php print $dato['tipo']; ?></option>
|
||||
<option class="testo" value="<?php print $dato['tipo'] ?>" <?php if ($tipo == $dato['tipo']) {print "selected=\"selected\""; } ?>><?php print $dato['tipo']; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user