0) error_log('New LP - Included learnpath',0); require_once('../newscorm/learnpathItem.class.php'); if($debug>0) error_log('New LP - Included learnpathItem',0); require_once('../newscorm/scorm.class.php'); if($debug>0) error_log('New LP - Included scorm',0); require_once('../newscorm/scormItem.class.php'); if($debug>0) error_log('New LP - Included scormItem',0); require_once('../newscorm/aicc.class.php'); if($debug>0) error_log('New LP - Included aicc',0); require_once('../newscorm/aiccItem.class.php'); if($debug>0) error_log('New LP - Included aiccItem',0); require("../../main/inc/global.inc.php"); require_once('get_translation.lib.php'); api_block_anonymous_users(); //$confkey = "0123456789abcdef0123456789abcdef"; $confkey = api_get_setting('service_visio','visio_pass'); $challenge = api_generate_password(32); //generate a 32 characters-long challenge key require_once (api_get_path(LIBRARY_PATH)."course.lib.php"); printf (''); printf(''); printf(''); foreach ($_SESSION['_course'] as $key => $val) printf('<%s>%s',$key,utf8_encode($val),$key); printf(''); printf(''); foreach ($_SESSION['_user'] as $key => $val) if ($key != "auth_source") { if (( $key == "lastName" || $key == "firstName" ) && strlen($val) == 0) $val = get_lang('Unknown'); printf('<%s>%s',$key,utf8_encode($val),$key); } printf('%s', session_id()); $isadmin =((CourseManager::get_user_in_course_status($_SESSION['_user']['user_id'], $_SESSION['_course']['sysCode']) == COURSEMANAGER)|| api_is_platform_admin() || api_is_course_tutor() || api_is_course_admin() || api_is_course_coach() ? "true" : "false"); printf('%s', md5($confkey.$challenge)); printf('%s', $challenge); printf('%s', $isadmin); printf('%s',($isadmin=='true' || $_SESSION["roomType"] == "conference")?'true':'false'); printf('%s',($isadmin=='true' || $_SESSION["roomType"] == "conference")?'true':'false'); printf(''); printf(''); printf(''.api_get_setting('service_visio','visio_host').''); printf(''.api_get_setting('service_visio','visio_port').''); printf(''); $path = preg_replace('/^([^:]*:\/\/)/','',api_get_path(WEB_PATH)); $path = str_replace('/','_',$path); printf(''); printf('%s', $path); printf('%s', $_SESSION['roomType']); // fixme remove + printf(''); printf(''); if(isset($_SESSION['oLP'])) { switch ($_SESSION['whereami']) { case 'lp/build' : $student_view = 'false'; break; default : $student_view = 'true'; break; } $document_id = $_SESSION['oLP']->current; } printf('%s',$student_view); printf('%s',$document_id); printf(''); printf(''); printf(get_language_file_as_xml($language_interface)); printf(''); printf(''); ?>