diff --git a/DBDiff/condex.sql b/DBDiff/condex.sql
index 4f4b2c3..23b7e8c 100644
--- a/DBDiff/condex.sql
+++ b/DBDiff/condex.sql
@@ -1,3 +1,48 @@
ALTER TABLE `proxy_pool` ADD `nome` VARCHAR(64) NULL AFTER `id`;
+CREATE TABLE `condes_utenti` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT,
+ `utente` varchar(32) NOT NULL,
+ `pwd` varchar(64) NOT NULL,
+ `data` datetime NOT NULL,
+ `attivo` tinyint(1) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8
+
+CREATE TABLE `condes_macchine` (
+ `id` BIGINT NOT NULL AUTO_INCREMENT ,
+ `id_proxy_pool` BIGINT NOT NULL ,
+ `data` DATETIME NOT NULL ,
+ `attivo` BOOLEAN NOT NULL ,
+ PRIMARY KEY (`id`)
+) ENGINE = InnoDB;
+
+CREATE TABLE `condes_regole` (
+ `id` BIGINT NOT NULL AUTO_INCREMENT ,
+ `id_utenti` BIGINT NOT NULL ,
+ `id_condes_macchine` BIGINT NOT NULL ,
+ `id_proxy_acl_list` BIGINT NOT NULL ,
+ `permanente` BOOLEAN NOT NULL ,
+ `data` DATETIME NOT NULL ,
+ `attivo` BOOLEAN NOT NULL ,
+ PRIMARY KEY (`id`)
+) ENGINE = InnoDB;
+
+CREATE TABLE `condes_stato` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT,
+ `id_condes_regole` bigint(20) NOT NULL,
+ `id_proxy_acl_ip` bigint(20) NOT NULL,
+ `permanente` tinyint(1) NOT NULL,
+ `data` datetime NOT NULL,
+ `attivo` tinyint(1) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8
+
+CREATE TABLE `condes_logs` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT,
+ `id_utenti` bigint(20) NOT NULL,
+ `id_condes_regole` bigint(20) NOT NULL,
+ `data` datetime NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8
diff --git a/condes/condes_gest.php b/condes/condes_gest.php
new file mode 100755
index 0000000..d11660d
--- /dev/null
+++ b/condes/condes_gest.php
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/condes/condes_macchine.php b/condes/condes_macchine.php
new file mode 100755
index 0000000..b75f503
--- /dev/null
+++ b/condes/condes_macchine.php
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+  |
+  |
+ IP |
+  |
+ Nome |
+  |
+ Ultima Modifica |
+  |
+
+
+
+ |
+  |
+ |
+  |
+ |
+
+  |
+
+
+
+
+
diff --git a/condes/condes_utenti.php b/condes/condes_utenti.php
new file mode 100755
index 0000000..e608b21
--- /dev/null
+++ b/condes/condes_utenti.php
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+  |
+ Utente |
+  |
+ Creazione |
+  |
+ Ultima Modifica |
+  |
+ Ultimo accesso |
+  |
+ Numero accessi |
+
+
+ |  |
+
+
+
+ |
+  |
+ |
+  |
+ |
+  |
+ |
+  |
+ |
+  |
+
+  |
+
+
+
+
+
diff --git a/core/config.php b/core/config.php
index a6339c7..732768b 100755
--- a/core/config.php
+++ b/core/config.php
@@ -8,4 +8,6 @@ $db_data_pwd = "Lx7w3e8dNPfwwc3z";
require_once ("function.php");
$DB_ID = db_data_connect ();
$CONF = carica_conf();
+$MODULO = modulo();
+
?>
diff --git a/core/function.php b/core/function.php
index c5c269c..ebca43c 100755
--- a/core/function.php
+++ b/core/function.php
@@ -464,6 +464,30 @@ function lista_moduli () {
|
|
diff --git a/proxy/pool_lista.php b/proxy/pool_lista.php
index 4c39c1a..005c4fa 100755
--- a/proxy/pool_lista.php
+++ b/proxy/pool_lista.php
@@ -13,7 +13,7 @@ if (isset($_POST['tempo'])) {
if (isset($_POST['ordina'])) {
$ordina = $_POST['ordina'];
} else {
- $ordina = "ip";
+ $ordina = "INET_ATON(ip)";
}
?>
@@ -39,7 +39,7 @@ if (isset($_POST['ordina'])) {
Ordinamento: |
diff --git a/risorse/stili/stile.css b/risorse/stili/stile.css
index ad60947..fb86d45 100644
--- a/risorse/stili/stile.css
+++ b/risorse/stili/stile.css
@@ -39,6 +39,7 @@ td.valoretxt { font-family: verdana; font-size: 14px; text-align: left; vertica
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}
td.ltop { font-family: verdana; font-size: 14px; text-align: left; vertical-align:text-top; text-decoration: none; color: #000000; }
+td.ctop { font-family: verdana; font-size: 14px; text-align: center; vertical-align:text-top; text-decoration: none; color: #000000; }
td.rtop { font-family: verdana; font-size: 14px; text-align: right; vertical-align:text-top; text-decoration: none; color: #000000; }
td.lbottom { font-family: verdana; font-size: 14px; text-align: left; vertical-align:text-top; text-decoration: none; color: #000000; }
td.rbottom { font-family: verdana; font-size: 14px; text-align: right; vertical-align:text-top; text-decoration: none; color: #5191D5; }
diff --git a/utenti/index.php b/utenti/index.php
index 3d82035..c9efa8f 100755
--- a/utenti/index.php
+++ b/utenti/index.php
@@ -17,12 +17,13 @@ function PopupG(apri)
//-->
+
 |
 |
-  |
+  |
-  |
+  |
 |
- Utente |
+ Utente |
 |
- Creazione |
+ Creazione |
 |
- Ultima Modifica |
+ Ultima Modifica |
 |
- Ultimo accesso |
+ Ultimo accesso |
 |
- Numero accessi |
-
-
-
+ | Numero accessi |
+
+
+ |  |
- |
+ |
 |
- |
+ |
 |
- |
+ |
 |
- |
+ |
 |
- |
-
-
-
+ |
+  |
-  |
+  |
diff --git a/utenti/modutenti.php b/utenti/modutenti.php
index c81273e..6f7ecdf 100755
--- a/utenti/modutenti.php
+++ b/utenti/modutenti.php
@@ -34,15 +34,47 @@ if (isset($_GET['id'])) {
if ( $rm == 1) {
$testo = "L'utente e' stato correttamente rimosso";
- $query = "DELETE FROM permessi WHERE id_utenti = $id";
- $query2 = "DELETE FROM utenti WHERE id = $id";
+ $query = " DELETE FROM
+ permessi
+ WHERE
+ id_utenti = $id
+ ";
+
+ $query2 = " DELETE FROM
+ utenti
+ WHERE
+ id = $id
+ ";
+
} elseif ($id > 0) {
$testo = "L'utente e' stato correttamente modificato";
- $query = "UPDATE utenti SET $querypwd admin = $admin, attivo=$attivo, modifica = NOW(), mail='$mail' WHERE `id`=$id";
+ $query = " UPDATE
+ utenti
+ SET
+ $querypwd
+ utente = '$utente',
+ admin = $admin,
+ attivo=$attivo,
+ modifica = NOW(),
+ mail='$mail'
+ WHERE
+ id=$id
+ ";
} else {
$testo = "L'utente e' stato correttamente inserito";
- $query = "INSERT INTO utenti SET utente = '$utente', $querypwd admin = $admin, attivo=$attivo, modifica = NOW(), creazione = NOW(), mail='$mail'";
+ $query = " INSERT INTO
+ utenti
+ SET
+ $querypwd
+ utente = '$utente',
+ admin = $admin,
+ attivo=$attivo,
+ modifica = NOW(),
+ creazione = NOW(),
+ mail='$mail'
+ ";
}
+
?>
|