-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpass.php
45 lines (39 loc) · 1.2 KB
/
pass.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
<?php
session_start();
$lpass = $_POST['password'];
if($lpass=='K31kmc'){
$_SESSION['slpass'] = $lpass;
$_SESSION['current_timestamp'] = time();
header("location: student/k31-1/index.php");
}elseif(($lpass=='kmcbd786')){
$_SESSION['lpass'] = $lpass;
$_SESSION['current_timestamp'] = time();
header("location: admin/k31-1/index.php");
// k31 foreigners
}elseif(($lpass=='kmcF.786')){
$_SESSION['lpass'] = $lpass;
$_SESSION['current_timestamp'] = time();
header("location: admin/k31-2/index.php");
}elseif(($lpass=='K-31kmcF')){
$_SESSION['slpass'] = $lpass;
$_SESSION['current_timestamp'] = time();
header("location: student/k31-2/index.php");
}else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Error</title>
<link rel="stylesheet" href="viewserrorstyle.css">
</head>
<body>
<center><h4 class="wrong">Wrong Password</h4></center>
<center><button onclick="window.history.back()" class="back">Click To Go Back</button></center>
</body>
</html>
<?php
}
?>