Rev 635 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 648 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | $it = new RecursiveDirectoryIterator($dir); |
25 | $it = new RecursiveDirectoryIterator($dir); |
26 | foreach(new RecursiveIteratorIterator($it) as $file) { |
26 | foreach(new RecursiveIteratorIterator($it) as $file) { |
27 | if (strpos(str_replace('\\','/',realpath($file)),'/vendor/') !== false) continue; // ignore third-party-code |
27 | if (strpos(str_replace('\\','/',realpath($file)),'/vendor/') !== false) continue; // ignore third-party-code |
28 | if (strpos(str_replace('\\','/',realpath($file)),'/bcrypt_worker.js') !== false) continue; // ignore third-party-code |
28 | if (strpos(str_replace('\\','/',realpath($file)),'/bcrypt_worker.js') !== false) continue; // ignore third-party-code |
29 | if (strpos(str_replace('\\','/',realpath($file)),'/userdata/') !== false) continue; |
29 | if (strpos(str_replace('\\','/',realpath($file)),'/userdata/') !== false) continue; |
30 | if (strpos(str_replace('\\','/',realpath($file)),'/includes/classes/http_class.class.php') !== false) continue; |
- | |
31 | if (strpos(str_replace('\\','/',realpath($file)),'/plugins/viathinksoft/objectTypes/oid/WeidOidConverter.class.php') !== false) continue; |
30 | if (strpos(str_replace('\\','/',realpath($file)),'/plugins/viathinksoft/objectTypes/oid/WeidOidConverter.class.php') !== false) continue; |
32 | if (($file->getExtension() == 'php') || ($file->getExtension() == 'js')) { |
31 | if (($file->getExtension() == 'php') || ($file->getExtension() == 'js')) { |
33 | $cont = file_get_contents($file); |
32 | $cont = file_get_contents($file); |
34 | if (strpos($cont,'Daniel Marschall, ViaThinkSoft') === false) { |
33 | if (strpos($cont,'Daniel Marschall, ViaThinkSoft') === false) { |
35 | $file = realpath($file); |
34 | $file = realpath($file); |