-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
67 lines (47 loc) · 1.86 KB
/
Copy pathindex.php
File metadata and controls
67 lines (47 loc) · 1.86 KB
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
59
60
61
62
63
64
65
66
67
<?php
setcookie("details", "", time() - 3600, "/");
?>
<!DOCTYPE html>
<html>
<head >
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">-->
<title>page 1</title>
<link rel="stylesheet" type="text/css" href="css/page1.css">
</head>
<body >
<p align="right"><a href="admin_login.php">ADMIN</a></p>
<p id="p1" align="center">
<img id="logo" src="img/lg.png" align="center">
<h1 id="enterc" align="center"> grey hat republic bank</h1>
</p>
<div>
<div id="strip">
<marquee behavior="scroll" direction="left" id="m1">Enter your card and press button </marquee>
</div>
<form class="box" align="center" id="fpage1" >
<input type="button" name="Enter" value="ENTER" style="font-family: hacked" align="center" onclick="location.href='login.php'">
<input type="button" value="Feedback" style="font-family: hacked" align="center" onclick="location.href='feedback.php'">
</form>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$.ajax({
type: "GET",
url: 'http://192.168.137.29:5000/readRfid',
success: function (d) {
// console.log(data);
// d = JSON.parse(data);
if(d.success == 0){
id = d.id;
idd = btoa(id);
var date = new Date();
date.setTime(date.getTime() + (100*1000));
var expires = "expires="+ date.toUTCString();
document.cookie = `details=${idd};expires=${expires}; path=/`;
location.href = "login.php";
}
}
});
</script>
</body>
</html>