// else anonymous : record nothing $moduleStartAssetPage = "showCourseDescription.php?course={$course_code}"; break; case CTLINK_: if ($uid) { // Directly pass this module directly_pass_lp_module($TABLEUSERMODULEPROGRESS, (int) $uid, (int) $learnPathModuleId); } // else anonymous : record nothing $moduleStartAssetPage = $assetPath; break; case CTMEDIA_: if ($uid) { directly_pass_lp_module($TABLEUSERMODULEPROGRESS, (int) $uid, (int) $learnPathModuleId); } if (MultimediaHelper::isSupportedFile($assetPath)) { $moduleStartAssetPage = "showMedia.php?course={$course_code}&id=" . $assetPath; } else { $moduleStartAssetPage = htmlspecialchars($urlServer . "modules/video/index.php?course={$course_code}&action=download&id=" . $assetPath, ENT_QUOTES); } break; case CTMEDIALINK_: if ($uid) { directly_pass_lp_module($TABLEUSERMODULEPROGRESS, (int) $uid, (int) $learnPathModuleId); } if (MultimediaHelper::isEmbeddableMedialink($assetPath)) { $moduleStartAssetPage = "showMediaLink.php?course={$course_code}&id=" . $assetPath; } else { $moduleStartAssetPage = $assetPath; } break;