Roundcube: mostrando o domínio na tela de login.

Adicionar no arquivo rcube_template.php

$dominio = getenv(‘HTTP_HOST’);
$dominio = str_replace(“webmail.”, “”, $_SERVER[HTTP_HOST]);
if (strcmp(strtolower(substr($dominio,0,5)),”webmail.”) == “”)
{
$dominio = substr($dominio,5);
}
if (strcmp(strtolower(substr($dominio,0,4)),”www.”) == “”)
{
$dominio = substr($dominio,4);
}
$textodominio = “@$dominio”;
$table->add(‘title’,html::label(‘textarea’,’Dominio’));
$table->add(‘textarea’,$textodominio);

 

entre:

$table->add(‘title’, html::label(‘rcmloginuser’, Q(rcube_label(‘username’))));
$table->add(‘input’, $input_user->show(get_input_value(‘_user’, RCUBE_INPUT_GPC)));

e:

$table->add(‘title’, html::label(‘rcmloginpwd’, Q(rcube_label(‘password’))));
$table->add(‘input’, $input_pass->show());

Deixe uma resposta

Or