Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: henrique araujo on January 10, 2015, 05:56:07 PM

Title: multi domains...other tips no work.
Post by: henrique araujo on January 10, 2015, 05:56:07 PM
sorry for open another topic, but the tips I found here that each domain has a different theme did not work.
someone could help me do this?
follow these tips below, but did not work.
each domain a theme, a login page without the need to enter the domain, @mydomain.com
Please thank this already.

$HOST = $_SERVER['HTTP_HOST'];
if ($HOST == 'webmail.mydomain.com'){
$rcmail_config['skin_path'] = "skins/$HOST/";
$rcmail_config['product_name'] = 'My Webmail';
}else{
$rcmail_config['skin_path'] = 'skins/webmail.anotherdomain.co/';
$rcmail_config['product_name'] = 'Another Webmail';
}
Title: Re: multi domains...other tips no work.
Post by: henrique araujo on January 11, 2015, 12:54:06 PM
after some hours... now work!
paste in the end main.inc.php

<?php

$rcmail_config = array();

$HOST = $_SERVER['HTTP_HOST'];
if ($HOST = 'mail.domain.com'){
$rcmail_config['skin_path'] = 'skins/$HOST/';
$rcmail_config['skin'] = 'domain';

$rcmail_config['product_name'] = '"Vinde a Mim Todos Os Cansados e Oprimidos e Eu Vos Aliviarei"';
$rcmail_config['username_domain'] = 'domain.com';
}else{
}
?>
Title: Re: multi domains...other tips no work.
Post by: henrique araujo on January 12, 2015, 02:23:05 PM
waiting...
skins is same for all domains, i try fix it!

Update....

now ok

<?php

$HOST = $_SERVER['HTTP_HOST'];
if ($HOST == 'mail.domain.com'){
$rcmail_config['skin'] = 'name skin';
$rcmail_config['product_name'] = '"Vinde a Mim Todos Os Cansados e Oprimidos e Eu Vos Aliviarei"';
$rcmail_config['username_domain'] = 'domain.com';
}else{
}
?>