"; $posthref = ""; $newcontent = str_replace($prehref, $posthref, $newcontent); if (CheckSubFolder($full_file_path.$user_id.'.t.html') == 0) { $newcontent = ReplaceImgTag($newcontent); } } else { $newcontent = $content; } WriteFileCont($full_file_path.$user_id.'.t.html', $newcontent); $doc_url = GetFolderPath($doc_url).urlencode(basename($doc_url)); $documentPath = api_get_path(SYS_COURSE_PATH).$_course['path']."/document"; $my_file = Security::remove_XSS($_GET['file']); $my_file = str_replace(array('../', '\\..', '\\0', '..\\'), array('', '', '', ''), urldecode($my_file)); $title = GetQuizName($my_file, $documentPath); if ($title == '') { $title = basename($my_file); } $nameTools = $title; $noPHP_SELF = true; $htmlHeadXtra[] = /** @lang HTML */<< $(document).on('ready', function () { var iframe = document.getElementById('hotpotatoe'); iframe.onload = function () { this.height = $(this.contentDocument.body).outerHeight(true) }; }); HTML; $interbreadcrumb[] = array("url"=>"./exercise.php", "name"=> get_lang('Exercises')); if ($origin == 'learnpath') { Display::display_reduced_header($nameTools, "Exercise"); } else { Display::display_header($nameTools, "Exercise"); } $url = $document_web_path.$doc_url.$user_id.'.t.html?time='.intval($time); echo ''; echo ''; exit;