102 lines
5.2 KiB
PHP
102 lines
5.2 KiB
PHP
<?php /* Name: self-signup.php
|
|
Beschreibung: Selbstregistrierung - Nutzer kann sich eigenständig registrieren.
|
|
Admin erhält Mail + Inbox-Nachricht zur Freischaltung. */
|
|
|
|
if (session_status() == PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
require_once $_SERVER['DOCUMENT_ROOT'].'/intranet_repo/general_files/ini/parameters.php';
|
|
require_once $_SERVER['DOCUMENT_ROOT'].'/intranet_repo/general_files/ini/functions.php';
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de" dir="ltr">
|
|
<head>
|
|
<?php require_once $_SERVER['DOCUMENT_ROOT'].'/intranet_repo/projects/_central/php/html_head.php'; ?>
|
|
|
|
<script src="just-validate.js" defer></script>
|
|
<script src="validation.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<div class="login_panel">
|
|
|
|
<?php if (isset($_GET["error"])): ?>
|
|
<?php if ($_GET["error"] == 1): ?>
|
|
<div class="nak-toast nak-toast--error nak-toast--inline" id="nakToastErr">
|
|
<div class="nak-toast__icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="square" stroke-linejoin="miter"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg></div>
|
|
<span class="nak-toast__text">Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.</span>
|
|
</div>
|
|
<script>requestAnimationFrame(function(){document.getElementById('nakToastErr').classList.add('nak-toast--visible');});</script>
|
|
<?php elseif ($_GET["error"] == 2): ?>
|
|
<div class="nak-toast nak-toast--error nak-toast--inline" id="nakToastErr">
|
|
<div class="nak-toast__icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="square" stroke-linejoin="miter"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg></div>
|
|
<span class="nak-toast__text">Diese E-Mailadresse ist bereits registriert oder es liegt bereits eine Anfrage vor.</span>
|
|
</div>
|
|
<script>requestAnimationFrame(function(){document.getElementById('nakToastErr').classList.add('nak-toast--visible');});</script>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($_GET["success"]) && $_GET["success"] == 1): ?>
|
|
<div class="nak-toast nak-toast--success nak-toast--inline" id="nakToastOk">
|
|
<div class="nak-toast__icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="square" stroke-linejoin="miter"><path d="M20 6L9 17l-5-5"/></svg></div>
|
|
<span class="nak-toast__text">Ihre Registrierungsanfrage wurde gesendet. Sie erhalten eine Benachrichtigung, sobald Ihr Konto freigeschaltet wurde.</span>
|
|
</div>
|
|
<script>requestAnimationFrame(function(){document.getElementById('nakToastOk').classList.add('nak-toast--visible');});</script>
|
|
<?php endif; ?>
|
|
|
|
<div class="login_content">
|
|
<div class="nak-logo-link" style="display:flex;align-items:flex-end;gap:12px;text-decoration:none;margin-bottom:24px;">
|
|
<img src="/intranet_repo/projects/_central/img/nak-logo.svg" alt="NAK Logo" style="width:52px;height:52px;flex-shrink:0;">
|
|
<div style="display:flex;flex-direction:column;justify-content:flex-end;line-height:1.2;">
|
|
<div style="font-family:var(--font-primary);font-weight:500;font-size:0.875rem;color:var(--gray-900);white-space:nowrap;">Neuapostolische Kirche</div>
|
|
<div style="font-family:var(--font-primary);font-weight:300;font-size:0.75rem;color:var(--gray-600);white-space:nowrap;">Berlin-Reinickendorf</div>
|
|
</div>
|
|
</div>
|
|
<h2>Registrierung beantragen</h2>
|
|
<h3 class="no_margins" align="center">Ihr Antrag wird von einem Administrator geprüft und freigeschaltet.</h3>
|
|
|
|
<form action="self-signup-process.php" method="post" id="signup" novalidate>
|
|
<label for="first_name"><br>Vorname</label>
|
|
<div class="item">
|
|
<input class="login_field" type="text" id="first_name" name="first_name" required>
|
|
</div>
|
|
|
|
<label for="last_name">Nachname</label>
|
|
<div class="item">
|
|
<input class="login_field" type="text" id="last_name" name="last_name" required>
|
|
</div>
|
|
|
|
<label for="email">E-Mailadresse</label>
|
|
<div class="item">
|
|
<input class="login_field" type="email" id="email" name="email" required>
|
|
</div>
|
|
|
|
<label for="password">Passwort</label>
|
|
<div class="item">
|
|
<input class="login_field" type="password" id="password" name="password" required>
|
|
</div>
|
|
|
|
<label for="password_confirmation">Passwort wiederholen</label>
|
|
<div class="item">
|
|
<input class="login_field" type="password" id="password_confirmation" name="password_confirmation" required>
|
|
</div>
|
|
|
|
<input class="login_button" type="submit" value="Registrierung beantragen">
|
|
</form>
|
|
<div class="small_text" align="center">
|
|
Sie haben bereits einen Account?
|
|
<br>
|
|
<a href="login.php">Anmelden</a>
|
|
<br><br>
|
|
Sie wurden bereits vom Admin vorregistriert?
|
|
<br>
|
|
<a href="signup.php">Direkt registrieren</a>
|
|
</div>
|
|
</div><!-- EOD: login_content -->
|
|
</div><!-- EOD: login_panel -->
|
|
|
|
<?php require_once $_SERVER['DOCUMENT_ROOT'].'/intranet_repo/projects/_central/php/footer.php'; ?>
|
|
|
|
</body>
|
|
</html>
|