Rev 511 | Rev 561 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
557 | daniel-mar | 1 | #!/usr/bin/env php |
360 | daniel-mar | 2 | <?php |
3 | |||
4 | /* |
||
5 | * OIDplus 2.0 |
||
511 | daniel-mar | 6 | * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
360 | daniel-mar | 7 | * |
8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
||
9 | * you may not use this file except in compliance with the License. |
||
10 | * You may obtain a copy of the License at |
||
11 | * |
||
12 | * http://www.apache.org/licenses/LICENSE-2.0 |
||
13 | * |
||
14 | * Unless required by applicable law or agreed to in writing, software |
||
15 | * distributed under the License is distributed on an "AS IS" BASIS, |
||
16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
17 | * See the License for the specific language governing permissions and |
||
18 | * limitations under the License. |
||
19 | */ |
||
20 | |||
21 | $dir = __DIR__ . '/../'; |
||
22 | |||
23 | // --- |
||
24 | |||
25 | $it = new RecursiveDirectoryIterator($dir); |
||
26 | foreach(new RecursiveIteratorIterator($it) as $file) { |
||
27 | if (strpos(str_replace('\\','/',realpath($file)),'/3p/') !== false) continue; // ignore third-party-code |
||
487 | daniel-mar | 28 | if (strpos(str_replace('\\','/',realpath($file)),'/setup/bcrypt_worker.js') !== false) continue; |
360 | daniel-mar | 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/objectTypes/oid/WeidOidConverter.class.php') !== false) continue; |
||
32 | if (($file->getExtension() == 'php') || ($file->getExtension() == 'js')) { |
||
33 | $cont = file_get_contents($file); |
||
34 | if (strpos($cont,'Daniel Marschall, ViaThinkSoft') === false) { |
||
487 | daniel-mar | 35 | $file = realpath($file); |
360 | daniel-mar | 36 | echo "Copyright missing: $file\n"; |
37 | } |
||
38 | } |
||
39 | } |
||
40 | |||
442 | daniel-mar | 41 | echo "Done.\n"; |