@@ -538,17 +538,17 @@ discard block |
||
538 | 538 | if (isset($_REQUEST['activate_start_date_check']) && |
539 | 539 | $_REQUEST['activate_start_date_check'] == 1 |
540 | 540 | ) { |
541 | - $publicated_on = $_REQUEST['publicated_on']; |
|
541 | + $publicated_on = $_REQUEST['publicated_on']; |
|
542 | 542 | } else { |
543 | - $publicated_on = null; |
|
543 | + $publicated_on = null; |
|
544 | 544 | } |
545 | 545 | |
546 | 546 | if (isset($_REQUEST['activate_end_date_check']) && |
547 | 547 | $_REQUEST['activate_end_date_check'] == 1 |
548 | 548 | ) { |
549 | - $expired_on = $_REQUEST['expired_on']; |
|
549 | + $expired_on = $_REQUEST['expired_on']; |
|
550 | 550 | } else { |
551 | - $expired_on = null; |
|
551 | + $expired_on = null; |
|
552 | 552 | } |
553 | 553 | |
554 | 554 | $new_lp_id = learnpath::add_lp( |
@@ -937,9 +937,9 @@ discard block |
||
937 | 937 | $_SESSION['oLP']->setSubscribeUsers($_REQUEST['subscribe_users']); |
938 | 938 | |
939 | 939 | if (isset($_REQUEST['activate_start_date_check']) && $_REQUEST['activate_start_date_check'] == 1) { |
940 | - $publicated_on = $_REQUEST['publicated_on']; |
|
940 | + $publicated_on = $_REQUEST['publicated_on']; |
|
941 | 941 | } else { |
942 | - $publicated_on = null; |
|
942 | + $publicated_on = null; |
|
943 | 943 | } |
944 | 944 | |
945 | 945 | if (isset($_REQUEST['activate_end_date_check']) && $_REQUEST['activate_end_date_check'] == 1) { |
@@ -1151,7 +1151,7 @@ discard block |
||
1151 | 1151 | } elseif ($mode == 'embedded') { |
1152 | 1152 | $_SESSION['oLP']->mode = 'embedded'; |
1153 | 1153 | } elseif ($mode == 'embedframe') { |
1154 | - $_SESSION['oLP']->mode = 'embedframe'; |
|
1154 | + $_SESSION['oLP']->mode = 'embedframe'; |
|
1155 | 1155 | } elseif ($mode == 'impress') { |
1156 | 1156 | $_SESSION['oLP']->mode = 'impress'; |
1157 | 1157 | } |
@@ -1189,11 +1189,11 @@ discard block |
||
1189 | 1189 | require 'lp_list.php'; |
1190 | 1190 | break; |
1191 | 1191 | */ |
1192 | - case 'switch_attempt_mode': |
|
1193 | - if($debug>0) error_log('New LP - switch_reinit action triggered',0); |
|
1194 | - if(!$lp_found){ error_log('New LP - No learnpath given for switch',0); require 'lp_list.php'; } |
|
1195 | - $_SESSION['refresh'] = 1; |
|
1196 | - $_SESSION['oLP']->switch_attempt_mode(); |
|
1192 | + case 'switch_attempt_mode': |
|
1193 | + if($debug>0) error_log('New LP - switch_reinit action triggered',0); |
|
1194 | + if(!$lp_found){ error_log('New LP - No learnpath given for switch',0); require 'lp_list.php'; } |
|
1195 | + $_SESSION['refresh'] = 1; |
|
1196 | + $_SESSION['oLP']->switch_attempt_mode(); |
|
1197 | 1197 | require 'lp_list.php'; |
1198 | 1198 | break; |
1199 | 1199 | case 'switch_scorm_debug': |
@@ -58,11 +58,11 @@ |
||
58 | 58 | if (!empty($path_to_lzx)) { |
59 | 59 | $recorder_content = sprintf("<object type=\"application/x-shockwave-flash\" data=\"%s\" ". |
60 | 60 | "width='$width' height='$height'>". |
61 | - "<param name=\"movie\" value=\"%s\">". |
|
62 | - "<param name=\"quality\" value=\"high\">". |
|
63 | - "<param name=\"scale\" value=\"noscale\">". |
|
64 | - "<param name=\"salign\" value=\"LT\">". |
|
65 | - "<param name=\"menu\" value=\"false\"></object>", $path_to_lzx, $path_to_lzx); |
|
61 | + "<param name=\"movie\" value=\"%s\">". |
|
62 | + "<param name=\"quality\" value=\"high\">". |
|
63 | + "<param name=\"scale\" value=\"noscale\">". |
|
64 | + "<param name=\"salign\" value=\"LT\">". |
|
65 | + "<param name=\"menu\" value=\"false\"></object>", $path_to_lzx, $path_to_lzx); |
|
66 | 66 | if ($audio_recorder_studentview == 'false') { |
67 | 67 | echo '<script type="text/javascript"> |
68 | 68 | function show_audiorecorder() { |
@@ -458,8 +458,8 @@ |
||
458 | 458 | } else if(param == 'cmi.core.student_name'){ |
459 | 459 | // ---- cmi.core.student_name |
460 | 460 | <?php |
461 | - $who = addslashes($user['complete_name']); |
|
462 | - echo "result='$who';"; |
|
461 | + $who = addslashes($user['complete_name']); |
|
462 | + echo "result='$who';"; |
|
463 | 463 | ?> |
464 | 464 | } else if(param == 'cmi.core.lesson_location'){ |
465 | 465 | // ---- cmi.core.lesson_location |
@@ -13,11 +13,11 @@ |
||
13 | 13 | 'Accent', |
14 | 14 | 'Accenture', |
15 | 15 | 'ADLNet', |
16 | - 'Articulate', |
|
17 | - 'ATutor', |
|
18 | - 'Blackboard', |
|
19 | - 'Calfat', |
|
20 | - 'Captivate', |
|
16 | + 'Articulate', |
|
17 | + 'ATutor', |
|
18 | + 'Blackboard', |
|
19 | + 'Calfat', |
|
20 | + 'Captivate', |
|
21 | 21 | 'Chamilo', |
22 | 22 | 'Chamilo 2', |
23 | 23 | 'Claroline', |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | $myistring = substr($myistring, 1); |
85 | 85 | } |
86 | 86 | |
87 | - // Obtention des donnees d'objectifs |
|
88 | - $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE); |
|
87 | + // Obtention des donnees d'objectifs |
|
88 | + $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE); |
|
89 | 89 | $course_id = api_get_course_int_id(); |
90 | - $mylp_iv_id = $mylpi->db_item_view_id; |
|
90 | + $mylp_iv_id = $mylpi->db_item_view_id; |
|
91 | 91 | |
92 | 92 | $phpobjectives = array(); |
93 | 93 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $phpobjectives[] = $row; |
102 | 102 | } |
103 | 103 | } |
104 | - $myobjectives = json_encode($phpobjectives); |
|
104 | + $myobjectives = json_encode($phpobjectives); |
|
105 | 105 | |
106 | 106 | $return .= |
107 | 107 | "olms.score=".$myscore.";" . |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | // Using the resource linker as a tool for adding resources to the learning path. |
42 | 42 | if ($action == 'add' and $type == 'learnpathitem') { |
43 | - $htmlHeadXtra[] = "<script> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
43 | + $htmlHeadXtra[] = "<script> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
44 | 44 | } |
45 | 45 | if ((!$is_allowed_to_edit) || ($isStudentView)) { |
46 | 46 | error_log('New LP - User not authorized in lp_admin_view.php'); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | default: |
49 | 49 | //if($first_item->type == XML_ELEMENT_NODE) this is already check prior to the call to this function |
50 | 50 | foreach ($params as $a => $value) { |
51 | - switch ($a) { |
|
51 | + switch ($a) { |
|
52 | 52 | case 'system_id': |
53 | 53 | $this->identifier = Database::escape_string(strtolower($value)); |
54 | 54 | break; |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | case 'web_launch': |
83 | 83 | $this->parameters = Database::escape_string($value); |
84 | 84 | break; |
85 | - } |
|
86 | - } |
|
85 | + } |
|
86 | + } |
|
87 | 87 | |
88 | 88 | return true; |
89 | 89 | } |
@@ -38,14 +38,14 @@ discard block |
||
38 | 38 | //if ($first_item->type == XML_ELEMENT_NODE) this is already check prior to the call to this function. |
39 | 39 | $children = $element->childNodes; |
40 | 40 | foreach ($children as $child) { |
41 | - switch ($child->nodeType) { |
|
41 | + switch ($child->nodeType) { |
|
42 | 42 | case XML_ELEMENT_NODE: |
43 | 43 | switch ($child->tagName) { |
44 | 44 | case 'item': |
45 | 45 | $oItem = new scormItem('manifest', $child); |
46 | - if ($oItem->identifier != '') { |
|
46 | + if ($oItem->identifier != '') { |
|
47 | 47 | $this->items[$oItem->identifier] = $oItem; |
48 | - } |
|
48 | + } |
|
49 | 49 | break; |
50 | 50 | case 'metadata': |
51 | 51 | $this->metadata = new scormMetadata('manifest', $child); |
@@ -58,24 +58,24 @@ discard block |
||
58 | 58 | break; |
59 | 59 | } |
60 | 60 | break; |
61 | - case XML_TEXT_NODE: |
|
61 | + case XML_TEXT_NODE: |
|
62 | 62 | break; |
63 | - } |
|
63 | + } |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if ($element->hasAttributes()) { |
67 | - $attributes = $element->attributes; |
|
68 | - //$keep_href = ''; |
|
69 | - foreach ($attributes as $attrib) { |
|
70 | - switch ($attrib->name) { |
|
71 | - case 'identifier': |
|
67 | + $attributes = $element->attributes; |
|
68 | + //$keep_href = ''; |
|
69 | + foreach ($attributes as $attrib) { |
|
70 | + switch ($attrib->name) { |
|
71 | + case 'identifier': |
|
72 | 72 | $this->identifier = $attrib->value; |
73 | - break; |
|
74 | - case 'structure': |
|
73 | + break; |
|
74 | + case 'structure': |
|
75 | 75 | $this->structure = $attrib->value; |
76 | - break; |
|
77 | - } |
|
78 | - } |
|
76 | + break; |
|
77 | + } |
|
78 | + } |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | return true; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | // Using the resource linker as a tool for adding resources to the learning path. |
83 | 83 | if ($action == 'add' && $type == 'learnpathitem') { |
84 | - $htmlHeadXtra[] = "<script type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
84 | + $htmlHeadXtra[] = "<script type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
85 | 85 | } |
86 | 86 | if ((!$is_allowed_to_edit)) { |
87 | 87 | error_log('New LP - User not authorized in lp_add_item.php'); |