20 lines
315 B
PHP
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;
|
|
}
|