-
Notifications
You must be signed in to change notification settings - Fork 0
/
login2.php
50 lines (43 loc) · 2.09 KB
/
login2.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
<?php
$mac=$_POST['mac'];
$ip=$_POST['ip'];
$username=$_POST['username'];
$linklogin=$_POST['link-login'];
$linkorig=$_POST['link-orig'];
$error=$_POST['error'];
?>
<html>
<body>
<h2>Logintest.php Test</h2>
Mac: <?php echo $mac ?><br>
IP: <?php echo $ip ?><br>
Username: <?php echo $username ?><br>
Link-login: <?php echo $linklogin ?><br>
Link-orig: <?php echo $linkorig ?><br>
Error: <?php echo $error ?><br>
<form id="loginForm" class="form-horizontal" role="form" action="insert.php" method="post">
<input type="hidden" name="ip_address" value="<?php echo $ip; ?>"/>
<input type="hidden" name="mac_address" value="<?php echo $mac; ?>"/>
<input type="hidden" name="popup" value="true"/>
<div class="form-group">
<label for="inputLogin" class="col-sm-2 control-label">Login</label>
<div class="col-sm-10">
<input type="text" class="form-control input-lg" id="inputLogin" name="username"
placeholder="Login" autofocus required>
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="text" class="form-control input-lg" id="inputPassword" name="document"
placeholder="document" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary btn-block btn-lg">OK</button>
</div>
</div>
</form>
</body>
</html>