squid logs "; } } if ($errore) { echo "Errori rilevati:
".$errore."
". "questo check puo' essere evitato settando la variabile check_pkg_install=false ". "in include/cfg-squid.php"; ""; exit; } echo "
". "Chiave di Ricerca: "; echo "  "; echo "Periodo: ". ""; echo "  [ Cerca ]". "
"; if ($_REQUEST["search_key"]){ echo "Analisi del file: ".$_REQUEST["squid_log_file"]. " con chiave: ".$_REQUEST["search_key"]; echo "". "Data". "Indirizzo IP". "Destinazione"; $cmdstr = $grepbin." ".$_REQUEST["search_key"]." ".$squid_log_dir."/".$_REQUEST["squid_log_file"]; echo "DEBUG: $cmdstr\n"; $fp = popen($cmdstr, 'r'); while ($line = fgets($fp, 4096)){ preg_match_all("|(.{14}).{7} (.*) .* .* .* (.*) .*$|U",$line,$out, PREG_PATTERN_ORDER); echo ""; echo "".date("d.m.Y - h:i:s",$out[1][0]); echo "".$out[2][0]; echo "".htmlentities(substr($out[3][0],0,80))." ..."; } } ?>