Hi all,
i wrote a short patch, to select the default host, depending on the url.
If you have one roundcube installation for some domains, you have the
problem,
if you enters the login page, you can see another domain in the select
box as
the domain you wrote in the uri.
My patch checks the domain in the uri, and if there is the same domain
in the select box,
selects them as default.
Regards,
Jens
--- program/include/rcmail_template.inc 2007-09-19 08:48:18.000000000 +0200
+++ program/include/rcmail_template.inc 2007-10-21 16:26:53.000000000 +0200
@@ -822,8 +822,17 @@
foreach ($CONFIG['default_host'] as $key => $value)
{
+ if ( $key == $_SERVER["HTTP_HOST"])
+ $select_host->add($value, (is_numeric($key) ? $value : $key));
+ }
+
+ foreach ($CONFIG['default_host'] as $key => $value)
+ {
if (!is_array($value))
- $select_host->add($value, (is_numeric($key) ? $value : $key));
+ {
+ if ($key != $_SERVER["HTTP_HOST"] )
+ $select_host->add($value, (is_numeric($key) ? $value : $key));
+ }
else
{
unset($select_host);
_______________________________________________
List info: http://lists.roundcube.net/dev/