Subversion Repositories checksum-tools

Rev

Rev 11 | Rev 13 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 12
Line 1... Line 1...
1
#!/usr/bin/php
1
#!/usr/bin/php
2
<?php
2
<?php
3
 
3
 
4
/*
4
/*
5
   Copyright 2020 Daniel Marschall, ViaThinkSoft
5
   Copyright 2020-2021 Daniel Marschall, ViaThinkSoft
6
 
6
 
7
   Licensed under the Apache License, Version 2.0 (the "License");
7
   Licensed under the Apache License, Version 2.0 (the "License");
8
   you may not use this file except in compliance with the License.
8
   you may not use this file except in compliance with the License.
9
   You may obtain a copy of the License at
9
   You may obtain a copy of the License at
10
 
10
 
Line 53... Line 53...
53
                if ($file === '..') continue;
53
                if ($file === '..') continue;
54
                if (strtolower($file) === 'thumbs.db') continue;
54
                if (strtolower($file) === 'thumbs.db') continue;
55
                if (strtolower(substr($file, -4)) === '.md5') continue;
55
                if (strtolower(substr($file, -4)) === '.md5') continue;
56
                if (strtolower(substr($file, -4)) === '.sfv') continue;
56
                if (strtolower(substr($file, -4)) === '.sfv') continue;
57
 
57
 
58
                $fullpath = $directory . '/' . $file;
58
                $fullpath = rtrim($directory,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file;
59
                if (is_dir($fullpath)) {
59
                if (is_dir($fullpath)) {
60
                        _rec($fullpath);
60
                        _rec($fullpath);
61
                } else if (is_file($fullpath)) {
61
                } else if (is_file($fullpath)) {
62
                        global $show_verbose;
62
                        global $show_verbose;
63
                        if ($show_verbose) echo "$fullpath\n";
63
                        if ($show_verbose) echo "$fullpath\n";