diff --git a/condes/condes_gest.php b/condes/condes_gest.php
index d11660d..eaf064d 100755
--- a/condes/condes_gest.php
+++ b/condes/condes_gest.php
@@ -34,6 +34,19 @@ if (isset($_GET['id'])) {
$testo = "Confermate la disattivazione della macchina?";
break;
+ case "regola_rm":
+ $query = "DELETE FROM condes_regole WHERE id = $id";
+ $testo = "Confermate la rimozione della macchina da quelle disponibili?";
+ break;
+ case "regola_up":
+ $query = "UPDATE condes_regole SET attivo = 1 WHERE id = $id";
+ $testo = "Confermate l'attivazione della macchina?";
+ break;
+ case "regola_down":
+ $query = "UPDATE condes_regole SET attivo = 0 WHERE id = $id";
+ $testo = "Confermate la disattivazione della macchina?";
+ break;
+
default:
$testo = "Regola non implementata";
break;
@@ -102,7 +115,4 @@ function remote ($DB_ID) {
$stream = ssh2_exec($connection, $dato['command']);
}
}
-
?>
-
-
diff --git a/condes/condes_macchine.php b/condes/condes_macchine.php
index b75f503..8c61fa4 100755
--- a/condes/condes_macchine.php
+++ b/condes/condes_macchine.php
@@ -16,22 +16,6 @@ if (isset($_POST['id'])) {
$res = mysql_query( $query, $DB_ID );
}
-?>
-
-
-
|
-  |
-
-
-
-
-
+riga ();
+}
+$tabella->close();
+view_footer();
+?>
diff --git a/condes/condes_regole.php b/condes/condes_regole.php
new file mode 100755
index 0000000..22e9cda
--- /dev/null
+++ b/condes/condes_regole.php
@@ -0,0 +1,194 @@
+
+
+
+
+
+
+
+
+
+
+ |
+  |
+  |
+ Utenza |
+  |
+ Macchina |
+  |
+ ACL |
+  |
+ Perm |
+  |
+
+
+
+ |
+  |
+ |
+  |
+ |
+  |
+ |
+
+riga();
+}
+$tabella->close();
+view_footer();
+?>
diff --git a/condes/condes_utenti.php b/condes/condes_utenti.php
index e608b21..93a6f0a 100755
--- a/condes/condes_utenti.php
+++ b/condes/condes_utenti.php
@@ -16,10 +16,7 @@ function PopupG(apri)
}
//-->
-
|
@@ -85,10 +83,9 @@ while ($dato = mysql_fetch_array ( $res )) {
| |
 |
-  |
-
-
-
-
+$tabella->riga ();
+}
+$tabella->close ();
+view_footer();
+?>
diff --git a/condes/index.php b/condes/index.php
index e69de29..016d9eb 100644
--- a/condes/index.php
+++ b/condes/index.php
@@ -0,0 +1,135 @@
+";
+
+ foreach ($_POST as $id => $valore) {
+ if ($id == "utente") continue;
+ print "---- $id => $valore
";
+
+ $query = " SELECT
+ proxy_acl_ip.id
+ FROM
+ condes_regole
+ JOIN
+ condes_macchine
+ ON
+ condes_regole.id_condes_macchine = condes_macchine.id
+ JOIN
+ proxy_acl_ip
+ ON
+ proxy_acl_ip.idacllist = condes_regole.id_proxy_acl_list
+ AND
+ proxy_acl_ip.idpool = condes_macchine.id_proxy_pool
+ WHERE
+ condes_regole.id = $id
+ ";
+
+ $res = mysql_query( $query, $DB_ID );
+ $dato = mysql_fetch_array ( $res );
+ print_r ($dato);
+ print "
";
+
+ }
+
+
+
+ $query = " INSERT INTO
+ condes_regole
+ SET
+ id_utenti = $id_utenti,
+ id_condes_macchine = $id_macchine,
+ id_proxy_acl_list = $id_acl,
+ permanente = $perm,
+ data = NOW(),
+ attivo = 1
+ ";
+// $res = mysql_query( $query, $DB_ID );
+}
+
+$tabella = new html (0,"90%",array(15,2,20,2,15,2,5,0));
+?>
+
+close ();
+view_footer();
+?>
diff --git a/core/chkpasswd.php b/core/chkpasswd.php
index a9ed4a2..4f91bd9 100755
--- a/core/chkpasswd.php
+++ b/core/chkpasswd.php
@@ -19,32 +19,23 @@ if (isset ($_POST['id'])) {
$testo = "L'utente e' stato correttamente modificato";
$query = "UPDATE utenti SET $querypwd modifica = NOW(), mail='$mail' WHERE `id`=$id";
+
+ $tabella = new html (0,"90%", array (0));
+ $tabella->riga();
+
+ if (mysql_query( $query, $DB_ID )) {
+ $testo = "L'utente e' stato correttamente modificato";
+ } else {
+ $testo = "Non e' stato possibile eseguire l'operazione richiesta a causa di un errore: ".mysql_error();
+ }
?>
-
- |
+riga();
+ $tabella->close();
} else {
$bottone = "Modifica";
@@ -54,11 +45,8 @@ Non e' stato possibile eseguire l'operazione richiesta a causa di un errore:
-
-
-
+if (($modifica == 0 || $modifica == 1) && !isset($_GET['rm'])) { ?>
@@ -110,31 +98,34 @@ $(document).ready(function()
-
-
-
+
diff --git a/core/conf.php b/core/conf.php
index 85a0a8f..7fe5de3 100755
--- a/core/conf.php
+++ b/core/conf.php
@@ -2,24 +2,22 @@
include_once ("config.php");
$UTENTE = login();
isadmin();
-
view_top();
-?>
-
- |
+$tabella = new html (0,"90%", array(2,20,2,30,2,40,0));
+?>
-  |
- Campo |
-  |
- Valore |
-  |
- Nota |
+  |
+ Campo |
+  |
+ Valore |
+  |
+ Nota |
 |
- |
-
riga();
+
$query = "SELECT * FROM conf WHERE vis=1 ORDER BY ordine";
$res = mysql_query( $query, $DB_ID );
while ($dato = mysql_fetch_array ( $res )) {
@@ -49,16 +47,18 @@ while ($dato = mysql_fetch_array ( $res )) {
if ($visualizza) {
?>
-  |
- |
-  |
- |
-  |
- |
+  |
+ |
+  |
+ |
+  |
+ |
 |
- |
-
-
-
+riga();
+ }
+}
+$tabella->close();
+view_footer ();
+?>
diff --git a/core/footer.php b/core/footer.php
index b8d7df7..6ef38b2 100755
--- a/core/footer.php
+++ b/core/footer.php
@@ -1,6 +1,9 @@
-
+riga();
+?>
| |
|
@@ -10,7 +13,7 @@
|
-
+close(); ?>
|