From cbf0610ee0f653145a9f4761e4390f92c31097e5 Mon Sep 17 00:00:00 2001 From: cmaffio Date: Wed, 18 May 2016 11:44:29 +0200 Subject: [PATCH] Aggiunta nome IP --- DBDiff/condex.sql | 3 + "proxy/\\" | 156 +++++++++++++++++++++++++++++++++++++++++++ proxy/index.php | 35 ++++++++-- proxy/pool_ip.php | 93 +++++++++++++------------- proxy/pool_lista.php | 14 ++-- 5 files changed, 248 insertions(+), 53 deletions(-) create mode 100644 DBDiff/condex.sql create mode 100644 "proxy/\\" diff --git a/DBDiff/condex.sql b/DBDiff/condex.sql new file mode 100644 index 0000000..4f4b2c3 --- /dev/null +++ b/DBDiff/condex.sql @@ -0,0 +1,3 @@ +ALTER TABLE `proxy_pool` ADD `nome` VARCHAR(64) NULL AFTER `id`; + + diff --git "a/proxy/\\" "b/proxy/\\" new file mode 100644 index 0000000..de2d67c --- /dev/null +++ "b/proxy/\\" @@ -0,0 +1,156 @@ + +
+ += DATE_SUB(NOW(), INTERVAL 1 $tempo) + "; + + $res = mysql_query( $query, $DB_ID ); + $dato = mysql_fetch_array ( $res ); +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
Utente limitatoUtente non limitato + + +
Indirizzo IP gia' esistente
+ +     + +
+
+ + diff --git a/proxy/index.php b/proxy/index.php index 9872256..dc58935 100755 --- a/proxy/index.php +++ b/proxy/index.php @@ -19,12 +19,35 @@ function PopupG(apri) @@ -37,9 +60,9 @@ while ($dato = mysql_fetch_array ( $res )) { - + - + @@ -49,6 +72,10 @@ while ($dato = mysql_fetch_array ( $res )) { + + + diff --git a/proxy/pool_ip.php b/proxy/pool_ip.php index db2d7c0..9607ae4 100755 --- a/proxy/pool_ip.php +++ b/proxy/pool_ip.php @@ -6,10 +6,21 @@ view_top(); ?>
Utente non limitato DettaglioDettaglio class="colip"> Inviati
Ricevuti
- = DATE_SUB(NOW(), INTERVAL 1 $tempo) "; @@ -40,7 +52,7 @@ if (isset($_GET['ip'])) { ?> - - + - + + - + - + - - - + + + + + - - - + + - - - - - - - - + + + - + @@ -116,43 +135,27 @@ if (isset($_GET['ip'])) { - - - - - - - - - - - - - - + - + - - - -
+
Utente limitatoUtente limitato Utente non limitatoUtente non limitato + + + + + Inviati
Ricevuti
Indirizzo IP gia' esistente
Indirizzo IP gia' esistente
Indirizzo IP: Limitazione:
+    
diff --git a/proxy/pool_lista.php b/proxy/pool_lista.php index 78a58ac..4c39c1a 100755 --- a/proxy/pool_lista.php +++ b/proxy/pool_lista.php @@ -33,6 +33,7 @@ if (isset($_POST['ordina'])) { + Ordinamento:  @@ -44,7 +45,7 @@ if (isset($_POST['ordina'])) { - + = DATE_SUB(NOW(), INTERVAL 1 $tempo) GROUP BY ip"; $res = mysql_query( $query, $DB_ID ); @@ -57,6 +58,7 @@ while ($valori = mysql_fetch_array ( $res )) { $query = " SELECT proxy_pool.id, + proxy_pool.nome, proxy_pool.attivo, proxy_dati.ip, MIN(proxy_dati.data_destroy) AS first, @@ -75,6 +77,7 @@ $query = " SELECT ip UNION DISTINCT SELECT proxy_pool.id, + proxy_pool.nome, proxy_pool.attivo, proxy_pool.ip, DATE_SUB(NOW(), INTERVAL 1 $tempo) AS first, @@ -100,11 +103,11 @@ while ($dato = mysql_fetch_array ( $res )) { Utente non limitato - Dettaglio + Dettaglio ACL - + class="colip"> @@ -116,6 +119,9 @@ while ($dato = mysql_fetch_array ( $res )) { + + + Ricevuti @@ -123,7 +129,7 @@ while ($dato = mysql_fetch_array ( $res )) { - +