OK I have done some digging since lodging a ticket with WHM/cPanel and being instructed that it is definitely a "horde" thing and normal behavior.
So...
I find the layout of horde in cPanel thus:
Code:
root@jupiter [~]# locate horde
/scripts/fullhordereset
/scripts/neomail2hordeaddrbook
/scripts/resethorde
/usr/local/cpanel/3rdparty/etc/horde
/usr/local/cpanel/3rdparty/etc/horde/php.ini
/usr/local/cpanel/base/horde
/usr/local/cpanel/base/frontend/x/images/horde.gif
/usr/local/cpanel/base/frontend/x3/branding/horde.gif
/usr/local/cpanel/base/frontend/x3/images/horde.gif
/usr/local/cpanel/base/frontend/x3mail/branding/horde.gif
/usr/local/cpanel/base/horde/COPYING
/usr/local/cpanel/base/horde/README
/usr/local/cpanel/base/horde/admin
/usr/local/cpanel/base/horde/config
/usr/local/cpanel/base/horde/docs
/usr/local/cpanel/base/horde/imp
/usr/local/cpanel/base/horde/index.php
...
and in index.php note that the language selection is driven by:
Code:
/* Build the <select> widget containing the available languages. */
if (!$prefs->isLocked('language')) {
$_SESSION['horde_language'] = NLS::select();
$langs = '<select name="new_lang" onchange="selectLang()">';
foreach ($nls['languages'] as $key => $val) {
$sel = ($key == $_SESSION['horde_language']) ? ' selected="selected"' : '';
$langs .= "<option value=\"$key\"$sel>$val</option>";
}
$langs .= '</select>';
}
It seems that the best way to disable this is to pre-set the isLocked('language')
This appears in config/prefs.php
Code:
// user language
$_prefs['language'] = array(
'value' => '',
'locked' => true,
'shared' => true,
'type' => 'select',
'escaped' => true,
'desc' => _("Select your preferred language:")
);
Changed locked to true from false.
This removes the selection drop down from the login window but still requires the user intervention at that point --> click "Log In"
I am still investigating the methods available to remove this login page which requires user intervention for those of us who want to presuppose a language for users (on login at least) and take advantage of the pre-auth provided by the webmail. cpanel redirection index...
Will