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
>   


-- 
------------------------------------------------------------------------
Pedro R. Benito da Rocha   -  Servicio de Informatica - Area de Sistemas
Universidad de Burgos (España) E-mail: [email protected]  Tel: +34 947258845
------------------------------------------------------------------------ 





 --- 8< --- detachments --- 8< ---
 The following attachments have been detached and are available for viewing.
  http://detached.gigo.com/rc/1l/9TBPbIYU/prblogin.php
  http://detached.gigo.com/rc/1l/9TBPbIYU/config.inc.php.dist
 Only click these links if you trust the sender, as well as this message.
 --- 8< --- detachments --- 8< ---

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to