Exemplo n.º 1
0
        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;
}
// end switch
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN''http://www.w3.org/TR/html4/frameset.dtd'>\n<html><head>";
// add the update frame if this is a SCORM module
if ($module->contentType == CTSCORM_ || $module->contentType == CTSCORMASSET_) {
    require_once "scormAPI.inc.php";
    echo "<frameset border='0' rows='0,56,*' frameborder='0'>\n\t\t<frame src='updateProgress.php?course={$course_code}' name='upFrame'>";
} else {
    echo "<frameset border='0' rows='85,*' frameborder='0'>";
}