Locket system behind session variable
Created php script to redirect back to index.html if system is not unlocked
This commit is contained in:
10
php/ticket_lock.php
Normal file
10
php/ticket_lock.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
if (!isset($_SESSION['unlocked'])) {
|
||||||
|
header("Location: ../index.html");
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
header("Location: ../pages/ticket_submit.html");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user