Neue öffentliche Seite page=datenschutz mit den Angaben zu Verantwortlichem, Datenarten, Zwecken, Empfängern und Löschfristen. Verlinkt im Footer. Die Registrierung verlangt jetzt die Bestätigung der Hinweise.
81 lines
3.4 KiB
PHP
81 lines
3.4 KiB
PHP
<?php
|
|
$pageTitle = 'Registrieren';
|
|
require __DIR__ . '/partials/header.php';
|
|
?>
|
|
|
|
<h1>Registrieren</h1>
|
|
|
|
<?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; ?>
|
|
|
|
<?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);
|
|
}
|
|
.form-hint {
|
|
margin: 0 0 1rem calc(200px + 10px);
|
|
color: var(--muted);
|
|
font-size: 0.9em;
|
|
}
|
|
</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="mobile">Handynummer:</label>
|
|
<input type="tel" id="mobile" name="mobile" value="<?php echo htmlspecialchars($_POST['mobile'] ?? ''); ?>" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="iban">IBAN (oder PayPal):</label>
|
|
<input type="text" id="iban" name="iban" maxlength="34" value="<?php echo htmlspecialchars($_POST['iban'] ?? ''); ?>">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="paypal">PayPal (oder IBAN):</label>
|
|
<input type="text" id="paypal" name="paypal" maxlength="255" placeholder="E-Mail oder PayPal.Me-Link" value="<?php echo htmlspecialchars($_POST['paypal'] ?? ''); ?>">
|
|
</div>
|
|
<p class="form-hint">Bitte mindestens eine Zahlungsmöglichkeit angeben: IBAN oder PayPal.</p>
|
|
<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">
|
|
<span style="display:inline-block; width:200px; text-align:right; margin-right:10px;">Datenschutz:</span>
|
|
<input type="checkbox" id="privacy" name="privacy" value="1" required <?php echo !empty($_POST['privacy']) ? 'checked' : ''; ?>>
|
|
<label for="privacy" style="display:inline; width:auto; text-align:left; margin:0;">Ich habe die <a href="/index.php?page=datenschutz" target="_blank" rel="noopener">Datenschutzhinweise</a> gelesen.</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<button type="submit">Registrieren</button>
|
|
</div>
|
|
</form>
|
|
|
|
<?php require __DIR__ . '/partials/footer.php'; ?>
|