-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
58 lines (43 loc) · 1.4 KB
/
index.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
require_once 'inc/func.inc.php';
if(loggedin())
header('Location: add-timetable.php');
if(isset($_POST['pass'])){
$password_entered = strtolower(trim(str_replace(' ','',$_POST['pass'])));
if($password_entered == 'xxxx'){
$_SESSION['pass'] = $password_entered;
header("Location: add-timetable.php");
} else {
$error = 0;
}
}
include 'inc/public/meta.inc.php';
?>
</head>
<body>
<?php
include 'inc/public/header.inc.php';
?>
<div class="container" style="padding-top:50px">
<?php
if(isset($error)){
echo '<div class="alert alert-danger alert-dismissible" style="margin:10px 10px -10px 10px ;" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>YOU ARE NOT AUTHORIZED, GO BACK</div>';
}
?>
<div class="row">
<div class="col-md-6 col-lg-6 col-md-offset-3 col-lg-offset-3">
<form id="login-form" method="POST">
<label>You need to enter the secret code given by <a>Almighty</a></label>
<hr>
<div class="form-group">
<input name="pass" type="password" class="form-control input-lg not-round" placeholder="Password" required autofocus>
</div>
<button type="submit" class="btn btn-lg btn-success not-round">Login</button>
</form>
</div>
</div>
</div>
<script src="js/jquery-2.2.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>