@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | //the plugin title |
13 | -$plugin_info['title'] = 'Add a button to login using CAS'; |
|
13 | +$plugin_info['title'] = 'Add a button to login using CAS'; |
|
14 | 14 | |
15 | 15 | //the comments that go with the plugin |
16 | 16 | $plugin_info['comment'] = "If CAS is activated, this plugin add a text and a button on the login page to login with CAS. Configure plugin to add title, comment and logo."; |
@@ -38,4 +38,4 @@ discard block |
||
38 | 38 | $plugin_info['settings_form'] = $form; |
39 | 39 | |
40 | 40 | //set the templates that are going to be used |
41 | -$plugin_info['templates'] = array('template.tpl'); |
|
41 | +$plugin_info['templates'] = array('template.tpl'); |
@@ -19,6 +19,6 @@ |
||
19 | 19 | { |
20 | 20 | $this->_user = CONFIG_OPENMEETINGS_USER; |
21 | 21 | $this->_pass = CONFIG_OPENMEETINGS_PASS; |
22 | - $this->_serverBaseUrl = CONFIG_OPENMEETINGS_SERVER_URL; |
|
22 | + $this->_serverBaseUrl = CONFIG_OPENMEETINGS_SERVER_URL; |
|
23 | 23 | } |
24 | 24 | } |
@@ -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'); |