Files
ticket_system_nino/php/unlock.php
sraffauf e28948372b Added password lock to ticket system
Created php file to redirect to the ticket submit page when entering
right password
2026-01-22 17:09:45 +01:00

20 lines
315 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_lock.php");
exit;
} else {
header("Location: ../index.html?error=1");
exit;
}