4 while (!file_exists(
'ilias.ini.php')) {
9 require_once
'Services/Init/classes/class.ilInitialisation.php';
24 if (defined(
'ILIAS_HTTP_PATH')) {
25 $weburl = substr(ILIAS_HTTP_PATH, 0, strrpos(ILIAS_HTTP_PATH,
'/node_modules')) .
'/';
29 if ($DIC->http()->request()->getMethod() ==
"GET" && isset($DIC->http()->request()->getQueryParams()[
'tex'])) {
36 $DIC->http()->saveResponse($DIC->http()->response()->withBody($responseStream));
37 $DIC->http()->sendResponse();
38 $DIC->http()->close();
44 $tpl->resetJavascript();
46 require_once
'Services/jQuery/classes/class.iljQueryUtil.php';
56 $tpl->setCurrentBlock(
'js_on_change_server_math_jax');
57 $tpl->touchBlock(
'js_on_change_server_math_jax');
58 $tpl->parseCurrentBlock();
62 false === strpos($pathToMathJax,
'//') &&
63 false === strpos($pathToMathJax,
'https://') &&
64 false === strpos($pathToMathJax,
'http://')
66 $pathToMathJax = str_repeat(
'../',
$steps) . $pathToMathJax;
68 $tpl->addJavaScript($pathToMathJax);
70 $tpl->setCurrentBlock(
'js_on_change_math_jax');
72 $tpl->parseCurrentBlock();
74 $tpl->setCurrentBlock(
'js_on_change_latex');
76 $tpl->parseCurrentBlock();
80 $tpl->fillJavaScriptFiles(
true);
81 $tpl->printToStdout(
'DEFAULT',
false,
true);
special template class to simplify handling of ITX/PEAR
if(strpos($jquery_path, './')===0) elseif(strpos($jquery_path, '.')===0) $mathJaxSetting
static initILIAS()
ilias initialisation
static ofString($string)
Creates a new stream with an initial value.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static insertLatexImages($a_text, $a_start='[tex]', $a_end='[/tex]')
replace [tex]...[/tex] tags with formula image code
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static getLocaljQueryPath()
if(defined('ILIAS_HTTP_PATH')) $iliasHttpPath