summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-08-08 14:54:51 +0000
committerThomas BrĂ¼derli2007-08-08 14:54:51 +0000
commit1a413655f0b1b717d568b165c5b72e14575b75f9 (patch)
tree1c8c143b618c359d421cd3e38ec5f9d65e281254 /itjs.php
parent983823c499ab3aea81298a8284dbb8d28b4a1b1b (diff)
downloaditools-1a413655f0b1b717d568b165c5b72e14575b75f9.tar.gz
itools-1a413655f0b1b717d568b165c5b72e14575b75f9.tar.bz2
itools-1a413655f0b1b717d568b165c5b72e14575b75f9.zip
Updated it_boot
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/itjs.php b/itjs.php
index c1d8604..3cd2f47 100644
--- a/itjs.php
+++ b/itjs.php
@@ -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");