summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2007-11-07 15:24:42 +0000
committerUrban Müller2007-11-07 15:24:42 +0000
commit036512e56327b8813da1a5c5f4f60de435d12554 (patch)
tree2388c24d17a8abc0628f4ee3bc177d22a1ff3ed3 /itjs.class
parente70998a3e1baf625749f77f9ad37a427d5a03e96 (diff)
downloaditools-036512e56327b8813da1a5c5f4f60de435d12554.tar.gz
itools-036512e56327b8813da1a5c5f4f60de435d12554.tar.bz2
itools-036512e56327b8813da1a5c5f4f60de435d12554.zip
more thorough checksums
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class6
1 files changed, 5 insertions, 1 deletions
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);