</form> </div> <div id="registerFormular" style="display:none;"> <form action="login.php" method="post"> <fieldset> <legend onclick="show('log');"><?php _e('Create a new account'); ?> </legend> <?php if (!USER_CAN_REGISTER) { echo HTML::error(__('Registrations are currently disabled.')); } else { if (isset($_POST['new_username'])) { $Errors = AccountHandler::tryToRegisterNewUser(); if (is_array($Errors)) { foreach ($Errors as $Error) { if (is_array($Error)) { foreach (array_keys($Error) as $FieldName) { FormularField::setKeyAsFailed($FieldName); } } } } } FormularInput::setStandardSize(FormularInput::$SIZE_MIDDLE); $Field = new FormularInput('new_username', __('Username')); $Field->setLayout(FormularFieldset::$LAYOUT_FIELD_W100); $Field->setUnit(FormularUnit::$USER); $Field->display();