From 036512e56327b8813da1a5c5f4f60de435d12554 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 7 Nov 2007 15:24:42 +0000 Subject: more thorough checksums --- itjs.class | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'itjs.class') diff --git a/itjs.class b/itjs.class index 4b1b2b2..df80123 100644 --- a/itjs.class +++ b/itjs.class @@ -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); -- cgit v1.2.3