0) { $idutente = $_POST['idutente']; $queryutente = "AND utenti.id = $idutente"; } else { $idutente = 0; $queryutente = ""; } if (isset($_POST['idip']) && $_POST['idip'] > 0) { $idip = $_POST['idip']; $queryip = "AND proxy_pool.id = $idip"; } else { $idip = 0; $queryip = ""; } $stato = array ("Disattivo", "Attivo", "Permanente"); $query_user = " SELECT utenti.id, utenti.utente FROM utenti JOIN permessi ON permessi.id_utenti = utenti.id WHERE permessi.id_moduli = ".$MODULO['id']." ORDER BY utente "; $res_user = mysql_query( $query_user, $DB_ID ); $query_nome = " SELECT nome FROM firewall_versoesterno UNION SELECT nome FROM firewall_versointerno GROUP BY nome ORDER BY nome "; $res_nome = mysql_query( $query_nome, $DB_ID ); $query_tipo = " SELECT tipo FROM firewall_vpn UNION SELECT tipo FROM firewall_macchine_ext GROUP BY tipo ORDER BY tipo "; $res_tipo = mysql_query( $query_tipo, $DB_ID ); ?>