title = "Registration"; $this->description = "Create a new account"; $this->icon = "user-plus"; } public function getAccountContent() { $user = $this->getDocument()->getUser(); if ($user->isLoggedIn()) { header(302); header("Location: /"); die("You are already logged in."); } $settings = $user->getConfiguration()->getSettings(); if (!$settings->isRegistrationAllowed()) { return $this->createErrorText( "Registration is not enabled on this website. If you are an administrator, goto /admin/settings, to enable the user registration" ); } return "

Please fill with your details

"; } }