@@ -118,8 +118,11 @@ discard block |
||
118 | 118 | $time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id)); |
119 | 119 | $last_connection = Tracking :: get_last_connection_date($teacher_id); |
120 | 120 | |
121 | - if ($i%2 == 0) $class_tr = 'row_odd'; |
|
122 | - else $class_tr = 'row_even'; |
|
121 | + if ($i%2 == 0) { |
|
122 | + $class_tr = 'row_odd'; |
|
123 | + } else { |
|
124 | + $class_tr = 'row_even'; |
|
125 | + } |
|
123 | 126 | |
124 | 127 | $teachers_table .= ' |
125 | 128 | <tr class="'.$class_tr.'"> |
@@ -174,8 +177,11 @@ discard block |
||
174 | 177 | $username = $teacher['username']; |
175 | 178 | $time_on_platform = api_time_to_hms(Tracking :: get_time_spent_on_the_platform($teacher_id,true)); |
176 | 179 | |
177 | - if ($i%2 == 0) $class_tr = 'row_odd'; |
|
178 | - else $class_tr = 'row_even'; |
|
180 | + if ($i%2 == 0) { |
|
181 | + $class_tr = 'row_odd'; |
|
182 | + } else { |
|
183 | + $class_tr = 'row_even'; |
|
184 | + } |
|
179 | 185 | $teachers_table .= '<tr class="'.$class_tr.'"> |
180 | 186 | <td>'.api_get_person_name($firstname,$lastname).' ('.$username.')</td> |
181 | 187 | <td align="right">'.$time_on_platform.'</td> |
@@ -116,8 +116,11 @@ |
||
116 | 116 | |
117 | 117 | $count_courses_in_session = count(Tracking::get_courses_list_from_session($session_id)); |
118 | 118 | |
119 | - if ($i%2 == 0) $class_tr = 'row_odd'; |
|
120 | - else $class_tr = 'row_even'; |
|
119 | + if ($i%2 == 0) { |
|
120 | + $class_tr = 'row_odd'; |
|
121 | + } else { |
|
122 | + $class_tr = 'row_even'; |
|
123 | + } |
|
121 | 124 | |
122 | 125 | $sessions_table .= '<tr class="'.$class_tr.'"> |
123 | 126 | <td>'.$title.'</td> |
@@ -5,8 +5,12 @@ |
||
5 | 5 | * @author Pavel Vlasov |
6 | 6 | */ |
7 | 7 | |
8 | -if (!defined('DOKU_INC')) die(); |
|
9 | -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); |
|
8 | +if (!defined('DOKU_INC')) { |
|
9 | + die(); |
|
10 | +} |
|
11 | +if (!defined('DOKU_PLUGIN')) { |
|
12 | + define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); |
|
13 | +} |
|
10 | 14 | require_once (DOKU_PLUGIN . 'action.php'); |
11 | 15 | |
12 | 16 | class action_plugin_jcapture extends DokuWiki_Action_Plugin { |
@@ -5,7 +5,9 @@ |
||
5 | 5 | parse_str($HTTP_RAW_POST_DATA, $_POST); |
6 | 6 | } |
7 | 7 | |
8 | - if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
8 | + if(!defined('DOKU_INC')) { |
|
9 | + define('DOKU_INC',dirname(__FILE__).'/../../../'); |
|
10 | + } |
|
9 | 11 | require_once(DOKU_INC.'inc/init.php'); |
10 | 12 | require_once(DOKU_INC.'inc/common.php'); |
11 | 13 | require_once(DOKU_INC.'inc/pageutils.php'); |
@@ -123,8 +123,7 @@ discard block |
||
123 | 123 | if ($has_content) |
124 | 124 | { |
125 | 125 | echo '<div class="list">'; |
126 | - } |
|
127 | - else |
|
126 | + } else |
|
128 | 127 | { |
129 | 128 | echo '<div>'; |
130 | 129 | } |
@@ -132,8 +131,7 @@ discard block |
||
132 | 131 | if (RegisterCourseWidget::factory()->run()) |
133 | 132 | { |
134 | 133 | $result = true; |
135 | - } |
|
136 | - else |
|
134 | + } else |
|
137 | 135 | { |
138 | 136 | $result = $this->action_display(); |
139 | 137 | } |
@@ -337,8 +335,7 @@ discard block |
||
337 | 335 | if (api_is_anonymous()) |
338 | 336 | { |
339 | 337 | $course_fiter = 'visibility = ' . COURSE_VISIBILITY_OPEN_WORLD; |
340 | - } |
|
341 | - else |
|
338 | + } else |
|
342 | 339 | { |
343 | 340 | $course_fiter = 'visibility = ' . COURSE_VISIBILITY_OPEN_WORLD . ' OR '; |
344 | 341 | $course_fiter .= 'visibility = ' . COURSE_VISIBILITY_OPEN_PLATFORM . ' OR '; |
@@ -13,8 +13,9 @@ |
||
13 | 13 | /** |
14 | 14 | * Security checks |
15 | 15 | */ |
16 | -if (! isset($_SESSION['conditional_login']['uid'])) |
|
16 | +if (! isset($_SESSION['conditional_login']['uid'])) { |
|
17 | 17 | die("Not Authorised"); |
18 | +} |
|
18 | 19 | |
19 | 20 | if (isset($_POST['password'])) { |
20 | 21 | $u = api_get_user_info($_SESSION['conditional_login']['uid']); |
@@ -48,8 +48,9 @@ |
||
48 | 48 | ); |
49 | 49 | $lang_match = $chamilo_langs[get_preferred_language($available_langs)]; |
50 | 50 | // recover previous value ... |
51 | -if (isset($_SESSION['user_language_choice'])) |
|
51 | +if (isset($_SESSION['user_language_choice'])) { |
|
52 | 52 | $lang_match = $_SESSION['user_language_choice']; |
53 | +} |
|
53 | 54 | |
54 | 55 | // Chamilo parameter, on logout |
55 | 56 | if (isset($_REQUEST['language']) && !empty($_REQUEST['language']) && in_array($_REQUEST['language'], $chamilo_langs)) { |
@@ -45,8 +45,7 @@ |
||
45 | 45 | if (in_array(OPENID_NS_2_0 .'/signon', $xrds_current_service['types']) || |
46 | 46 | in_array(OPENID_NS_2_0 .'/server', $xrds_current_service['types'])) { |
47 | 47 | $xrds_current_service['version'] = 2; |
48 | - } |
|
49 | - elseif (in_array(OPENID_NS_1_1, $xrds_current_service['types']) || |
|
48 | + } elseif (in_array(OPENID_NS_1_1, $xrds_current_service['types']) || |
|
50 | 49 | in_array(OPENID_NS_1_0, $xrds_current_service['types'])) { |
51 | 50 | $xrds_current_service['version'] = 1; |
52 | 51 | } |
@@ -61,8 +61,9 @@ |
||
61 | 61 | */ |
62 | 62 | function _openid_is_xri($identifier) { |
63 | 63 | $firstchar = substr($identifier, 0, 1); |
64 | - if ($firstchar == "@" || $firstchar == "=") |
|
65 | - return TRUE; |
|
64 | + if ($firstchar == "@" || $firstchar == "=") { |
|
65 | + return TRUE; |
|
66 | + } |
|
66 | 67 | |
67 | 68 | if (stristr($identifier, 'xri://') !== FALSE) { |
68 | 69 | return TRUE; |