$F_USERINPUT = array(); $V_USERINPUT = array($_POST['varname']); $F_SECURING_XSS = array(); $_POST['vector'] = 'client'; $overall_time = 0; $timeleft = 0; $file_amount = count($files); for ($fit = 0; $fit < $file_amount; $fit++) { // for scanning display $thisfile_start = microtime(TRUE); $file_scanning = $files[$fit]; echo $fit . '|' . $file_amount . '|' . $file_scanning . '|' . $timeleft . '|' . "\n"; @ob_flush(); flush(); $scan = new Scanner($file_scanning, $scan_functions, array(), array()); $scan->parse(); $overall_time += microtime(TRUE) - $thisfile_start; // timeleft = average_time_per_file * file_amount_left $timeleft = round($overall_time / ($fit + 1) * ($file_amount - $fit + 1), 2); } echo "STATS_DONE.\n"; @ob_flush(); flush(); } $elapsed = microtime(TRUE) - $start; ################################ RESULT ################################# $treestyle = $_POST['treestyle']; function checkLeak($tree, $line, $varname) { if ($tree->children) { foreach ($tree->children as $child) {