diff --git "a/proxy/\\" "b/proxy/\\" deleted file mode 100644 index 7d21889..0000000 --- "a/proxy/\\" +++ /dev/null @@ -1,87 +0,0 @@ - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UtenteNome CompletoData attivazioneUltima ModificaIP
Utente AttivoUtente non Attivo
-
- - diff --git a/proxy/acl_edit.php b/proxy/acl_edit.php index 6b8986d..80e07cc 100755 --- a/proxy/acl_edit.php +++ b/proxy/acl_edit.php @@ -17,25 +17,37 @@ if (isset($_POST['rif']) && $_POST['rif'] != "") { data = NOW(); "; - print $query; - $res = mysql_query( $query, $DB_ID ); } elseif (isset($_POST['id'])) { $id = $_POST['id']; $nome = $_POST['nome']; - - $query = " UPDATE - proxy_acl_list - SET - nome = '$nome', - data = NOW() - WHERE - id = $id - "; - $res = mysql_query( $query, $DB_ID ); + if ($id) { + $query = " UPDATE + proxy_acl_list + SET + nome = '$nome', + data = NOW() + WHERE + id = $id + $res = mysql_query( $query, $DB_ID ); + "; + } else { + $query = " INSERT INTO + proxy_acl_list + SET + nome = '$nome', + attivo = 1, + sys = 0, + data = NOW() + "; + $res = mysql_query( $query, $DB_ID ); + $id = mysql_insert_id(); + } } elseif (isset($_GET['id'])) { $id = $_GET['id']; +} else { + $id = 0; } ?> @@ -43,54 +55,50 @@ if (isset($_POST['rif']) && $_POST['rif'] != "") { - + - - - - - + - + - @@ -99,34 +107,41 @@ if ($dato['attivo']) { + + + + + + - + - + + + + - - - + - - - - - - - + + + + + + - +
Nome ACL Ultima Modifica
ACL AttivaACL Attiva ACL non AttivaACL non Attiva
Nuova destinazione
ACL AttivaACL non AttivaACL AttivaACL non Attiva
diff --git a/proxy/acl_gest.php b/proxy/acl_gest.php index 5b5b6b5..5411880 100755 --- a/proxy/acl_gest.php +++ b/proxy/acl_gest.php @@ -19,6 +19,18 @@ if (isset($_GET['id'])) { $query = "UPDATE proxy_acl_list SET attivo = 0, data = NOW() WHERE id = $id"; mysql_query( $query, $DB_ID ); break; + case "attiva_acl": + $query = "UPDATE proxy_acl SET attivo = 1, data = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + case "disattiva_acl": + $query = "UPDATE proxy_acl SET attivo = 0, data = NOW() WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; + case "rimuovi": + $query = "DELETE FROM proxy_acl WHERE id = $id"; + mysql_query( $query, $DB_ID ); + break; default: $testo = "Regola non implementata"; break; diff --git a/proxy/acl_lista.php b/proxy/acl_lista.php index 4020a4b..fe35335 100755 --- a/proxy/acl_lista.php +++ b/proxy/acl_lista.php @@ -8,16 +8,15 @@ view_top();
- - - - - + + + + + + - - - - - - - - + + + + + + + + + - + - + + diff --git a/proxy/index.php b/proxy/index.php index be6c79d..f0d3593 100755 --- a/proxy/index.php +++ b/proxy/index.php @@ -33,11 +33,11 @@ while ($dato = mysql_fetch_array ( $res )) { - + - + - + diff --git a/proxy/pool_acl.php b/proxy/pool_acl.php new file mode 100755 index 0000000..771e16a --- /dev/null +++ b/proxy/pool_acl.php @@ -0,0 +1,128 @@ + $value) { + if ($key == 'id') continue; + + $query = " INSERT INTO + proxy_acl_ip + SET + idacllist = $key, + idpool = $id, + stato = $value, + data = NOW() + ON DUPLICATE KEY UPDATE + stato = $value, + data = NOW() + "; + $res = mysql_query( $query, $DB_ID ); + + } + + + +} elseif (isset($_GET['id'])) { + $id = $_GET['id']; +} + +$query = " SELECT + ip + FROM + proxy_pool + WHERE + id = $id + "; +$res = mysql_query( $query, $DB_ID ); +$dato = mysql_fetch_array ( $res ); +$ip = $dato['ip']; + +$query = " SELECT + proxy_acl_list.id, + proxy_acl_list.nome, + proxy_acl_list.sys, + proxy_acl_ip.stato + FROM + proxy_acl_list + JOIN + proxy_acl_ip + ON + proxy_acl_ip.idacllist = proxy_acl_list.id + AND + proxy_acl_ip.idpool = $id + AND + proxy_acl_list.attivo = 1 + UNION DISTINCT SELECT + proxy_acl_list.id, + proxy_acl_list.nome, + proxy_acl_list.sys, + 0 + FROM + proxy_acl_list + WHERE + proxy_acl_list.id NOT IN (SELECT idacllist FROM proxy_acl_ip WHERE idpool = $id) + AND + proxy_acl_list.attivo = 1 + ORDER BY + sys DESC, + nome +"; +$res = mysql_query( $query, $DB_ID ); +?> + + +
ACL non modificabileACL non modificabileACL attivaACL non attivaDettaglioACL attivaACL non attivaDettaglioNome lista Elementi Ultima modifica
Utente limitatoUtente limitato Utente non limitatoUtente non limitato DettaglioDettaglio
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Indirizzo IPNegaIgnoraAutorizzaNome Lista
onChange="do_submit()"/> onChange="do_submit()"/> onChange="do_submit()"/>
+
+ + diff --git a/proxy/pool_ip.php b/proxy/pool_ip.php index 23e8ef5..66318ff 100755 --- a/proxy/pool_ip.php +++ b/proxy/pool_ip.php @@ -57,9 +57,9 @@ if (isset($_GET['ip'])) { - Utente limitato + Utente limitato - Utente non limitato + Utente non limitato diff --git a/proxy/pool_lista.php b/proxy/pool_lista.php index 5bd55eb..e389b81 100755 --- a/proxy/pool_lista.php +++ b/proxy/pool_lista.php @@ -22,7 +22,7 @@ if (isset($_POST['ordina'])) { - + Periodo:  - - - Ordinamento:  @@ -59,6 +56,7 @@ while ($valori = mysql_fetch_array ( $res )) { } $query = " SELECT + proxy_pool.id, proxy_pool.attivo, proxy_dati.ip, MIN(proxy_dati.data_destroy) AS first, @@ -76,6 +74,7 @@ $query = " SELECT GROUP BY ip UNION DISTINCT SELECT + proxy_pool.id, proxy_pool.attivo, proxy_pool.ip, DATE_SUB(NOW(), INTERVAL 1 $tempo) AS first, @@ -97,18 +96,17 @@ while ($dato = mysql_fetch_array ( $res )) { - Utente limitato + Utente limitato - Utente non limitato + Utente non limitato - Dettaglio + Dettaglio + + ACL - - - Inviati diff --git a/proxy/users_edit.php b/proxy/users_edit.php index 9ab808b..e19def2 100755 --- a/proxy/users_edit.php +++ b/proxy/users_edit.php @@ -90,9 +90,9 @@ $res = mysql_query( $query, $DB_ID ); - Utente Attivo + Utente Attivo - Utente non Attivo + Utente non Attivo diff --git a/proxy/users_lista.php b/proxy/users_lista.php index 6419c7c..ecb8b73 100755 --- a/proxy/users_lista.php +++ b/proxy/users_lista.php @@ -28,11 +28,11 @@ while ($dato = mysql_fetch_array ( $res )) { - Utente Attivo + Utente Attivo - Utente non Attivo + Utente non Attivo - Dettaglio + Dettaglio diff --git a/risorse/immagini/add_link.png b/risorse/immagini/add_link.png index 8bb87ce..08b6417 100644 Binary files a/risorse/immagini/add_link.png and b/risorse/immagini/add_link.png differ diff --git a/risorse/immagini/addresource.png b/risorse/immagini/addresource.png index 09948c3..ea9a3ed 100644 Binary files a/risorse/immagini/addresource.png and b/risorse/immagini/addresource.png differ diff --git a/risorse/immagini/attivo_grey.gif b/risorse/immagini/attivo_grey.gif new file mode 100644 index 0000000..b5eacb4 Binary files /dev/null and b/risorse/immagini/attivo_grey.gif differ diff --git a/risorse/immagini/modify.gif b/risorse/immagini/modify.gif index 074a105..19fa086 100644 Binary files a/risorse/immagini/modify.gif and b/risorse/immagini/modify.gif differ diff --git a/risorse/immagini/modify_grey.gif b/risorse/immagini/modify_grey.gif new file mode 100644 index 0000000..9cd29d8 Binary files /dev/null and b/risorse/immagini/modify_grey.gif differ diff --git a/risorse/immagini/trash.png b/risorse/immagini/trash.png new file mode 100644 index 0000000..6d0d080 Binary files /dev/null and b/risorse/immagini/trash.png differ diff --git a/risorse/stili/stile.css b/risorse/stili/stile.css index 3f47358..0a8ec1b 100644 --- a/risorse/stili/stile.css +++ b/risorse/stili/stile.css @@ -3,6 +3,7 @@ td.spaziov { font-family: verdana; font-size: 11px; text-align: left; width:1px; height:10px; text-decoration: none; color: #8e8e8e; } td.spazioh { font-family: verdana; font-size: 11px; text-align: left; width:10px; height:1px; text-decoration: none; color: #8e8e8e; white-space: nowrap} +td.spazio { font-family: verdana; font-size: 11px; text-align: left; width:10px; height:1px; text-decoration: none; color: #8e8e8e; white-space: nowrap} td.livello { font-family: verdana; font-size: 11px; text-align: left; width:10px; height:1px; text-decoration: none; color: #8e8e8e; } td.defrulenome { font-family: verdana; font-size: 14px; text-align: left; width:20px; vertical-align:text-top; text-decoration: none; color: #000000; white-space: nowrap} td.defruletxt { font-family: verdana; font-size: 10px; text-align: left; vertical-align:middle; width:10px; height: 10px; text-decoration: none; color: #000000; white-space: nowrap} @@ -31,6 +32,8 @@ td.campoc { font-family: verdana; font-size: 14px; text-align: center; vertical td.valorec { font-family: verdana; font-size: 14px; text-align: center; vertical-align:text-top; text-decoration: none; color: #000000; } td.descrizione { font-family: verdana; font-size: 11px; text-align: left; width:50px; text-decoration: none; color: #8e8e8e; } td.spaziol { font-family: verdana; font-size: 11px; text-align: left; height:1px; text-decoration: none; color: #8e8e8e; } +td.radio { font-family: verdana; font-size: 11px; text-align: center; height:1px; text-decoration: none; color: #8e8e8e; } +td.sep { font-family: verdana; font-size: 1px; text-align: left; height:1px; text-decoration: none; color: #8e8e8e; } 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} diff --git a/routing/linee.php b/routing/linee.php index bb3e1f4..2d70f2e 100755 --- a/routing/linee.php +++ b/routing/linee.php @@ -45,13 +45,13 @@ while ($dato = mysql_fetch_array ( $res )) { - Utente attivo + Utente attivo - Utente non attivo + Utente non attivo - Proprieta' - <?php print $dato['nome'] ?> + Proprieta' + <?php print $dato['nome'] ?> Linea diff --git a/utenti/index.php b/utenti/index.php index cf4bc5e..6df42cc 100755 --- a/utenti/index.php +++ b/utenti/index.php @@ -36,16 +36,16 @@ while ($dato = mysql_fetch_array ( $res )) { - Utente attivo + Utente attivo - Utente non attivo + Utente non attivo - Proprieta' + Proprieta' - Admin + Admin - Utente + Utente Utente diff --git a/utenti/permessiutenti.php b/utenti/permessiutenti.php index 05b2a8c..f326686 100755 --- a/utenti/permessiutenti.php +++ b/utenti/permessiutenti.php @@ -57,9 +57,9 @@ $livelli = get_levels(); - + - +
AdminAdmin UtenteUtente