require('md_funcs.php'); getpar('EID_TYPE', 'Entry Type'); // e.g. 'Document' or 'Scorm' define('TPLEN', strlen(EID_TYPE) + 1); require('md_' . strtolower(EID_TYPE) . '.php'); // name of the language file that needs to be included $language_file = 'md_' . strtolower(EID_TYPE); include('../inc/global.inc.php'); $this_section=SECTION_COURSES; $nameTools = get_lang('Tool'); ($nameTools && get_lang('Sorry')) or give_up( 'Language file ' . $language_file . " doesn't define 'Tool' and 'Sorry'"); $_course = api_get_course_info(); isset($_course) or give_up(get_lang('Sorry')); $is_allowed_to_edit = isset($_user['user_id']) && $is_courseMember && api_is_allowed_to_edit(); if (!$is_allowed_to_edit) give_up(get_lang('Denied')); $mdStore = new mdstore($is_allowed_to_edit); // create table if needed $mdObj = new mdobject($_course, 0); require(api_get_path(LIBRARY_PATH) . 'xmd.lib.php'); require(api_get_path(LIBRARY_PATH) . 'xht.lib.php'); $xhtDoc = $mdObj->mdo_define_htt(); $mdObj->mdo_add_breadcrump_nav(); // see 'md_' . EID_TYPE . '.php' Display::display_header($nameTools); // OPERATIONS -----------------------------------------------------------------> echo '