diff -r 902822492a68 -r fe660c52c48f includes/clientside/jsres.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/clientside/jsres.php Wed Jun 13 16:07:17 2007 -0400 @@ -0,0 +1,94 @@ +getPacked($everything); + $data = Array( + 'md5' => md5 ( $everything ), + 'code' => $packed + ); + echo "// The code in this file was fetched from the static scripts and compressed (packed code cached)\n\n"; + echo $packed; + + $fh = @fopen($cache_file, 'w'); + if (!$fh) + die('// ERROR: Can\'t open cache file for writing'); + fwrite($fh, serialize ( $data ) ); + fclose($fh); + + exit; + } + + echo "// The code in this file was not compressed because packed-script caching is disabled\n\n"; + echo $everything; + +} +else +{ + echo "// The code in this file was not compressed because all script compression is disabled\n\n"; + echo $everything; +} +?>