Hello all,
Here is the plugin and default config (rename it to config.inc.php). See attached files.
Pedro
Pedro R. Benito da Rocha escribiĆ³:
Hello all,
I noticed that if default_host is set RC only accepts those hosts, but the side effect is that the login form hides or shows the Server dialog. This is ok for most installations, but plugins can't disable this behavior, also custom templates.
The only way to modify this is modifying the code (file program/include/rcube_template.php, about line 1028 in 0.3-stable). It could be nice to manage the standard fields of login form in order to customize more from templates and/or plugins.
In some cases assign a username or a host could be necessary (log from web portals for example, where only password could be needed).
I have done this way: --- rcube_template.php 2009-09-10 09:15:03.377446000 +0200 +++ rcube_template-orig.php 2009-09-10 09:18:11.329532000 +0200 @@ -1026,5 +1026,5 @@ } }
else if (empty($default_host) &&
(($this->config['show_dialog']['host'] == true))) {
else if (empty($default_host)) { $input_host = new html_inputfield(array('name' => '_host',
'id' => 'rcmloginhost', 'size' => 30)); }
New config option 'show_dialog' is used.
Pedro