// for IE's XDomainRequest instead of XMLHttpRequest header('Access-Control-Allow-Origin: *'); // disable compression to immediately push data @apache_setenv('no-gzip', 1); @ini_set('zlib.output_compression', 0); @ini_set('implicit_flush', 1); // disable output buffering while (@ob_end_flush()) { } ini_set('implicit_flush', 1); ob_implicit_flush(1); // for chrome to start processing progress events echo str_repeat(' ', 2048); //ob_flush(); flush(); $fl = new \core\util\log\FileLogger("response.php", "../response.log"); $fl->logge("query=%", array($_SERVER['QUERY_STRING'])); if (strncmp($_GET['action'], "read", 4) == 0) { // if the iptables logfile should be analyzed if (isset($_GET['stats_type']) && strncmp($_GET['stats_type'], "logfile", 7) == 0) { $fsr = new FileStreamReader(); $fl->logge("streamer created"); $fsr->read(); $fl->logge("logfile state ended"); // if the iptables command should be used } else { if (isset($_GET['stats_type']) && strncmp($_GET['stats_type'], "iptables", 7) == 0) { // check the command prefix //$cmd = "sudo /sbin/iptables -t filter -nvx --list input-dns"; // dummy $xd = null; $cmd = null; try {