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);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
if(strpos($jquery_path, './')===0) elseif(strpos($jquery_path, '.')===0) $mathJaxSetting
static initILIAS()
ilias initialisation
static ofString(string $string)
Creates a new stream with an initial value.
static getInstance()
Singleton: get instance for use in ILIAS requests with a config loaded from the settings.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static getLocaljQueryPath()
if(defined('ILIAS_HTTP_PATH')) $iliasHttpPath