2026-10-04 17:50:19 +02:00
|
|
|
<?php
|
|
|
|
|
$pageTitle = 'Registrieren';
|
|
|
|
|
require __DIR__ . '/partials/header.php';
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<h1>Registrieren</h1>
|
|
|
|
|
|
2026-10-04 23:15:54 +02:00
|
|
|
<?php if (!empty($registrationClosed)): ?>
|
|
|
|
|
<p>Die Registrierung neuer Spieler ist derzeit geschlossen. Bitte wende dich an einen Administrator.</p>
|
|
|
|
|
<p><a href="/index.php?page=login">Zum Login</a></p>
|
|
|
|
|
<?php require __DIR__ . '/partials/footer.php'; return; ?>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2026-10-04 17:50:19 +02:00
|
|
|
<?php if (isset($error)): ?>
|
|
|
|
|
<p style="color: red;"><?php echo htmlspecialchars($error); ?></p>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.form-group {
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
}
|
|
|
|
|
.form-group label {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 200px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
.form-group button {
|
|
|
|
|
margin-left: calc(200px + 10px);
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<form action="/index.php?page=register" method="post">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="firstname">Vorname:</label>
|
|
|
|
|
<input type="text" id="firstname" name="firstname" value="<?php echo htmlspecialchars($_POST['firstname'] ?? ''); ?>" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="lastname">Nachname:</label>
|
|
|
|
|
<input type="text" id="lastname" name="lastname" value="<?php echo htmlspecialchars($_POST['lastname'] ?? ''); ?>" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="email">E-Mail:</label>
|
|
|
|
|
<input type="email" id="email" name="email" value="<?php echo htmlspecialchars($_POST['email'] ?? ''); ?>" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="password">Passwort:</label>
|
|
|
|
|
<input type="password" id="password" name="password" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="password_confirm">Passwort bestätigen:</label>
|
|
|
|
|
<input type="password" id="password_confirm" name="password_confirm" required>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<button type="submit">Registrieren</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
<?php require __DIR__ . '/partials/footer.php'; ?>
|