-
- = htmlspecialchars($city['label'], ENT_QUOTES, 'UTF-8'); ?>
- = htmlspecialchars($city['weekday'], ENT_QUOTES, 'UTF-8'); ?> · = htmlspecialchars($city['date'], ENT_QUOTES, 'UTF-8'); ?>
-
-
- = htmlspecialchars($city['time'], ENT_QUOTES, 'UTF-8'); ?>
- = htmlspecialchars($city['offset'], ENT_QUOTES, 'UTF-8'); ?>
-
+
+
+
+ Hallo = htmlspecialchars($user['name']) ?>
+ Mein Profil
+
+ Admin
+
+ Logout
+
+ Login / Registrieren
+
+
+
+
+
Schritt 3 · Frontend Release
+
Finde deine Funky Liveband
+
GetYourBand bringt verifizierte Live-Acts mit Veranstalter:innen in der ganzen Schweiz zusammen. Mit Bewertungen,
+ moderner Suche und aktivierbarer Vermittlungsgebühr.
+
+ Bewertungen geprüft
+ PayPal = $settings['paypal_enabled'] === '1' ? 'aktiv' : 'optional' ?>
+ Service Fee = htmlspecialchars($settings['service_fee']) ?>%
+
+
+
+
+
+ Aktive Bands (= count($bands) ?>)
+
+
+
+ = htmlspecialchars($band['genre']) ?>
+ = htmlspecialchars($band['name']) ?>
+ Standort: = htmlspecialchars($band['city'] ?? '–') ?>
+ = htmlspecialchars($band['description']) ?>
+ ab = formatPrice((int) $band['price']) ?>
+
+ Bewertung: = $rating ?> ★
+
+
+
+ #= htmlspecialchars($tag) ?>
+
+
+
+ Band ansehen
+
+
+
+ Keine Bands gefunden – ändere deine Filter.
+
+
+
+
-
- TEMPORAL-LINSE
-
-
-
- = htmlspecialchars($moment['label'], ENT_QUOTES, 'UTF-8'); ?>
- = htmlspecialchars($moment['time'], ENT_QUOTES, 'UTF-8'); ?>
- = htmlspecialchars($moment['micro'], ENT_QUOTES, 'UTF-8'); ?>
- = htmlspecialchars($moment['iso'], ENT_QUOTES, 'UTF-8'); ?>
-
-
-
-
-
-
-
- Synchronisiert mit Serverzeit · Hypermodernität trifft Präzision auf = htmlspecialchars($now->format('d.m.Y'), ENT_QUOTES, 'UTF-8'); ?>.
-
-
-
+
+
Wir verwenden Cookies für Performance-Analysen. Mit Klick auf "Okay" akzeptierst du das.
+
Okay!
+
+
diff --git a/login.php b/login.php
new file mode 100644
index 0000000..377ee10
--- /dev/null
+++ b/login.php
@@ -0,0 +1,115 @@
+getMessage();
+ }
+ } elseif (isset($_POST['register'])) {
+ if ($_POST['password'] !== $_POST['password_confirm']) {
+ $error = 'Passwörter stimmen nicht überein.';
+ } else {
+ $result = register([
+ 'name' => trim((string) $_POST['name']),
+ 'email' => trim((string) $_POST['email']),
+ 'password' => $_POST['password'],
+ 'role' => $_POST['role'],
+ 'city' => trim((string) $_POST['city']),
+ 'band_name' => $_POST['band_name'] ?? null,
+ 'genre' => $_POST['genre'] ?? null,
+ ]);
+ $verificationLink = BASE_URL . '/verify-email.php?token=' . urlencode($result['token']);
+ sendEmail($_POST['email'], 'E-Mail bestätigen', 'Bitte bestätige dein Konto: ' . $verificationLink);
+ $message = 'Check deine Inbox – wir haben dir den Verifizierungslink geschickt: ' . htmlspecialchars($verificationLink);
+ }
+ }
+}
+?>
+
+
+
+
+
+
Login / Registrierung – = SITE_NAME ?>
+
+
+
+
+
+ = $message ?>
+ = htmlspecialchars($error) ?>
+
+
+
Login
+
+
+
+
Registrierung
+
+
+
+
+
+
diff --git a/profil.php b/profil.php
new file mode 100644
index 0000000..7724dcd
--- /dev/null
+++ b/profil.php
@@ -0,0 +1,90 @@
+prepare('SELECT * FROM bands WHERE user_id = :id');
+ $stmt->execute([':id' => $user['id']]);
+ $band = $stmt->fetch(PDO::FETCH_ASSOC);
+
+ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
+ $stmt = db()->prepare('UPDATE bands SET name = :name, city = :city, genre = :genre, price = :price, description = :description, style_tags = :tags WHERE id = :id');
+ $stmt->execute([
+ ':name' => $_POST['name'],
+ ':city' => $_POST['city'],
+ ':genre' => $_POST['genre'],
+ ':price' => (int) $_POST['price'],
+ ':description' => $_POST['description'],
+ ':tags' => $_POST['style_tags'],
+ ':id' => $band['id'],
+ ]);
+ $message = 'Bandprofil aktualisiert (wartet ggf. auf Freigabe).';
+ $band = findBand((int) $band['id']);
+ }
+}
+?>
+
+
+
+
+
Mein Bereich – = SITE_NAME ?>
+
+
+
+
+
+ = htmlspecialchars($message) ?>
+
+ Bandprofil
+
+
+ Du hast noch kein Bandprofil angelegt.
+
+
+
+ Meine Anfragen
+
+ Band Datum Status
+
+
+
+ = htmlspecialchars($bandName['name'] ?? 'Band #' . $request['band_id']) ?>
+ = htmlspecialchars($request['event_date']) ?>
+ = htmlspecialchars($request['status']) ?>
+
+
+
+
+
+
+
+
diff --git a/storage/.gitkeep b/storage/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/verify-email.php b/verify-email.php
new file mode 100644
index 0000000..085e896
--- /dev/null
+++ b/verify-email.php
@@ -0,0 +1,31 @@
+prepare('UPDATE users SET verified = 1, verification_token = NULL WHERE verification_token = :token');
+ $stmt->execute([':token' => $token]);
+ if ($stmt->rowCount() > 0) {
+ $message = 'Perfekt! Dein Account ist nun verifiziert. Du kannst dich einloggen.';
+ }
+}
+?>
+
+
+
+
+
Verifizierung – = SITE_NAME ?>
+
+
+
+
+
+
= htmlspecialchars($message) ?>
+
Zum Login
+
+
+
+