*/ /** * First, initialise the script */ // name of the language file which needs to be included // 'inc.php' is automatically appended to the file name $langFile = "document"; //the document file is loaded because most of the upload vocab relates to the document tool // global settings initialisation // also provides access to main api (inc/lib/main_api.lib.php) include("../inc/global.inc.php"); require_once(api_get_path(LIBRARY_PATH) . 'fileUpload.lib.php'); require_once(api_get_path(LIBRARY_PATH) . 'events.lib.inc.php'); require_once(api_get_path(LIBRARY_PATH) . 'document.lib.php'); $htmlHeadXtra[] = ''; $htmlHeadXtra[] = ''; if(isset($_POST['convert'])){ $cwdir = getcwd(); require('../newscorm/lp_upload.php'); if(isset($o_ppt)){ header('Location: ../newscorm/lp_controller.php?'.api_get_cidreq().'&action=build&lp_id='.$o_ppt->lp_id); } else { $errorMessage = get_lang('Ppt2lpError'); } } event_access_tool(TOOL_UPLOAD); $interbreadcrumb[]= array ("url"=>"../newscorm/lp_controller.php?action=list", "name"=> get_lang(TOOL_LEARNPATH)); $nameTools = get_lang("FileUpload"); Display :: display_header($nameTools); // check access permissions (edit permission is needed to add a document or a LP) $is_allowed_to_edit = api_is_allowed_to_edit(); if(!$is_allowed_to_edit){ api_not_allowed(); } ?>
'; if(!empty($errorMessage)){ Display::display_error_message($errorMessage); } echo '
'; echo '
'; echo '
'; echo '   

   '; echo '
'; echo '
'; /* ============================================================================== FOOTER ============================================================================== */ Display::display_footer(); ?>