Added password lock to ticket system

Created php file to redirect to the ticket submit page when entering
right password
This commit is contained in:
sraffauf
2026-01-22 17:09:45 +01:00
parent 5b2fcb5586
commit e28948372b
2 changed files with 20 additions and 1 deletions

19
php/unlock.php Normal file
View File

@@ -0,0 +1,19 @@
<?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;
}