forked from teamtbm/Password-Protected-Page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protectedpage.php
35 lines (35 loc) · 1.31 KB
/
protectedpage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
session_start();
if (!isset($_SESSION["authed"]) || $_SESSION["authed"] === false) {
header("location:auth.php");
exit(307);
}
?>
<!DOCTYPE html>
<html lang="en-GB">
<head>
<title> Protected Page - TBM Productions </title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Concert+One|Boogaloo">
<link rel="stylesheet" href="main.css">
</head>
<body>
<!-- Viedo Background -->
<video autoplay muted loop id="bgvideo">
<source src="lines.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<!-- Form with full screen fallback & opacity -->
<div class="background">
<div class="holder">
<div class="labels">
<h1> Welcome </h1>
<h3 style="font-family: arial;"> Welcome to the password protected page. You can access this page until you click logout or the browser session ends. </h3>
</div>
<div class="input-group">
<button onclick="window.location.replace('logout.php')"> Logout </button>
</div>
</div>
</div>
</body>
</html>