isLoggedIn()) { header('Location: /'); } $errors = []; $success = false; if (isset($_POST['register'])) { if ($_POST['password'] !== $_POST['password2']) { array_push($errors, 'Passwörter sind nicht gleich'); } else { $register = $auth->register($_POST['username'], $_POST['email'], $_POST['password']); if (is_array($register)) { $errors = $register; } else { $success = true; } } } ?> Register - <?= (defined("SITE_TITLE")) ? SITE_TITLE : 'A Bloggr Site' ?>

Login

$value): ?>
Account erstellt!
'; } else { ?>