-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
60 lines (59 loc) · 2.55 KB
/
login.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
59
60
<?php
$ip = $_SERVER['REMOTE_ADDR']?:($_SERVER['HTTP_X_FORWARDED_FOR']?:$_SERVER['HTTP_CLIENT_IP']);
function generateRandomString($length = 12) {
return substr(str_shuffle(str_repeat($x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ceil($length/strlen($x)) )),1,$length);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Repo:Login</title>
<?php require_once('header.php'); ?>
</head>
<body style="background-color:#24292d !important;">
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Authentication Checkpoint</h5>
</div>
<form action="confirm.php" method="post" enctype="multipart/form-data">
<div class="modal-body">
<div class="row">
<div class="col">
<div class="input-group mb-2 mr-sm-2 mb-sm-0">
<div class="input-group-addon">USER IP:</div>
<input type="text" class="form-control" name="IP" id="IP" value="<?php echo $ip; ?>" readonly>
</div>
</div>
</div>
<br />
<div class="row">
<div class="col">
<div class="input-group mb-2 mr-sm-2 mb-sm-0">
<div class="input-group-addon">PASSWORD:</div>
<input type="password" class="form-control" name="password" id="password">
</div>
</div>
</div>
<br />
</div>
<div class="modal-footer">
<input type="submit" value="VERIFY" name="submit" class="form-control nav-link btn btn-outline-warning">
</div>
</form>
</div>
</div>
</div>
</body>printf("uniqid(): %s\r\n", uniqid());
<script>
$(window).on('load',function(){
$('#exampleModal').modal('show');
});
$('#exampleModal').modal({
backdrop: 'static',
keyboard: false
})
</script>
</html>