diff --git a/firewall/firewall_logs.php b/firewall/firewall_logs.php new file mode 100755 index 0000000..91516a7 --- /dev/null +++ b/firewall/firewall_logs.php @@ -0,0 +1,193 @@ + 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_ip = " SELECT + firewall_macchine.id_proxy_pool AS id, + proxy_pool.nome, + proxy_pool.ip + FROM + firewall_macchine + JOIN + proxy_pool + ON + firewall_macchine.id_proxy_pool = proxy_pool.id + ORDER BY + -proxy_pool.nome DESC, + INET_ATON(proxy_pool.ip) ASC +"; +$res_ip = mysql_query( $query_ip, $DB_ID ); +?> +
+