diff options
author | Christian Schneider | 2020-05-11 17:24:39 +0200 |
---|---|---|
committer | Christian Schneider | 2020-05-11 17:24:39 +0200 |
commit | cef3e6025587f84b3efaddcb127b88deb8c32a02 (patch) | |
tree | d3fe7241ce3022928e4a12147a29c6196ddd6725 /itjs.php | |
parent | c412f1c1463327866baee117504c3a4b3fc33bd6 (diff) | |
download | itools-cef3e6025587f84b3efaddcb127b88deb8c32a02.tar.gz itools-cef3e6025587f84b3efaddcb127b88deb8c32a02.tar.bz2 itools-cef3e6025587f84b3efaddcb127b88deb8c32a02.zip |
Remove obsolete itools javascript functions and loader/jsboot mechanism
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -43,7 +43,6 @@ if (it::match('\.gif$', $lastfile)) else if (it::match('\.css', $lastfile)) { header("Content-Type: text/css"); - $data .= "\n#it_boot_dom { display:none }\n"; # Append magic style for it_boot if (!it::match('^devel', $GLOBALS['ULTRASERVERTYPE'])) $data = it::replace(array('[ \t]*([{};])[ \t]*' => '$1', '/\*.*?\*/' => ""), $data); if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || $_GET['w3c']) @@ -86,15 +85,4 @@ else if ($files && !it::match('\.html$', $lastfile)) if (strpos($data, "<?php") !== false) it::error("sending php source?!"); -$data = itjs::strip($data); - -if ($_REQUEST['boot']) -{ - $data .= "window.it_boot_init();\n"; - if (!$_REQUEST['script']) - $data = sprintf("/*sln:%d*/\n%s/*eln:%d*/", grapheme_strlen($data), strtr($data, array('%' => "%25", '.' => "%2e", 'e' => "%65", 'i' => "%69")), grapheme_strlen($data)); # Protect from Firewalls/Proxies altering Javascript source code -} - -echo it_untaint($data); - -?> +echo itjs::strip($data); |