@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | global $_configuration; |
50 | 50 | $this->name = 'C'.api_get_real_course_id().'-'.api_get_session_id(); |
51 | 51 | $accessUrl = api_get_access_url($_configuration['access_url']); |
52 | - $this->externalRoomType = substr($accessUrl['url'], strpos($accessUrl['url'],'://')+3,-1); |
|
52 | + $this->externalRoomType = substr($accessUrl['url'], strpos($accessUrl['url'], '://') + 3, -1); |
|
53 | 53 | if (strcmp($this->externalRoomType, 'localhost') == 0) { |
54 | - $this->externalRoomType = substr(api_get_path(WEB_PATH), strpos(api_get_path(WEB_PATH),'://')+3, -1); |
|
54 | + $this->externalRoomType = substr(api_get_path(WEB_PATH), strpos(api_get_path(WEB_PATH), '://') + 3, -1); |
|
55 | 55 | } |
56 | 56 | $this->externalRoomType = 'chamilolms.'.$this->externalRoomType; |
57 | 57 | } |
@@ -110,6 +110,6 @@ discard block |
||
110 | 110 | if (!isset($this->$attribute)) { |
111 | 111 | return $voidReturn; |
112 | 112 | } |
113 | - return $this->$attribute?'true':'false'; |
|
113 | + return $this->$attribute ? 'true' : 'false'; |
|
114 | 114 | } |
115 | 115 | } |
@@ -75,14 +75,13 @@ |
||
75 | 75 | $trimmedKey = trim(CONFIG_SECURITY_API_KEY); |
76 | 76 | if (!empty($trimmedKey)) { |
77 | 77 | $message = array( |
78 | - "to" => array_key_exists("mobilePhoneNumber",$additionalParameters) ? |
|
79 | - $additionalParameters['mobilePhoneNumber'] : |
|
80 | - $this->getMobilePhoneNumberById($additionalParameters['userId']), |
|
78 | + "to" => array_key_exists("mobilePhoneNumber", $additionalParameters) ? |
|
79 | + $additionalParameters['mobilePhoneNumber'] : $this->getMobilePhoneNumberById($additionalParameters['userId']), |
|
81 | 80 | "message" => $this->getSms($additionalParameters) |
82 | 81 | ); |
83 | 82 | |
84 | 83 | if (!empty($message['message'])) { |
85 | - if(extension_loaded('curl')) { |
|
84 | + if (extension_loaded('curl')) { |
|
86 | 85 | $url = $this->hostAddress.'?username='. |
87 | 86 | $this->username.'&password='.$this->password.'&from='. |
88 | 87 | $this->from.'&to='.$message['to'].'&msg='.urlencode($message['message']); |
@@ -9,6 +9,6 @@ |
||
9 | 9 | * @author Laurent Opprecht |
10 | 10 | */ |
11 | 11 | |
12 | -require_once dirname(__FILE__) . '/lib/rss_plugin.class.php'; |
|
12 | +require_once dirname(__FILE__).'/lib/rss_plugin.class.php'; |
|
13 | 13 | |
14 | 14 | $plugin_info = RssPlugin::create()->get_info(); |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$strings['WelcomeToChamiloUserX'] = "Welcome to Chamilo %s!"; |
|
3 | +$strings['WelcomeToChamiloUserX'] = "Welcome to Chamilo %s!"; |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$strings['WelcomeToChamiloUserX'] = "Bienvenido a Chamilo %s!"; |
|
4 | 3 | \ No newline at end of file |
4 | +$strings['WelcomeToChamiloUserX'] = "Bienvenido a Chamilo %s!"; |
|
5 | 5 | \ No newline at end of file |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | // Show the Shibboleth button to login using SHIBBOLETH |
3 | 3 | |
4 | -$_template['show_message'] = false; |
|
4 | +$_template['show_message'] = false; |
|
5 | 5 | |
6 | 6 | if (api_is_anonymous()) { |
7 | - $_template['show_message'] = true; |
|
7 | + $_template['show_message'] = true; |
|
8 | 8 | // the default title |
9 | 9 | $button_label = "Connexion via Shibboleth"; |
10 | 10 | if (!empty($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_label'])) { |
11 | 11 | $button_label = api_htmlentities($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_label']); |
12 | 12 | } |
13 | 13 | // the comm |
14 | - $comm_label = api_htmlentities($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_comment']);; |
|
14 | + $comm_label = api_htmlentities($plugin_info['settings']['add_shibboleth_login_button_shibboleth_button_comment']); ; |
|
15 | 15 | // URL of the image |
16 | 16 | $url_label = $plugin_info['settings']['add_shibboleth_login_button_shibboleth_image_url']; |
17 | 17 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /* For license terms, see /license.txt */ |
3 | -require_once dirname(__FILE__) . '/config.php'; |
|
3 | +require_once dirname(__FILE__).'/config.php'; |
|
4 | 4 | |
5 | 5 | // Course legal |
6 | 6 | $enabled = api_get_plugin_setting('courselegal', 'tool_enable'); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $url = api_get_self().'?'.api_get_cidreq(); |
20 | 20 | |
21 | 21 | $action = isset($_GET['action']) ? $_GET['action'] : null; |
22 | -switch($action) { |
|
22 | +switch ($action) { |
|
23 | 23 | case 'resend': |
24 | 24 | if (isset($_GET['user_id'])) { |
25 | 25 | $legal->updateMailAgreementLink($_GET['user_id'], $courseId, $sessionId); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /* For license terms, see /license.txt */ |
3 | 3 | |
4 | -require_once dirname(__FILE__) . '/config.php'; |
|
4 | +require_once dirname(__FILE__).'/config.php'; |
|
5 | 5 | |
6 | 6 | if (!api_is_platform_admin()) { |
7 | 7 | die ('You must have admin permissions to install plugins'); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | if ($commissionsEnable == "true") { |
25 | 25 | |
26 | - $htmlHeadXtra[] = '<script type="text/javascript" src="' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/resources/js/commissions.js"></script>'; |
|
26 | + $htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_PLUGIN_PATH).'buycourses/resources/js/commissions.js"></script>'; |
|
27 | 27 | $defaultCommissions = []; |
28 | 28 | $commissions = ""; |
29 | 29 | |
@@ -170,9 +170,9 @@ discard block |
||
170 | 170 | . '<script>' |
171 | 171 | . '$(function(){' |
172 | 172 | . 'if ($("[name=\'commissions\']").val() === "") {' |
173 | - . '$("#panelSliders").html("<button id=\"setCommissionsButton\" class=\"btn btn-warning\">' . get_plugin_lang("SetCommissions", "BuyCoursesPlugin") . '</button>");' |
|
173 | + . '$("#panelSliders").html("<button id=\"setCommissionsButton\" class=\"btn btn-warning\">'.get_plugin_lang("SetCommissions", "BuyCoursesPlugin").'</button>");' |
|
174 | 174 | . '} else {' |
175 | - . 'showSliders(100, "default", "' . $commissions . '");' |
|
175 | + . 'showSliders(100, "default", "'.$commissions.'");' |
|
176 | 176 | . '}' |
177 | 177 | . '});' |
178 | 178 | |
@@ -226,14 +226,14 @@ discard block |
||
226 | 226 | |
227 | 227 | $platformCommission = $plugin->getPlatformCommission(); |
228 | 228 | |
229 | - $form->addHtml( '' |
|
229 | + $form->addHtml('' |
|
230 | 230 | . '<div class="form-group">' |
231 | 231 | . '<label for="sliders" class="col-sm-2 control-label">' |
232 | 232 | . get_plugin_lang('Commissions', 'BuyCoursesPlugin') |
233 | 233 | . '</label>' |
234 | 234 | . '<div class="col-sm-8">' |
235 | 235 | . Display::return_message( |
236 | - sprintf($plugin->get_lang('TheActualPlatformCommissionIsX'), $platformCommission['commission']. '%'), |
|
236 | + sprintf($plugin->get_lang('TheActualPlatformCommissionIsX'), $platformCommission['commission'].'%'), |
|
237 | 237 | 'info', |
238 | 238 | false |
239 | 239 | ) |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | $plugin->deleteItem($productItem['id']); |
293 | 293 | } |
294 | 294 | |
295 | - header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'buycourses/src/configuration.php'); |
|
295 | + header('Location: '.api_get_path(WEB_PLUGIN_PATH).'buycourses/src/configuration.php'); |
|
296 | 296 | exit; |
297 | 297 | } |
298 | 298 |