diff --git a/main/newscorm/audiorecorder.inc.php b/main/newscorm/audiorecorder.inc.php index 36a2fdc897..ee6b9d8012 100644 --- a/main/newscorm/audiorecorder.inc.php +++ b/main/newscorm/audiorecorder.inc.php @@ -13,8 +13,10 @@ $player = $audio_recorder_studentview =='true' ? 'player2.swf' : 'recorder2.swf' $server = api_get_setting('service_visio','visio_host'); $web_path = api_get_path(WEB_PATH); -$filename = str_replace('.','dot',substr($web_path,strpos($web_path,'://')+3,-1)).'-z-'.api_get_course_id().'-z-'.api_get_user_id().'-z-'.gmdate('YmdHis').'.flv';//using -z- as fields splitter -$path_to_lzx = $web_path.'conference/'.$player.'?server='.urlencode($server).'&postURI='.urlencode($web_path).'conference/testpost.php&filename='.$filename; +$post_uri = urlencode($web_path.'conference/audiopost.php?course_code='.api_get_course_id().'&user_id='.api_get_user_id().'&checker='.md5(api_get_course_id().api_get_user_id().date('Ymd'))); +//$filename = str_replace('.','dot',substr($web_path,strpos($web_path,'://')+3,-1)).'-z-'.api_get_course_id().'-z-'.api_get_user_id().'-z-'.gmdate('YmdHis').'.flv';//using -z- as fields splitter +$filename = gmdate('YmdHis').'-'.api_get_user_id().'.flv';//using -z- as fields splitter +$path_to_lzx = $web_path.'conference/'.$player.'?server='.urlencode($server).'&postURI='.$post_uri.'&filename='.$filename; if(!empty($path_to_lzx)){ diff --git a/main/newscorm/display_audiorecorder.php b/main/newscorm/display_audiorecorder.php index 77d39becf4..7ee896be2d 100644 --- a/main/newscorm/display_audiorecorder.php +++ b/main/newscorm/display_audiorecorder.php @@ -30,6 +30,7 @@ if(isset($_SESSION['lpobject'])) } } $charset = $_SESSION['oLP']->encoding; +$lp_id = $_SESSION['oLP']->get_id(); echo ' '; diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 774a374460..90d02cf0b6 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -6757,7 +6757,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') ob_start(); $audio_recorder_studentview = 'false'; $audio_recorder_item_id = $item_id; - if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){ + if(api_get_setting('service_visio','active')=='true'){ include('audiorecorder.inc.php'); } $return .= ob_get_contents();