function build($context = NULL) { $this->invalid_credentials = false; $this->Headers->append('Content-Type', 'text/html; charset=UTF-8'); $this->Html->setAttribute('lang', Symphony::lang()); $meta = $this->createElement('meta'); $this->insertNodeIntoHead($meta); $meta->setAttribute('http-equiv', 'Content-Type'); $meta->setAttribute('content', 'text/html; charset=UTF-8'); $this->insertNodeIntoHead($this->createStylesheetElement(ADMIN_URL . '/assets/css/peripheral.css')); parent::setTitle(__('%1$s – %2$s', array(__('Symphony'), __('Login')))); ## Build the form $this->Form = $this->createElement('form'); $this->Form->setAttribute('action', Administration::instance()->getCurrentPageURL()); $this->Form->setAttribute('method', 'POST'); $this->Form->setAttribute('class', 'panel'); $this->Body->appendChild($this->Form); $this->Form->appendChild($this->createElement('h1', __('Symphony'))); if ($context) { $this->_context = $context; } if (isset($_REQUEST['action'])) { $this->action(); } $this->view(); }