-
Notifications
You must be signed in to change notification settings - Fork 0
/
login6.php
132 lines (102 loc) · 3.86 KB
/
login6.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
require 'static_classes/ErrorManager.php';
$mac=$_POST['mac'];
$ip=$_POST['ip'];
$username=$_POST['username'];
$linklogin=$_POST['link-login'];
$linkorig=$_POST['link-orig'];
$error=$_POST['error'];
$chapid=$_POST['chap-id'];
$chapchallenge=$_POST['chap-challenge'];
$linkloginonly=$_POST['link-login-only'];
$linkorigesc=$_POST['link-orig-esc'];
$macesc=$_POST['mac-esc'];
$error_msg = ErrorManager::get_error($error);
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="bootstrap-4.3.1-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style4.css">
<title>Wiber Hotspot</title>
</head>
<body onload="set_init();">
<div class="container">
<script>
function set_is_customer() {
radiobtn = document.getElementById("is_customer");
radiobtn.checked = true;
myform = document.getElementById('login');
myform.submit();
}
function set_is_not_customer() {
radiobtn = document.getElementById("is_customer");
myform = document.getElementById('login');
myform.submit();
radiobtn.checked = false;
}
function set_init() {
radiobtn = document.getElementById("is_customer");
radiobtn.checked = false;
}
</script>
<?php
if($error_msg){
echo <<<EOT
<div class="alert alert-danger" role="alert">
$error_msg
</div>
EOT;
}
?>
<div class="logo_frame">
<div class="container">
<div class="row justify-content-md-center">
<div class="col col-lg-2">
</div>
<div class="col-12 col-md-auto">
<a href="" ><img href="www.wiber.com" src="images/logo.png" class="img-responsive" alt="Some picture" height="60"></a>
</div>
<div class="col-12 col-md-auto">
<img src="images/lujan.png" class="img-responsive" alt="Some picture" height="100">
</div>
<div class="col col-lg-2">
</div>
</div>
</div>
</div>
</div>
<form <form name="login" id="login" action="form.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="macesc" value="<?php echo $macesc; ?>" />
<input type="hidden" name="linkloginonly" value="<?php echo $linkloginonly; ?>" />
<input type="hidden" name="linkorigesc" value="<?php echo $linkorigesc; ?>" />
<input type="hidden" name="linkorigesc" value="<?php echo $linkorigesc; ?>" />
<input type="hidden" name="linkorig" value="<?php echo $linkorig; ?>" />
<input type="hidden" name="chap-id" value="<?php echo $chapid; ?>" />
<input type="hidden" name="dst" value="<?php echo $linkorig; ?>" />
<input type="hidden" name="link" value="<?php echo $linkorig; ?>" />
<input type="hidden" name="popup" value="true" />
<input style="display:none" type="checkbox" id="is_customer" name="is_customer"/>
</form>
<div class="text-center">
<br>
<div class="row justify-content-center">
<div class="button-group">
<button onclick="set_is_customer()" class="btn btn-primary btn-lg btn-block">SOY cliente Wiber</button>
<button onclick="set_is_not_customer()" class="btn btn-primary btn-lg btn-block">NO soy cliente Wiber</button>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="jquery-3.5.1.min.js"</script>
<script src="bootstrap-4.3.1-dist/js/bootstrap.min.js"</script>
</body>
</html>