diff options
author | Thomas BrĂ¼derli | 2007-08-08 14:54:51 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-08-08 14:54:51 +0000 |
commit | 1a413655f0b1b717d568b165c5b72e14575b75f9 (patch) | |
tree | 1c8c143b618c359d421cd3e38ec5f9d65e281254 /itjs.php | |
parent | 983823c499ab3aea81298a8284dbb8d28b4a1b1b (diff) | |
download | itools-1a413655f0b1b717d568b165c5b72e14575b75f9.tar.gz itools-1a413655f0b1b717d568b165c5b72e14575b75f9.tar.bz2 itools-1a413655f0b1b717d568b165c5b72e14575b75f9.zip |
Updated it_boot
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -40,16 +40,11 @@ else if (!ereg('\.html$', $file)) if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH']) { - if ($_REQUEST['init']) - $data .= "window.it_boot_init();"; - if ($_REQUEST['boot']) - { - $data = itjs::strip($data); - echo itjs::serialize(array('code' => $data, 'len' => strlen($data))); - } - else - echo itjs::strip($data); + $data = preg_replace('/([\xa0-\xff])/e', 'sprintf("\\u%04x", ord("\\1"))', $data) . "window.it_boot_init();"; + + $data = itjs::strip($data); + echo $data; } else header("HTTP/1.0 304 Not Modified"); |