$url = is_null($request) ? $USER_DETAILS['url'] : $request; redirect($url); exit; } } include_once 'include/page_header.php'; if (isset($_REQUEST['message'])) { show_error_message($_REQUEST['message']); } if (!isset($sessionid) || $USER_DETAILS['alias'] == ZBX_GUEST_USER) { switch ($authentication_type) { case ZBX_AUTH_HTTP: break; case ZBX_AUTH_LDAP: case ZBX_AUTH_INTERNAL: default: // konqueror bug #138024; adding useless param(login=1) to the form's action path to avoid bug!! $frmLogin = new CFormTable('Login', 'index.php?login=1', 'post', 'multipart/form-data'); $frmLogin->setHelp('web.index.login'); $frmLogin->addVar('request', $request); $frmLogin->addRow('Login name', new CTextBox('name')); $frmLogin->addRow('Password', new CPassBox('password')); $frmLogin->addItemToBottomRow(new CButton('enter', 'Enter')); $frmLogin->show(false); setFocus($frmLogin->getName(), 'name'); $frmLogin->destroy(); } } else { echo '<div align="center" class="textcolorstyles">Welcome to ZABBIX! You are connected as <b>' . $USER_DETAILS['alias'] . '</b>.</div>'; } include_once 'include/page_footer.php';