#!/usr/bin/php ".$functions[$i]."(") || strstr($lines[$j], "\t".$functions[$i]."(") || strstr($lines[$j], " ".$functions[$i]." (") || strstr($lines[$j], "=".$functions[$i]." (") || strstr($lines[$j], "{".$functions[$i]." (") || strstr($lines[$j], ".".$functions[$i]." (") || strstr($lines[$j], "(".$functions[$i]." (") || strstr($lines[$j], ">".$functions[$i]." (") || strstr($lines[$j], "\t".$functions[$i]." (") || substr($lines[$j], 0, strlen($functions[$i])) == $functions[$i]) { $found_str[] = $lines[$j]; $found_line[] = $j+1; } } } if(!empty($found_str)) _log($file, $found_str, $found_line); } function _log($path, $line, $linenum) { global $log_file; file_put_contents($log_file, "File: ".$path."\n", FILE_APPEND); for($i=0;$i