*/ /** ============================================================================== * Dokeos Metadata: index all course documents with PhpDig * * @package dokeos.metadata ============================================================================== */ // PRELIMS --------------------------------------------------------------------> $getpostvars = array('dmo'); require('md_funcs.php'); define('EID_TYPE', 'Document'); define('AFTER_DOT', strlen(EID_TYPE) + 1); define('OF_EID_TYPE', "eid LIKE '" . EID_TYPE . ".%'"); 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'); $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 && is_allowed_to_edit(); if (!$is_allowed_to_edit) give_up(get_lang('Denied')); $mdObj = new mdobject($_course, 0); $mdStore = new mdstore($is_allowed_to_edit); // create table if needed require(api_get_path(LIBRARY_PATH) . 'xmd.lib.php'); require(api_get_path(LIBRARY_PATH) . 'xht.lib.php'); require('md_phpdig.php'); $mdObj->mdo_add_breadcrump_nav(); // see 'md_' . EID_TYPE . '.php' $htmlHeadXtra[] = ' '; Display::display_header($nameTools); if (isset($dmo)) // for future use { echo '