diff --git a/condes/index.php b/condes/index.php index 6296e7e..24f020b 100644 --- a/condes/index.php +++ b/condes/index.php @@ -85,6 +85,12 @@ $tabella = new html (0,"90%",array(15,2,20,2,15,2,5,0)); riga (); +if ($DIRITTI < 10) { + $admin = " AND utenti.id = ".$UTENTE['id']; +} else { + $admin = ""; +} + $query = " SELECT condes_regole.id, condes_regole.stato, @@ -98,8 +104,7 @@ $query = " SELECT utenti ON condes_regole.id_utenti = utenti.id - AND - utenti.id = ".$UTENTE['id']." + $admin JOIN condes_macchine ON diff --git a/firewall/firewall_regole_versointerno.php b/firewall/firewall_regole_versointerno.php index 86ab79a..d40f9fb 100755 --- a/firewall/firewall_regole_versointerno.php +++ b/firewall/firewall_regole_versointerno.php @@ -62,7 +62,7 @@ $query = " SELECT "; $res_macchine = mysql_query( $query, $DB_ID ); -$tabella = new html (0,"90%",array(3,3,2,15,2,15,2,5,0)); +$tabella = new html (0,"90%",array(3,3,2,15,2,30,2,5,0)); ?>