diff options
author | Urban Müller | 2007-11-07 15:24:42 +0000 |
---|---|---|
committer | Urban Müller | 2007-11-07 15:24:42 +0000 |
commit | 036512e56327b8813da1a5c5f4f60de435d12554 (patch) | |
tree | 2388c24d17a8abc0628f4ee3bc177d22a1ff3ed3 /itjs.class | |
parent | e70998a3e1baf625749f77f9ad37a427d5a03e96 (diff) | |
download | itools-036512e56327b8813da1a5c5f4f60de435d12554.tar.gz itools-036512e56327b8813da1a5c5f4f60de435d12554.tar.bz2 itools-036512e56327b8813da1a5c5f4f60de435d12554.zip |
more thorough checksums
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -146,7 +146,11 @@ function strip($code) */ function checksum($files = array()) { - foreach (array_merge($files, array('itjs.php', 'itjs.class')) as $file) + $itjs = "/www/server/phpinclude/itools/itjs"; + $itools_itjs = glob("$itjs/*.{js,css,php}", GLOB_BRACE); + $service_itjs = glob($GLOBALS['ULTRAHOME'] . "/itjs/*.{js,css,php}", GLOB_BRACE); + + foreach (array_merge($files, $service_itjs, $itools_itjs, array("$itjs/itjs.php", "$itjs/itjs.class")) as $file) { if (!preg_match("/^devel/", $GLOBALS['ULTRASERVERTYPE'])) $result += @filesize($file); |