@@ -309,10 +309,10 @@ discard block |
||
309 | 309 | */ |
310 | 310 | function bigbluebuttonbn_bbb_view_create_meeting_data(&$bbbsession) { |
311 | 311 | $data = ['meetingID' => $bbbsession['meetingid'], |
312 | - 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
313 | - 'attendeePW' => $bbbsession['viewerPW'], |
|
314 | - 'moderatorPW' => $bbbsession['modPW'], |
|
315 | - 'logoutURL' => $bbbsession['logoutURL'], |
|
312 | + 'name' => bigbluebuttonbn_html2text($bbbsession['meetingname'], 64), |
|
313 | + 'attendeePW' => $bbbsession['viewerPW'], |
|
314 | + 'moderatorPW' => $bbbsession['modPW'], |
|
315 | + 'logoutURL' => $bbbsession['logoutURL'], |
|
316 | 316 | ]; |
317 | 317 | $data['record'] = bigbluebuttonbn_bbb_view_create_meeting_data_record($bbbsession['record']); |
318 | 318 | // Check if auto_start_record is enable. |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | '%duration%', |
335 | 335 | (string) $durationtime, |
336 | 336 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
337 | - ); |
|
337 | + ); |
|
338 | 338 | } |
339 | 339 | $voicebridge = intval($bbbsession['voicebridge']); |
340 | 340 | if ($voicebridge > 0 && $voicebridge < 79999) { |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
24 | 24 | */ |
25 | 25 | |
26 | -require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); |
|
27 | -require_once(dirname(__FILE__).'/locallib.php'); |
|
26 | +require_once(dirname(dirname(dirname(__FILE__))) . '/config.php'); |
|
27 | +require_once(dirname(__FILE__) . '/locallib.php'); |
|
28 | 28 | |
29 | 29 | global $SESSION; |
30 | 30 | |
@@ -70,23 +70,23 @@ discard block |
||
70 | 70 | if (is_null($serverversion)) { |
71 | 71 | if ($bbbsession['administrator']) { |
72 | 72 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
73 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
73 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
74 | 74 | exit; |
75 | 75 | } |
76 | 76 | if ($bbbsession['moderator']) { |
77 | 77 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
78 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
78 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
79 | 79 | exit; |
80 | 80 | } |
81 | 81 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
82 | - $CFG->wwwroot.'/course/view.php?id='.$bigbluebuttonbn->course); |
|
82 | + $CFG->wwwroot . '/course/view.php?id=' . $bigbluebuttonbn->course); |
|
83 | 83 | exit; |
84 | 84 | } |
85 | - $bbbsession['serverversion'] = (string) $serverversion; |
|
85 | + $bbbsession['serverversion'] = (string)$serverversion; |
|
86 | 86 | |
87 | 87 | // Operation URLs. |
88 | 88 | $bbbsession['bigbluebuttonbnURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $bbbsession['cm']->id; |
89 | - $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id='.$id . |
|
89 | + $bbbsession['logoutURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=logout&id=' . $id . |
|
90 | 90 | '&bn=' . $bbbsession['bigbluebuttonbn']->id; |
91 | 91 | $bbbsession['recordingReadyURL'] = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_broker.php?action=recording_' . |
92 | 92 | 'ready&bigbluebuttonbn=' . $bbbsession['bigbluebuttonbn']->id; |
@@ -114,8 +114,8 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | // Assign group default values. |
117 | - $bbbsession['meetingid'] .= '['.$bbbsession['group'].']'; |
|
118 | - $bbbsession['meetingname'] .= ' ('.$groupname.')'; |
|
117 | + $bbbsession['meetingid'] .= '[' . $bbbsession['group'] . ']'; |
|
118 | + $bbbsession['meetingname'] .= ' (' . $groupname . ')'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | // Initialize session variable used across views. |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | // If user is not administrator nor moderator (user is steudent) and waiting is required. |
182 | 182 | if (!$bbbsession['administrator'] && !$bbbsession['moderator'] && $bbbsession['wait']) { |
183 | - header('Location: '.$bbbsession['logoutURL']); |
|
183 | + header('Location: ' . $bbbsession['logoutURL']); |
|
184 | 184 | break; |
185 | 185 | } |
186 | 186 | // As the meeting doesn't exist, try to create it. |
@@ -194,16 +194,16 @@ discard block |
||
194 | 194 | // The server is unreachable. |
195 | 195 | if ($bbbsession['administrator']) { |
196 | 196 | print_error('view_error_unable_join', 'bigbluebuttonbn', |
197 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
197 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
198 | 198 | break; |
199 | 199 | } |
200 | 200 | if ($bbbsession['moderator']) { |
201 | 201 | print_error('view_error_unable_join_teacher', 'bigbluebuttonbn', |
202 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
202 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
203 | 203 | break; |
204 | 204 | } |
205 | 205 | print_error('view_error_unable_join_student', 'bigbluebuttonbn', |
206 | - $CFG->wwwroot.'/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
206 | + $CFG->wwwroot . '/admin/settings.php?section=modsettingbigbluebuttonbn'); |
|
207 | 207 | break; |
208 | 208 | } |
209 | 209 | if ($response['returncode'] == 'FAILED') { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_create'], $bigbluebuttonbn); |
225 | 225 | // Internal logger: Insert a record with the meeting created. |
226 | 226 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
227 | - $meta = '{"record":'.($bbbsession['record'] ? 'true' : 'false').'}'; |
|
227 | + $meta = '{"record":' . ($bbbsession['record'] ? 'true' : 'false') . '}'; |
|
228 | 228 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_CREATE, $overrides, $meta); |
229 | 229 | // Since the meeting is already running, we just join the session. |
230 | 230 | bigbluebuttonbn_bbb_view_join_meeting($bbbsession, $bigbluebuttonbn, $origin); |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
239 | 239 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_PLAYED, $overrides); |
240 | 240 | // Execute the redirect. |
241 | - header('Location: '.urldecode($href)); |
|
241 | + header('Location: ' . urldecode($href)); |
|
242 | 242 | break; |
243 | 243 | default: |
244 | 244 | bigbluebuttonbn_bbb_view_close_window(); |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | $data['welcome'] .= '<br><br>'; |
333 | 333 | $data['welcome'] .= str_replace( |
334 | 334 | '%duration%', |
335 | - (string) $durationtime, |
|
335 | + (string)$durationtime, |
|
336 | 336 | get_string('bbbdurationwarning', 'bigbluebuttonbn') |
337 | 337 | ); |
338 | 338 | } |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | $meetinginfo = bigbluebuttonbn_get_meeting_info($bbbsession['meetingid'], BIGBLUEBUTTONBN_UPDATE_CACHE); |
399 | 399 | if ($bbbsession['userlimit'] > 0 && intval($meetinginfo['participantCount']) >= $bbbsession['userlimit']) { |
400 | 400 | // No more users allowed to join. |
401 | - header('Location: '.$bbbsession['logoutURL']); |
|
401 | + header('Location: ' . $bbbsession['logoutURL']); |
|
402 | 402 | return; |
403 | 403 | } |
404 | 404 | // Build the URL. |
@@ -412,13 +412,13 @@ discard block |
||
412 | 412 | bigbluebuttonbn_event_log(\mod_bigbluebuttonbn\event\events::$events['meeting_join'], $bigbluebuttonbn); |
413 | 413 | // Internal logger: Instert a record with the meeting created. |
414 | 414 | $overrides = array('meetingid' => $bbbsession['meetingid']); |
415 | - $meta = '{"origin":'.$origin.'}'; |
|
415 | + $meta = '{"origin":' . $origin . '}'; |
|
416 | 416 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_JOIN, $overrides, $meta); |
417 | 417 | // Before executing the redirect, increment the number of participants. |
418 | 418 | bigbluebuttonbn_participant_joined($bbbsession['meetingid'], |
419 | 419 | ($bbbsession['administrator'] || $bbbsession['moderator'])); |
420 | 420 | // Execute the redirect. |
421 | - header('Location: '.$joinurl); |
|
421 | + header('Location: ' . $joinurl); |
|
422 | 422 | } |
423 | 423 | |
424 | 424 | /** |
@@ -430,13 +430,13 @@ discard block |
||
430 | 430 | */ |
431 | 431 | function bigbluebuttonbn_bbb_view_errors($serrors, $id) { |
432 | 432 | global $CFG, $OUTPUT; |
433 | - $errors = (array) json_decode(urldecode($serrors)); |
|
433 | + $errors = (array)json_decode(urldecode($serrors)); |
|
434 | 434 | $msgerrors = ''; |
435 | 435 | foreach ($errors as $error) { |
436 | - $msgerrors .= html_writer::tag('p', $error->{'message'}, array('class' => 'alert alert-danger'))."\n"; |
|
436 | + $msgerrors .= html_writer::tag('p', $error->{'message'}, array('class' => 'alert alert-danger')) . "\n"; |
|
437 | 437 | } |
438 | 438 | echo $OUTPUT->header(); |
439 | 439 | print_error('view_error_bigbluebutton', 'bigbluebuttonbn', |
440 | - $CFG->wwwroot.'/mod/bigbluebuttonbn/view.php?id='.$id, $msgerrors, $serrors); |
|
440 | + $CFG->wwwroot . '/mod/bigbluebuttonbn/view.php?id=' . $id, $msgerrors, $serrors); |
|
441 | 441 | echo $OUTPUT->footer(); |
442 | 442 | } |
@@ -24,9 +24,9 @@ discard block |
||
24 | 24 | * @author Darko Miletic (darko.miletic [at] gmail [dt] com) |
25 | 25 | */ |
26 | 26 | |
27 | -require(__DIR__.'/../../config.php'); |
|
28 | -require_once(__DIR__.'/locallib.php'); |
|
29 | -require_once(__DIR__.'/brokerlib.php'); |
|
27 | +require(__DIR__ . '/../../config.php'); |
|
28 | +require_once(__DIR__ . '/locallib.php'); |
|
29 | +require_once(__DIR__ . '/brokerlib.php'); |
|
30 | 30 | |
31 | 31 | use \Firebase\JWT\JWT; |
32 | 32 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $params = $_REQUEST; |
36 | 36 | |
37 | 37 | if (!isset($params['action']) || empty($params['action'])) { |
38 | - header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included'); |
|
38 | + header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included'); |
|
39 | 39 | return; |
40 | 40 | } |
41 | 41 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $error = bigbluebuttonbn_broker_validate_parameters($params); |
52 | 52 | if (!empty($error)) { |
53 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
53 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
54 | 54 | return; |
55 | 55 | } |
56 | 56 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | bigbluebuttonbn_broker_meeting_events($bigbluebuttonbn); |
72 | 72 | return; |
73 | 73 | } |
74 | - header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); |
|
74 | + header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist'); |
|
75 | 75 | } catch (Exception $e) { |
76 | - header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); |
|
76 | + header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage()); |
|
77 | 77 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | function bigbluebuttonbn_broker_recording_info_current($recording, $params) { |
209 | 209 | $callbackresponse['status'] = true; |
210 | 210 | $callbackresponse['found'] = true; |
211 | - $callbackresponse['published'] = (string) $recording['published']; |
|
211 | + $callbackresponse['published'] = (string)$recording['published']; |
|
212 | 212 | if (!isset($params['meta']) || empty($params['meta'])) { |
213 | 213 | return $callbackresponse; |
214 | 214 | } |
@@ -535,8 +535,8 @@ discard block |
||
535 | 535 | $decodedparameters = \Firebase\JWT\JWT::decode($params['signed_parameters'], |
536 | 536 | \mod_bigbluebuttonbn\locallib\config::get('shared_secret'), array('HS256')); |
537 | 537 | } catch (Exception $e) { |
538 | - $error = 'Caught exception: '.$e->getMessage(); |
|
539 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
538 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
539 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
540 | 540 | return; |
541 | 541 | } |
542 | 542 | // Validate that the bigbluebuttonbn activity corresponds to the meeting_id received. |
@@ -566,8 +566,8 @@ discard block |
||
566 | 566 | bigbluebuttonbn_log($bigbluebuttonbn, BIGBLUEBUTTON_LOG_EVENT_CALLBACK, $overrides, json_encode($meta)); |
567 | 567 | header('HTTP/1.0 202 Accepted'); |
568 | 568 | } catch (Exception $e) { |
569 | - $error = 'Caught exception: '.$e->getMessage(); |
|
570 | - header('HTTP/1.0 503 Service Unavailable. '.$error); |
|
569 | + $error = 'Caught exception: ' . $e->getMessage(); |
|
570 | + header('HTTP/1.0 503 Service Unavailable. ' . $error); |
|
571 | 571 | } |
572 | 572 | } |
573 | 573 | |
@@ -588,13 +588,13 @@ discard block |
||
588 | 588 | $importrecordings = $SESSION->bigbluebuttonbn_importrecordings; |
589 | 589 | if (!isset($importrecordings[$params['id']])) { |
590 | 590 | $error = "Recording {$params['id']} could not be found. It can not be imported"; |
591 | - header('HTTP/1.0 404 Not found. '.$error); |
|
591 | + header('HTTP/1.0 404 Not found. ' . $error); |
|
592 | 592 | return; |
593 | 593 | } |
594 | 594 | $callbackresponse = array('status' => true); |
595 | 595 | $importrecordings[$params['id']]['imported'] = true; |
596 | 596 | $overrides = array('meetingid' => $importrecordings[$params['id']]['meetingID']); |
597 | - $meta = '{"recording":'.json_encode($importrecordings[$params['id']]).'}'; |
|
597 | + $meta = '{"recording":' . json_encode($importrecordings[$params['id']]) . '}'; |
|
598 | 598 | bigbluebuttonbn_log($bbbsession['bigbluebuttonbn'], BIGBLUEBUTTONBN_LOG_EVENT_IMPORT, $overrides, $meta); |
599 | 599 | // Moodle event logger: Create an event for recording imported. |
600 | 600 | if (isset($bbbsession['bigbluebutton']) && isset($bbbsession['cm'])) { |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | $action = strtolower($params['action']); |
683 | 683 | $requiredparams = bigbluebuttonbn_broker_required_parameters(); |
684 | 684 | if (!array_key_exists($action, $requiredparams)) { |
685 | - return 'Action '.$params['action'].' can not be performed.'; |
|
685 | + return 'Action ' . $params['action'] . ' can not be performed.'; |
|
686 | 686 | } |
687 | 687 | return bigbluebuttonbn_broker_validate_parameters_message($params, $requiredparams[$action]); |
688 | 688 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public static function notification_process($bigbluebuttonbn, $action) { |
47 | 47 | global $USER; |
48 | 48 | // Prepare message. |
49 | - $msg = (object) array(); |
|
49 | + $msg = (object)array(); |
|
50 | 50 | // Build the message_body. |
51 | 51 | $msg->action = $action; |
52 | 52 | $msg->activity_type = ''; |
@@ -71,26 +71,26 @@ discard block |
||
71 | 71 | * @return string |
72 | 72 | */ |
73 | 73 | public static function notification_msg_html($msg) { |
74 | - $messagetext = '<p>'.$msg->activity_type.' "'.$msg->activity_title.'" '. |
|
75 | - get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn').' '.$msg->action.'.</p>'."\n"; |
|
76 | - $messagetext .= '<p><b>'.$msg->activity_title.'</b> '. |
|
77 | - get_string('email_body_notification_meeting_details', 'bigbluebuttonbn').':'."\n"; |
|
78 | - $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>'."\n"; |
|
79 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
80 | - get_string('email_body_notification_meeting_title', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
81 | - $messagetext .= $msg->activity_title.'</td></tr>'."\n"; |
|
82 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
83 | - get_string('email_body_notification_meeting_description', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
84 | - $messagetext .= $msg->activity_description.'</td></tr>'."\n"; |
|
85 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
86 | - get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
87 | - $messagetext .= $msg->activity_openingtime.'</td></tr>'."\n"; |
|
88 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'. |
|
89 | - get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
90 | - $messagetext .= $msg->activity_closingtime.'</td></tr>'."\n"; |
|
91 | - $messagetext .= '<tr><td style="font-weight:bold;color:#555;">'.$msg->action.' '. |
|
92 | - get_string('email_body_notification_meeting_by', 'bigbluebuttonbn').': </td><td>'."\n"; |
|
93 | - $messagetext .= $msg->activity_owner.'</td></tr></tbody></table></p>'."\n"; |
|
74 | + $messagetext = '<p>' . $msg->activity_type . ' "' . $msg->activity_title . '" ' . |
|
75 | + get_string('email_body_notification_meeting_has_been', 'bigbluebuttonbn') . ' ' . $msg->action . '.</p>' . "\n"; |
|
76 | + $messagetext .= '<p><b>' . $msg->activity_title . '</b> ' . |
|
77 | + get_string('email_body_notification_meeting_details', 'bigbluebuttonbn') . ':' . "\n"; |
|
78 | + $messagetext .= '<table border="0" style="margin: 5px 0 0 20px"><tbody>' . "\n"; |
|
79 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
80 | + get_string('email_body_notification_meeting_title', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
81 | + $messagetext .= $msg->activity_title . '</td></tr>' . "\n"; |
|
82 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
83 | + get_string('email_body_notification_meeting_description', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
84 | + $messagetext .= $msg->activity_description . '</td></tr>' . "\n"; |
|
85 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
86 | + get_string('email_body_notification_meeting_start_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
87 | + $messagetext .= $msg->activity_openingtime . '</td></tr>' . "\n"; |
|
88 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . |
|
89 | + get_string('email_body_notification_meeting_end_date', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
90 | + $messagetext .= $msg->activity_closingtime . '</td></tr>' . "\n"; |
|
91 | + $messagetext .= '<tr><td style="font-weight:bold;color:#555;">' . $msg->action . ' ' . |
|
92 | + get_string('email_body_notification_meeting_by', 'bigbluebuttonbn') . ': </td><td>' . "\n"; |
|
93 | + $messagetext .= $msg->activity_owner . '</td></tr></tbody></table></p>' . "\n"; |
|
94 | 94 | return $messagetext; |
95 | 95 | } |
96 | 96 | |
@@ -106,13 +106,13 @@ discard block |
||
106 | 106 | $coursemodinfo = \course_modinfo::instance($bigbluebuttonbn->course); |
107 | 107 | $course = $coursemodinfo->get_course($bigbluebuttonbn->course); |
108 | 108 | // Complete message. |
109 | - $msg = (object) array(); |
|
109 | + $msg = (object)array(); |
|
110 | 110 | $msg->user_name = fullname($sender); |
111 | 111 | $msg->user_email = $sender->email; |
112 | 112 | $msg->course_name = $course->fullname; |
113 | - $message .= '<p><hr/><br/>'.get_string('email_footer_sent_by', 'bigbluebuttonbn').' '. |
|
114 | - $msg->user_name.'('.$msg->user_email.') '; |
|
115 | - $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn').' '.$msg->course_name.'.</p>'; |
|
113 | + $message .= '<p><hr/><br/>' . get_string('email_footer_sent_by', 'bigbluebuttonbn') . ' ' . |
|
114 | + $msg->user_name . '(' . $msg->user_email . ') '; |
|
115 | + $message .= get_string('email_footer_sent_from', 'bigbluebuttonbn') . ' ' . $msg->course_name . '.</p>'; |
|
116 | 116 | // Process the message sending. |
117 | 117 | foreach (self::users_to_notify($bigbluebuttonbn->course) as $user) { |
118 | 118 | if ($user->id != $sender->id) { |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | * @author Jesus Federico (jesus [at] blindsidenetworks [dt] com) |
24 | 24 | */ |
25 | 25 | |
26 | -require(__DIR__.'/../../config.php'); |
|
27 | -require_once(__DIR__.'/locallib.php'); |
|
28 | -require_once(__DIR__.'/brokerlib.php'); |
|
26 | +require(__DIR__ . '/../../config.php'); |
|
27 | +require_once(__DIR__ . '/locallib.php'); |
|
28 | +require_once(__DIR__ . '/brokerlib.php'); |
|
29 | 29 | |
30 | 30 | global $PAGE, $USER, $CFG, $SESSION, $DB; |
31 | 31 | |
@@ -41,13 +41,13 @@ discard block |
||
41 | 41 | require_login(null, true); |
42 | 42 | |
43 | 43 | if (empty($params['action'])) { |
44 | - header('HTTP/1.0 400 Bad Request. Parameter ['.$params['action'].'] was not included'); |
|
44 | + header('HTTP/1.0 400 Bad Request. Parameter [' . $params['action'] . '] was not included'); |
|
45 | 45 | return; |
46 | 46 | } |
47 | 47 | |
48 | 48 | $error = bigbluebuttonbn_broker_validate_parameters($params); |
49 | 49 | if (!empty($error)) { |
50 | - header('HTTP/1.0 400 Bad Request. '.$error); |
|
50 | + header('HTTP/1.0 400 Bad Request. ' . $error); |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | echo $completionvalidate; |
127 | 127 | return; |
128 | 128 | } |
129 | - header('HTTP/1.0 400 Bad request. The action '. $a . ' doesn\'t exist'); |
|
129 | + header('HTTP/1.0 400 Bad request. The action ' . $a . ' doesn\'t exist'); |
|
130 | 130 | } catch (Exception $e) { |
131 | - header('HTTP/1.0 500 Internal Server Error. '.$e->getMessage()); |
|
131 | + header('HTTP/1.0 500 Internal Server Error. ' . $e->getMessage()); |
|
132 | 132 | } |