protected function renderContent() { if (isset($_REQUEST['exId']) && is_numeric($_REQUEST['exId'])) { $exId = (int) $_REQUEST['exId']; } else { $exId = null; } $exerciseResults = $this->prepareContent(); $jsloader = JavascriptLoader::getInstance(); $jsloader->load('jquery'); $context = array('cidReq' => $this->courseId, 'cidReset' => true, 'userId' => $this->userId); $html = '<script language="javascript" type="text/javascript">' . "\n" . ' $(document).ready(function() {' . ' $(\'.exerciseDetails\').hide();' . ' $(\'.exerciseDetailsToggle\').click( function()' . ' {' . ' $(this).next(".exerciseDetails").toggle();' . ' return false;' . ' });' . ' });' . '</script>' . "\n\n"; $html .= '<table class="claroTable emphaseLine" cellpadding="2" cellspacing="1" border="0" align="center" style="width: 99%;">' . "\n" . '<thead>' . "\n" . '<tr class="headerX">' . "\n" . '<th>' . get_lang('Exercises') . '</th>' . "\n" . '<th>' . get_lang('Worst score') . '</th>' . "\n" . '<th>' . get_lang('Best score') . '</th>' . "\n" . '<th>' . get_lang('Average score') . '</th>' . "\n" . '<th>' . get_lang('Average Time') . '</th>' . "\n" . '<th>' . get_lang('Attempts') . '</th>' . "\n" . '<th>' . get_lang('Last attempt') . '</th>' . "\n" . '</tr>' . "\n" . '</thead>' . "\n"; if (!empty($exerciseResults) && is_array($exerciseResults)) { $html .= '<tbody>' . "\n"; foreach ($exerciseResults as $result) { $html .= '<tr class="exerciseDetailsToggle">' . "\n" . '<td><a href="#">' . claro_htmlspecialchars($result['title']) . '</td>' . "\n" . '<td>' . (int) $result['minimum'] . '</td>' . "\n" . '<td>' . (int) $result['maximum'] . '</td>' . "\n" . '<td>' . round($result['average'] * 10) / 10 . '</td>' . "\n" . '<td>' . claro_html_duration(floor($result['avgTime'])) . '</td>' . "\n" . '<td>' . (int) $result['attempts'] . '</td>' . "\n" . '<td>' . claro_html_localised_date(get_locale('dateTimeFormatLong'), strtotime($result['lastAttempt'])) . "</td> \n"; $html .= '</tr>' . "\n"; // details $exerciseDetails = $this->getUserExerciceDetails($result['id']); if (is_array($exerciseDetails) && !empty($exerciseDetails)) { $html .= '<tr class="exerciseDetails" >'; if (claro_is_course_manager()) { $html .= '<td><a href="' . claro_htmlspecialchars(Url::Contextualize(get_module_url('CLQWZ') . '/track_exercise_reset.php?cmd=resetAllAttemptsForUser&exId=' . $result['id'], $context)) . '">' . get_lang('delete all') . '</a></td>'; } else { $html .= '<td> </td>' . "\n"; } $html .= '<td colspan="6" class="noHover">' . "\n" . '<table class="claroTable emphaseLine" cellspacing="1" cellpadding="2" border="0" width="100%" style="width: 99%;">' . "\n" . '<thead>' . "\n"; $html .= '' . '<tr>' . "\n" . '<th><small>' . get_lang('Date') . '</small></th>' . "\n" . '<th><small>' . get_lang('Score') . '</small></th>' . "\n" . '<th><small>' . get_lang('Time') . '</small></th>' . "\n" . '<th><small>' . get_lang('Delete') . '</small></th>' . "\n" . '</tr>' . "\n" . '</thead>' . "\n" . '<tbody>' . "\n"; foreach ($exerciseDetails as $details) { $html .= '<tr>' . "\n" . '<td><small>' . "\n" . '<a href="' . get_module_url('CLQWZ') . '/track_exercise_details.php?trackedExId=' . $details['id'] . '">' . claro_html_localised_date(get_locale('dateTimeFormatLong'), strtotime($details['date'])) . '</a></small></td>' . "\n" . '<td><small>' . $details['result'] . '/' . $details['weighting'] . '</small></td>' . "\n" . '<td><small>' . claro_html_duration($details['time']) . '</small></td>' . "\n"; if (claro_is_course_manager()) { $html .= '<td><small><a href="' . claro_htmlspecialchars(Url::Contextualize(get_module_url('CLQWZ') . '/track_exercise_reset.php?cmd=resetAttemptForUser&trackId=' . $details['id'], $context)) . '">' . get_lang('delete') . '</a></small></td>' . "\n"; } else { $html .= '<td><small>-</small></td>'; } $html .= '</tr>' . "\n"; } $html .= '</tbody>' . "\n" . '</table>' . "\n\n" . '</td>' . "\n" . '</tr>' . "\n"; } } $html .= '</tbody>' . "\n"; } else { $html .= '<tbody>' . "\n" . '<tr>' . "\n" . '<td colspan="7" align="center">' . get_lang('No result') . '</td>' . "\n" . '</tr>' . "\n" . '</tbody>' . "\n"; } $html .= '</table>' . "\n\n"; return $html; }
// ------------- permission --------------------------- if (!claro_is_user_authenticated()) { claro_disp_auth_form(false); } if (!claro_is_platform_admin()) { claro_die(get_lang('Not allowed')); } // -------------- business logic ---------------------- $content = ""; $arguments = array(); $displayTable = true; $acceptedSearch = array('fromUser', 'olderThan', 'timeInterval', 'platformMessage'); $acceptedCommand = array('rqDeleteSelection', 'exDeleteSelection', 'rqDeleteMessage', 'exDeleteMessage'); $box = new AdminMessageBox(); $strategy = $box->getSelector(); $JsLoader = JavascriptLoader::getInstance(); $JsLoader->load('jquery'); $messageId = isset($_REQUEST['message_id']) ? (int) $_REQUEST['message_id'] : NULL; // ---------------- order if (isset($_REQUEST['order'])) { $order = $_REQUEST['order'] == 'asc' ? 'asc' : 'desc'; $arguments['order'] = $order; if ($arguments['order'] == 'asc') { $strategy->setOrder(AdminBoxStrategy::ORDER_ASC); $nextOrder = 'desc'; } else { $strategy->setOrder(AdminBoxStrategy::ORDER_DESC); $nextOrder = 'asc'; } } else { $nextOrder = 'asc';
//notification commands should be handled by ajax calls if ('exNotify' == $cmd) { request_topic_notification($topicId, claro_get_current_user_id()); $cmd = 'show'; } elseif ('exdoNotNotify' == $cmd) { cancel_topic_notification($topicId, claro_get_current_user_id()); $cmd = 'show'; } } //load required js and css files JavaScriptLoader::getInstance()->load('forum'); CssLoader::getInstance()->load('clfrm', 'screen'); // Javascript confirm pop up declaration for header JavascriptLanguage::getInstance()->addLangVar('Are you sure to delete %name ?'); JavascriptLanguage::getInstance()->addLangVar('Do you really want to sign your contribution ?'); JavascriptLoader::getInstance()->load('forum'); // Prepare display $out = ''; // Command list $cmdList = array(); $nameTools = get_lang('Forums'); $pagetype = !empty($editMode) ? $editMode : 'viewtopic'; // The title is put in the $out var at the end of this script if (claro_is_allowed_to_edit() && $topicId) { $out .= '<div style="float: right;">' . "\n" . '<img src=' . get_icon_url('html') . '" alt="" /> <a href="' . claro_htmlspecialchars(Url::Contextualize('export.php?type=HTML&topic=' . $topicId)) . '" target="_blank">' . get_lang('Export to HTML') . '</a>' . "\n" . '<img src="' . get_icon_url('mime/pdf') . '" alt="" /> <a href="' . claro_htmlspecialchars(Url::Contextualize('export.php?type=PDF&topic=' . $topicId)) . '" target="_blank">' . get_lang('Export to PDF') . '</a>' . "\n" . '</div>'; } if ($topicSettingList) { $out .= disp_forum_breadcrumb($pagetype, $forumSettingList['forum_id'], $forumSettingList['forum_name'], $topicSettingList['topic_id'], $topicSettingList['topic_title']); } else { $out .= disp_forum_breadcrumb($pagetype, $forumSettingList['forum_id'], $forumSettingList['forum_name']); }
if (claro_is_course_manager()) { $cmdList[] = array('img' => 'mail_close', 'name' => get_lang('Messages to selected users'), 'url' => claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'messaging/messagescourse.php?from=clann'))); } if ($announcementQty > 0) { $cmdList[] = array('img' => 'delete', 'name' => get_lang('Clear up list of announcements'), 'url' => claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?cmd=exDeleteAll')), 'params' => array('onclick' => 'return CLANN.confirmationDelAll()')); } } /** * DISPLAY SECTION */ $nameTools = get_lang('Announcements'); $noQUERY_STRING = true; // Javascript confirm pop up declaration for header JavascriptLanguage::getInstance()->addLangVar('Are you sure you want to delete all the announcements ?'); JavascriptLanguage::getInstance()->addLangVar('Are you sure to delete %name ?'); JavascriptLoader::getInstance()->load('announcements'); $output = ''; if (!empty($subTitle)) { $titleParts = array('mainTitle' => $nameTools, 'subTitle' => $subTitle); } else { $titleParts = $nameTools; } Claroline::getDisplay()->body->appendContent(claro_html_tool_title($titleParts, null, $cmdList)); Claroline::getDisplay()->body->appendContent($dialogBox->render()); /** * FORM TO FILL OR MODIFY AN ANNOUNCEMENT */ if ($displayForm) { // DISPLAY ADD ANNOUNCEMENT COMMAND // Ressource linker if ($_REQUEST['cmd'] == 'rqEdit') {
} break; } //------------------------------------ // FIND GLOBAL INFO SECTION //------------------------------------ if (isset($uidToEdit)) { // get course user info $courseUserProperties = course_user_get_properties($uidToEdit, $cidToEdit); } //------------------------------------ // PREPARE DISPLAY //------------------------------------ // Javascript confirm pop up declaration for header JavascriptLanguage::getInstance()->addLangVar('Are you sure you want to unregister %name ?'); JavascriptLoader::getInstance()->load('admin'); $displayBackToCU = false; $displayBackToUC = false; if ('culist' == $ccfrom) { $displayBackToCU = TRUE; } elseif ('uclist' == $ccfrom) { $displayBackToUC = TRUE; } $cmd_menu[] = '<a class="claroCmd" href="adminuserunregistered.php' . '?cidToEdit=' . $cidToEdit . '&cmd=UnReg' . '&uidToEdit=' . $uidToEdit . '" ' . ' onclick="return ADMIN.confirmationUnReg(\'' . clean_str_for_javascript(claro_htmlspecialchars($courseUserProperties['firstName']) . ' ' . claro_htmlspecialchars($courseUserProperties['lastName'])) . '\');">' . get_lang('Unsubscribe') . '</a>'; $cmd_menu[] = '<a class="claroCmd" href="admin_profile.php' . '?uidToEdit=' . $uidToEdit . '">' . get_lang('User settings') . '</a>'; //link to go back to list : depend where we come from... if ($displayBackToCU) { $cmd_menu[] = '<a class="claroCmd" href="admincourseusers.php' . '?cidToEdit=' . $cidToEdit . '&uidToEdit=' . $uidToEdit . '">' . get_lang('Back to list') . '</a> '; } elseif ($displayBackToUC) { $cmd_menu[] = '<a class="claroCmd" href="adminusercourses.php' . '?cidToEdit=' . $cidToEdit . '&uidToEdit=' . $uidToEdit . '">' . get_lang('Back to list') . '</a> '; }
/** * Render the tool title and command list * @return string */ public function render() { // We'll need some js JavascriptLoader::getInstance()->load('tooltitle'); // Command list and help $commandList = ''; $help = ''; if (!empty($this->helpUrl)) { $help .= '<li><a class="help" href="#" ' . "onclick=\"MyWindow=window.open('" . $this->helpUrl . "'," . "'MyWindow','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=350,height=450,left=300,top=10'); return false;\">" . ' </a></li>' . "\n"; } if (!empty($this->commandList)) { $commands = ''; foreach ($this->commandList as $command) { $styleA = ''; if (!empty($command['img'])) { $styleA = ' style="background-image: url(' . get_icon_url($command['img']) . '); background-repeat: no-repeat; background-position: left center; padding-left: 20px;"'; } $params = ''; if (!empty($command['params'])) { foreach ($command['params'] as $key => $value) { $params .= ' ' . $key . '="' . $value . '"'; } } $commands .= '<li>' . '<a' . $styleA . $params . ' href="' . $command['url'] . '">' . $command['name'] . '</a></li>' . "\n"; } foreach ($this->advancedCommandList as $command) { $styleA = ''; if (!empty($command['img'])) { $styleA = ' style="background-image: url(' . get_icon_url($command['img']) . '); background-repeat: no-repeat; background-position: left center; padding-left: 20px;"'; } $params = ''; if (!empty($command['params'])) { foreach ($command['params'] as $key => $value) { $params .= ' ' . $key . '="' . $value . '"'; } } $commands .= '<li class="hidden">' . '<a' . $styleA . $params . ' href="' . $command['url'] . '">' . $command['name'] . '</a></li>' . "\n"; } $more = ''; if (!empty($this->advancedCommandList)) { $more = '<li><a class="more" title="' . get_lang('Show/hide %nbr more commands', array('%nbr' => count($this->advancedCommandList))) . '" href="#">»</a></li>'; } $commandList .= '<ul class="commandList">' . "\n" . $help . $commands . $more . '</ul>' . "\n"; } else { $commandList .= '<ul class="commandList">' . "\n" . $help . '</ul>' . "\n"; } $out = '<div class="toolTitleBlock">'; // Title parts if (!empty($this->superTitle)) { $out .= '<span class="toolTitle superTitle">' . $this->superTitle . '</span>' . "\n"; } if (empty($commandList)) { $style = ' style="border-right: 0"'; } else { $style = ''; } $out .= '<table><tr><td>' . '<h1 class="toolTitle mainTitle"' . $style . '>' . $this->mainTitle . '</h1>' . "\n" . '</td><td>' . $commandList . '</td></tr></table>'; if (!empty($this->subTitle)) { $out .= '<span class="toolTitle subTitle">' . $this->subTitle . '</span>' . "\n"; } $out .= '</div>' . "\n"; return $out; }
/* > > > > > > END: COMMON TO TEACHERS AND STUDENTS < < < < < < <*/ /*= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = DISPLAY = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ if ($docView == 'image') { $noQUERY_STRING = true; $claroBodyOnload[] = "CLDOC.zoomOut();"; } $nameTools = get_lang("Documents and Links"); // Used for the breadcrumb when one need to add a parameter after the filename $_SERVER['QUERY_STRING'] = ''; // Display (3 view modes: image, thumbnails or files) JavascriptLanguage::getInstance()->addLangVar('Are you sure to delete %name ?'); JavascriptLanguage::getInstance()->addLangVar('Click to zoom out'); JavascriptLanguage::getInstance()->addLangVar('Click to zoom in'); JavascriptLoader::getInstance()->load('documents'); $out = ''; $dspCurDirName = claro_htmlspecialchars($curDirName); $dspCurDirPath = claro_htmlspecialchars($curDirPath); $cmdCurDirPath = rawurlencode($curDirPath); $cmdParentDir = rawurlencode($parentDir); // Define toot title and subtitle $titleElement['mainTitle'] = get_lang("Documents and Links"); if (claro_is_in_a_group() && claro_is_group_allowed()) { $titleElement['supraTitle'] = claro_get_current_group_data('name'); } // Get image list from file list if (($docView == 'image' || $docView == 'thumbnails') && isset($fileList)) { $imageList = get_image_list($fileList, $is_allowedToEdit); } // Command list
/* * Libraries */ require_once dirname(__FILE__) . '/lib/trackingRenderer.class.php'; require_once dirname(__FILE__) . '/lib/trackingRendererRegistry.class.php'; /* * Init some other vars */ // Command list $cmdList = array(); $cmdList[] = array('img' => 'delete', 'name' => get_lang('Delete all course statistics'), 'url' => claro_htmlspecialchars(Url::Contextualize('delete_course_stats.php'))); /* * Output */ CssLoader::getInstance()->load('tracking', 'screen'); JavascriptLoader::getInstance()->load('tracking'); // initialize output $claroline->setDisplayType(Claroline::PAGE); $nameTools = get_lang('Statistics'); $html = ''; $html .= claro_html_tool_title(array('mainTitle' => $nameTools, 'subTitle' => get_lang('Statistics of course : %courseCode', array('%courseCode' => claro_get_current_course_data('officialCode')))), null, $cmdList); /* * Prepare rendering : * Load and loop through available tracking renderers * Order of renderers blocks is arranged using "first found, first display" in the registry * Modify the registry to change the load order if required */ // get all renderers by using registry $trackingRendererRegistry = TrackingRendererRegistry::getInstance(claro_get_current_course_id()); // here we need course tracking renderers $courseTrackingRendererList = $trackingRendererRegistry->getCourseRendererList();
/** * Display form * * @param $cancelUrl string url of the cancel button * @return string html output of form */ public function displayForm($cancelUrl = null) { JavascriptLoader::getInstance()->load('course_form'); $languageList = get_language_to_display_list('availableLanguagesForCourses'); $categoriesList = claroCategory::getAllCategoriesFlat(); $linkedCategoriesListHtml = ''; // Categories linked to the course $unlinkedCategoriesListHtml = ''; // Other categories (not linked to the course) foreach ($categoriesList as $category) { // Is that category linked to the current course or not ? $match = false; foreach ($this->categories as $searchCategory) { if ($category['id'] == (int) $searchCategory->id) { $match = true; break; } else { $match = false; } } // Dispatch in the lists if ($match) { $linkedCategoriesListHtml .= '<option ' . (!$category['visible'] ? 'class="hidden" ' : '') . 'value="' . $category['id'] . '">' . $category['path'] . '</option>' . "\n"; } else { if ($category['canHaveCoursesChild'] || claro_is_platform_admin()) { $unlinkedCategoriesListHtml .= '<option ' . (!$category['visible'] ? 'class="hidden" ' : '') . 'value="' . $category['id'] . '">' . $category['path'] . '</option>' . "\n"; } } } $publicDisabled = !(get_conf('allowPublicCourses', true) || claro_is_platform_admin()) ? ' disabled="disabled"' : ''; $publicCssClass = !(get_conf('allowPublicCourses', true) || claro_is_platform_admin()) ? ' class="notice"' : ''; $publicMessage = $this->access != 'public' && !(get_conf('allowPublicCourses', true) || claro_is_platform_admin()) ? '<br /><span class="notice">' . get_lang('If you need to create a public course, please contact the platform administrator') . '</span>' : ''; $cancelUrl = is_null($cancelUrl) ? get_path('clarolineRepositoryWeb') . 'course/index.php?cid=' . claro_htmlspecialchars($this->courseId) : $cancelUrl; $template = new CoreTemplate('course_form.tpl.php'); $template->assign('formAction', $_SERVER['PHP_SELF']); $template->assign('relayContext', claro_form_relay_context()); $template->assign('course', $this); $template->assign('linkedCategoriesListHtml', $linkedCategoriesListHtml); $template->assign('unlinkedCategoriesListHtml', $unlinkedCategoriesListHtml); $template->assign('languageList', $languageList); $template->assign('publicDisabled', $publicDisabled); $template->assign('publicCssClass', $publicCssClass); $template->assign('publicMessage', $publicMessage); $template->assign('cancelUrl', $cancelUrl); $template->assign('nonRootCategoryRequired', !get_conf('clcrs_rootCategoryAllowed', true)); return $template->render(); }
// Load Claroline kernel require_once dirname(__FILE__) . '/../inc/claro_init_global.inc.php'; // Build the breadcrumb $nameTools = get_lang('Headlines'); // Initialisation of variables and used classes and libraries require_once get_module_path('CLTI') . '/lib/toolintroductioniterator.class.php'; $id = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0; $cmd = !empty($_REQUEST['cmd']) ? $_REQUEST['cmd'] : null; $isAllowedToEdit = claro_is_allowed_to_edit(); set_current_module_label('CLINTRO'); // Init linker FromKernel::uses('core/linker.lib'); ResourceLinker::init(); // Javascript confirm pop up declaration for header JavascriptLanguage::getInstance()->addLangVar('Are you sure to delete %name ?'); JavascriptLoader::getInstance()->load('tool_intro'); // Instanciate dialog box $dialogBox = new DialogBox(); $toolIntroForm = ''; if (isset($cmd) && $isAllowedToEdit) { // Set linker's params if ($id) { $currentLocator = ResourceLinker::$Navigator->getCurrentLocator(array('id' => (int) $id)); } else { $currentLocator = null; } // CRUD if ($cmd == 'rqAdd') { $toolIntro = new ToolIntro(); $toolIntroForm = $toolIntro->renderForm(); } elseif ($cmd == 'rqEd') {
if ($cmd == 'rqMkAssig') { require_once get_path('incRepositorySys') . '/lib/form.lib.php'; // modify the command 'cmd' sent by the form $cmdToSend = 'exMkAssig'; // ask the display of the form $displayAssigForm = true; } } /*================================================================ DISPLAY ================================================================*/ /*-------------------------------------------------------------------- HEADER --------------------------------------------------------------------*/ JavascriptLanguage::getInstance()->addLangVar('Are you sure to delete %name ?'); JavascriptLoader::getInstance()->load('work'); if (isset($displayAssigForm) && $displayAssigForm) { // if there is a form add a breadcrumb to go back to list $nameTools = get_lang('Assignment'); ClaroBreadCrumbs::getInstance()->setCurrent($nameTools, Url::Contextualize($_SERVER['PHP_SELF'] . '?cmd=' . $cmd . '&assigId=' . $assigId)); ClaroBreadCrumbs::getInstance()->prepend(get_lang('Assignments'), Url::Contextualize('../work/work.php')); } else { $noQUERY_STRING = true; $nameTools = get_lang('Assignments'); } /*-------------------------------------------------------------------- LIST --------------------------------------------------------------------*/ // if user come from a group if (claro_is_in_a_group() && claro_is_group_allowed()) { // select only the group assignments
public static function initUserAgent() { if (!self::$_userAgentInitialized) { JavascriptLoader::getInstance()->load('claroline.linker'); CssLoader::getInstance()->load('linker', 'all'); } }
Include Library ----------------------------------------------------------------------*/ require_once get_path('incRepositorySys') . '/lib/admin.lib.inc.php'; require_once get_path('incRepositorySys') . '/lib/user.lib.php'; require_once get_path('incRepositorySys') . '/lib/course_user.lib.php'; require_once get_path('incRepositorySys') . '/lib/pager.lib.php'; require_once dirname(__FILE__) . '/../messaging/lib/permission.lib.php'; /*---------------------------------------------------------------------- Load config ----------------------------------------------------------------------*/ include claro_get_conf_repository() . 'user_profile.conf.php'; /*---------------------------------------------------------------------- JavaScript - Delete Confirmation ----------------------------------------------------------------------*/ JavascriptLanguage::getInstance()->addLangVar('Are you sure to delete %name ?'); JavascriptLoader::getInstance()->load('user'); /*---------------------------------------------------------------------- Variables ----------------------------------------------------------------------*/ $userPerPage = get_conf('nbUsersPerPage', 50); $is_allowedToEdit = claro_is_allowed_to_edit(); $can_add_single_user = (bool) (claro_is_course_manager() && get_conf('is_coursemanager_allowed_to_enroll_single_user')) || claro_is_platform_admin(); $can_import_user_list = (bool) (claro_is_course_manager() && get_conf('is_coursemanager_allowed_to_import_user_list')) || claro_is_platform_admin(); $can_export_user_list = (bool) (claro_is_course_manager() && get_conf('is_coursemanager_allowed_to_export_user_list', true)) || claro_is_platform_admin(); $can_import_user_class = (bool) (claro_is_course_manager() && get_conf('is_coursemanager_allowed_to_import_user_class')) || claro_is_platform_admin(); $can_send_message_to_course = current_user_is_allowed_to_send_message_to_current_course(); $dialogBox = new DialogBox(); /*---------------------------------------------------------------------- DB tables definition ----------------------------------------------------------------------*/ $tbl_cdb_names = claro_sql_get_course_tbl();
$claroFormIdListCount = array_unshift($_SESSION['claroFormIdList'], $_POST['claroFormId']); if ($claroFormIdListCount > CLARO_MAX_REGISTERED_FORM_ID) { array_pop($_SESSION['claroFormIdList']); } } } /*---------------------------------------------------------------------- Load default javascript libraries ----------------------------------------------------------------------*/ JavascriptLoader::getInstance()->load('jquery'); if (claro_debug_mode()) { JavascriptLoader::getInstance()->load('jquery-migrate'); } JavascriptLoader::getInstance()->load('jquery.qtip'); JavascriptLoader::getInstance()->load('claroline'); JavascriptLoader::getInstance()->load('claroline.ui'); // add other default platform javascript here // Load course home page javascript if (claro_is_in_a_course()) { // add other default course javascript here if (claro_is_in_a_group()) { // add other default group javascript here } } /*---------------------------------------------------------------------- Find MODULES's includes to add and include them using a cache system ----------------------------------------------------------------------*/ // TODO : move module_cache to cache directory // TODO : includePath is probably not needed $module_cache_filename = get_conf('module_cache_filename', 'moduleCache.inc.php'); $cacheRepositorySys = get_path('rootSys') . get_conf('cacheRepository', 'tmp/cache/');