aggiunta gestione regole firewall in uscita
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
include_once ("../core/config.php");
|
||||
include_once ("firewall_library.php");
|
||||
$UTENTE = login();
|
||||
$DIRITTI = diritti('Utente');
|
||||
view_top();
|
||||
@@ -7,6 +8,8 @@ view_top();
|
||||
if (isset($_POST['utente'])) {
|
||||
$utente = $_POST['utente'];
|
||||
|
||||
$modificato = 0;
|
||||
|
||||
$old = $new = array();
|
||||
foreach ($_POST as $id => $valore) {
|
||||
if (preg_match ("/^new-(\d+)/", $id, $ris)) $new[$ris[1]] = $valore;
|
||||
@@ -16,6 +19,7 @@ if (isset($_POST['utente'])) {
|
||||
foreach ($new as $id => $valore) {
|
||||
if ($new[$id] == $old[$id]) continue;
|
||||
|
||||
$modificato = 1;
|
||||
if ($valore >1)
|
||||
$stato = 1;
|
||||
else
|
||||
@@ -51,7 +55,12 @@ if (isset($_POST['utente'])) {
|
||||
data = NOW()
|
||||
";
|
||||
$res = mysql_query( $query, $DB_ID );
|
||||
|
||||
}
|
||||
|
||||
|
||||
if ($modificato) genera();
|
||||
|
||||
}
|
||||
|
||||
$tabella = new html (0,"90%",array(15,2,20,2,5,0));
|
||||
|
||||
Reference in New Issue
Block a user