if (Util::removeParameter($login_screen, array('url', 'nocache')) != Util::removeParameter(Horde::url(Horde::selfUrl(), true), array('url', 'nocache'))) { if ($url_param) { $login_screen = Util::addParameter($login_screen, 'url', $url_param); } $login_screen = Util::addParameter($login_screen, 'frameset', Util::getFormData('frameset')); header('Location: ' . $login_screen); exit; } if ($browser->isMobile()) { require_once HORDE_LIBS . 'Horde/Mobile.php'; require HORDE_TEMPLATES . '/login/mobile.inc'; exit; } /* 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>'; } $title = _("Log in"); $notification->push('setFocus()', 'javascript'); if ($logout_reason && $conf['menu']['always']) { $notification->push('if (window.parent.frames.horde_menu) window.parent.frames.horde_menu.location.reload();', 'javascript'); } $reason = $auth->getLogoutReasonString(); /* Add some javascript. */ Horde::addScriptFile('enter_key_trap.js', 'horde');