container->requestobj->getAttribute('route')) { echo $this->doLoginForm(); } else { $body = $this->container->responseobj->getBody(); $body->write($this->doLoginForm()); return $this->container->responseobj; } } public function doLoginForm($msg = '') { $this->misc->setNoDBConnection(true); $server_id = $this->container->requestobj->getQueryParam('server'); if (null === $server_id) { $this->prtrace('invalid server param'); return $this->lang['strinvalidserverparam']; } $login_html = $this->printHeader($this->headerTitle(), $this->scripts, false); $login_html .= $this->printBody(false); $login_html .= $this->printTrail('root', false); if (!empty($_POST)) { $vars = &$_POST; } else { $vars = &$_GET; } foreach ($_REQUEST as $key => $val) { if (false !== strpos($key, '?')) { $namexploded = explode('?', $key); $_REQUEST[$namexploded[1]] = htmlspecialchars($val); } } $server_info = $this->misc->getServerInfo($server_id); $title = sprintf($this->lang['strlogintitle'], $server_info['desc']); $printTitle = $this->printTitle($title, null, false); $login_html .= $printTitle; if (isset($msg)) { $login_html .= $this->printMsg($msg, false); } $login_html .= '
'; $login_html .= ''; // Output footer $login_html .= $this->printFooter(false); return $login_html; } }