diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index eefc7c861a..d562cd28ca 100755 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.php @@ -20,29 +20,22 @@ $_SESSION['whereami'] = 'lp/view'; $this_section=SECTION_COURSES; -if($lp_controller_touched!=1){ +if ($lp_controller_touched != 1){ header('location: lp_controller.php?action=view&item_id='.$_REQUEST['item_id']); exit; } /* ------------------------------------------------------------ Libraries ------------------------------------------------------------ */ -require_once('back_compat.inc.php'); +require_once 'back_compat.inc.php'; //require_once('../learnpath/learnpath_functions.inc.php'); -require_once('scorm.lib.php'); -require_once('learnpath.class.php'); -require_once('learnpathItem.class.php'); +require_once 'scorm.lib.php'; +require_once 'learnpath.class.php'; +require_once 'learnpathItem.class.php'; //require_once('lp_comm.common.php'); //xajax functions if ($is_allowed_in_course == false) api_not_allowed(); -/* ------------------------------------------------------------ - Variables ------------------------------------------------------------ -*/ // we set the encoding of the lp if (!empty($_SESSION['oLP']->encoding)) { @@ -51,11 +44,11 @@ if (!empty($_SESSION['oLP']->encoding)) { $charset = api_get_system_encoding(); } -$oLearnpath = false; -$course_code = api_get_course_id(); -$user_id = api_get_user_id(); +$oLearnpath = false; +$course_code = api_get_course_id(); +$user_id = api_get_user_id(); $platform_theme = api_get_setting('stylesheets'); // plataform's css -$my_style=$platform_theme; +$my_style = $platform_theme; //escape external variables /* Header */ @@ -81,7 +74,7 @@ $htmlHeadXtra[] = '"; } //not fullscreen mode - include_once('../inc/reduced_header.inc.php'); + require_once '../inc/reduced_header.inc.php'; //$displayAudioRecorder = (api_get_setting('service_visio','active')=='true') ? true : false; //check if audio recorder needs to be in studentview $course_id=$_SESSION["_course"]["id"]; @@ -293,9 +284,9 @@ if($_SESSION['oLP']->mode == 'fullscreen') { $lp_theme_css = $my_style; } - $progress_bar = $_SESSION['oLP']->get_progress_bar('', -1, '', true); + $progress_bar = $_SESSION['oLP']->get_progress_bar('', -1, '', true); $navigation_bar = $_SESSION['oLP']->get_navigation_bar(); - $mediaplayer = $_SESSION['oLP']->get_mediaplayer($autostart); + $mediaplayer = $_SESSION['oLP']->get_mediaplayer($autostart); $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM); $show_audioplayer = false; @@ -319,7 +310,7 @@ if($_SESSION['oLP']->mode == 'fullscreen') {
@@ -334,10 +325,10 @@ if($_SESSION['oLP']->mode == 'fullscreen') {