Files
ticket_system_nino/php/unlock.php
sraffauf f055f8943f Added proper lock and favicon
Implemented not being able to go to ticket_submit if not unlocked. Also
added favicon to display in address bar (from csg-germering.de). Deleted
unnessecary files.
2026-01-28 15:49:54 +01:00

20 lines
317 B
PHP

<?php
session_start();
$pass = "test123";
$try = $_POST['password'] ?? '';
$unlocked = false;
if ($pass === $try) {
$unlocked = true;
}
if ($unlocked) {
$_SESSION['unlocked'] = true;
header("Location: ./ticket_submit.php");
exit;
} else {
header("Location: ../index.html?error=1");
exit;
}