Rev 601 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 601 | Rev 635 | ||
---|---|---|---|
Line 26... | Line 26... | ||
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; |
30 | if (strpos(str_replace('\\','/',realpath($file)),'/includes/classes/http_class.class.php') !== false) continue; |
31 | if (strpos(str_replace('\\','/',realpath($file)),'/plugins/objectTypes/oid/WeidOidConverter.class.php') !== false) continue; |
31 | if (strpos(str_replace('\\','/',realpath($file)),'/plugins/viathinksoft/objectTypes/oid/WeidOidConverter.class.php') !== false) continue; |
32 | if (($file->getExtension() == 'php') || ($file->getExtension() == 'js')) { |
32 | if (($file->getExtension() == 'php') || ($file->getExtension() == 'js')) { |
33 | $cont = file_get_contents($file); |
33 | $cont = file_get_contents($file); |
34 | if (strpos($cont,'Daniel Marschall, ViaThinkSoft') === false) { |
34 | if (strpos($cont,'Daniel Marschall, ViaThinkSoft') === false) { |
35 | $file = realpath($file); |
35 | $file = realpath($file); |
36 | echo "Copyright missing: $file\n"; |
36 | echo "Copyright missing: $file\n"; |