@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$_template['show_message'] = false; |
|
| 3 | +$_template['show_message'] = false; |
|
| 4 | 4 | |
| 5 | 5 | if (api_is_anonymous()) { |
| 6 | - $_template['show_message'] = true; |
|
| 6 | + $_template['show_message'] = true; |
|
| 7 | 7 | // the default title label |
| 8 | 8 | $label = "Connexion hors compte universitaire"; |
| 9 | 9 | if (!empty($plugin_info['settings']['formLogin_hide_unhide_label'])) { |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | //the plugin title |
| 13 | -$plugin_info['title'] = 'Hide/Unhide the Login/Password default form'; |
|
| 13 | +$plugin_info['title'] = 'Hide/Unhide the Login/Password default form'; |
|
| 14 | 14 | |
| 15 | 15 | //the comments that go with the plugin |
| 16 | 16 | $plugin_info['comment'] = "If you use another way of authentication than local, you may want to hide the Login/Password default Form to avoid users mistakes. This plugin replace the Login/Password form with a text that unhide the Login/Password form if you click on it."; |
@@ -31,4 +31,4 @@ discard block |
||
| 31 | 31 | $plugin_info['settings_form'] = $form; |
| 32 | 32 | |
| 33 | 33 | //set the templates that are going to be used |
| 34 | -$plugin_info['templates'] = array('template.tpl'); |
|
| 34 | +$plugin_info['templates'] = array('template.tpl'); |
|
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $data = $hook->getEventData(); |
| 30 | 30 | |
| 31 | 31 | $drupalDomain = CreateDrupalUser::create()->get('drupal_domain'); |
| 32 | - $drupalDomain = rtrim($drupalDomain, '/') . '/'; |
|
| 32 | + $drupalDomain = rtrim($drupalDomain, '/').'/'; |
|
| 33 | 33 | |
| 34 | 34 | if ($data['type'] === HOOK_EVENT_TYPE_POST) { |
| 35 | 35 | $return = $data['return']; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | 52 | $options = array( |
| 53 | - 'location' => $drupalDomain . 'sites/all/modules/chamilo/soap.php?wsdl', |
|
| 53 | + 'location' => $drupalDomain.'sites/all/modules/chamilo/soap.php?wsdl', |
|
| 54 | 54 | 'uri' => $drupalDomain |
| 55 | 55 | ); |
| 56 | 56 | |
@@ -5,4 +5,4 @@ |
||
| 5 | 5 | * @author Angel Fernando Quiroz Campos <[email protected]> |
| 6 | 6 | * @package chamilo.plugin.createDrupalUser |
| 7 | 7 | */ |
| 8 | -require_once __DIR__ . '/config.php'; |
|
| 8 | +require_once __DIR__.'/config.php'; |
|
@@ -6,4 +6,4 @@ |
||
| 6 | 6 | * @package chamilo.plugin.createDrupalUser |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -require_once api_get_path(SYS_PATH) . 'main/inc/global.inc.php'; |
|
| 9 | +require_once api_get_path(SYS_PATH).'main/inc/global.inc.php'; |
|
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | * @author Angel Fernando Quiroz Campos <[email protected]> |
| 6 | 6 | * @package chamilo.plugin.createDrupalUser |
| 7 | 7 | */ |
| 8 | -require_once __DIR__ . '/config.php'; |
|
| 8 | +require_once __DIR__.'/config.php'; |
|
| 9 | 9 | |
| 10 | 10 | CreateDrupalUser::create()->uninstall(); |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | * @author Angel Fernando Quiroz Campos <[email protected]> |
| 6 | 6 | * @package chamilo.plugin.createDrupalUser |
| 7 | 7 | */ |
| 8 | -require_once __DIR__ . '/config.php'; |
|
| 8 | +require_once __DIR__.'/config.php'; |
|
| 9 | 9 | |
| 10 | 10 | CreateDrupalUser::create()->install(); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | $form = new FormValidator('form'); |
| 36 | 36 | |
| 37 | - $renderer =& $form->defaultRenderer(); |
|
| 37 | + $renderer = & $form->defaultRenderer(); |
|
| 38 | 38 | $renderer->setFormTemplate('<form{attributes}><table border="0" cellpadding="5" cellspacing="0" width="100%">{content}</table></form>'); |
| 39 | 39 | $renderersetCustomElementTemplate->setCustomElementTemplate('<tr><td>{element}</td></tr>'); |
| 40 | 40 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $form2 = new FormValidator('form'); |
| 55 | 55 | |
| 56 | 56 | if (!empty($option2) && !empty($urlOption2)) { |
| 57 | - $renderer =& $form2->defaultRenderer(); |
|
| 57 | + $renderer = & $form2->defaultRenderer(); |
|
| 58 | 58 | $renderer->setHeaderTemplate(''); |
| 59 | 59 | $renderer->setFormTemplate('<form{attributes}><table border="0" cellpadding="5" cellspacing="0" width="100%">{content}</table></form>'); |
| 60 | 60 | $renderer->setCustomElementTemplate('<tr><td>{element}</td></tr>'); |
@@ -41,9 +41,9 @@ |
||
| 41 | 41 | $defaults['option1_url'] = api_get_plugin_setting('before_login', 'option1_url'); |
| 42 | 42 | $defaults['option2_url'] = api_get_plugin_setting('before_login', 'option2_url'); |
| 43 | 43 | |
| 44 | -$plugin_info['templates'] = array('template.tpl'); |
|
| 44 | +$plugin_info['templates'] = array('template.tpl'); |
|
| 45 | 45 | if (file_exists(__DIR__.'/custom.template.tpl')) { |
| 46 | - $plugin_info['templates'] = array( 'custom.template.tpl'); |
|
| 46 | + $plugin_info['templates'] = array('custom.template.tpl'); |
|
| 47 | 47 | } |
| 48 | 48 | $form->setDefaults($defaults); |
| 49 | 49 | |