This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
208 lines (191 loc) · 8.43 KB
/
index.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?php
include_once 'inc/functions.php';
Functions::SecStart();
if(Functions::IsLoggedIn() == false) :
if(isset($_POST['email'], $_POST['p'])) :
?>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="TamperedLive Login">
<meta name="author" content="HaXzz">
<link rel="shortcut icon" href="img/favicon.png">
<title>TamperedLive - Login</title>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/core.css" rel="stylesheet" type="text/css">
<link href="css/icons.css" rel="stylesheet" type="text/css">
<link href="css/components.css" rel="stylesheet" type="text/css">
<link href="css/pages.css" rel="stylesheet" type="text/css">
<link href="css/menu.css" rel="stylesheet" type="text/css">
<link href="css/responsive.css" rel="stylesheet" type="text/css">
<link href="css/dashboard.css" rel="stylesheet" type="text/css" />
<link href="css/sweet-alert.css" rel="stylesheet" type="text/css" />
<script src="js/modernizr.min.js"></script>
<script src="js/app.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper-page">
<div class="text-center">
<a href="index.php" class="logo logo-lg"><i class="md md-equalizer"></i> <span>TamperedLive Login</span> </a>
</div>
<form class="form-horizontal m-t-20" autocomplete="off" action="inc/handler.php" method="post" name="login_form">
<input hidden="true" type="text" name="func" value="login"/>
<input hidden="true" type="text" name="email" value="<?php echo $_POST['email']; ?>"/>
<input hidden="true" type="text" name="p" value="<?php echo $_POST['p']; ?>"/>
<?php if(isset($_POST['remember'])) echo '<input hidden="true" type="text" name="remember" value="1"/>'; ?>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="text" required="" name="tfapin" placeholder="Two-Factor Authentication Pin">
<i class="md md-restore form-control-feedback l-h-34"></i>
</div>
</div>
<div class="form-group text-right m-t-20">
<div class="col-xs-12">
<button class="btn btn-primary btn-custom w-md waves-effect waves-light" type="submit">Login</button>
</div>
</div>
<div class="form-group m-t-30">
<div class="col-sm-7">
<a href="lostcode.php" class="text-muted"><i class="fa fa-lock m-r-5"></i> Can't retrieve code?</a>
</div>
<div class="col-sm-5 text-right">
<a href="register.php" class="text-muted">Register</a>
</div>
</div>
</form>
</div>
<script>
var resizefunc = [];
</script>
<!-- Main -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/detect.js"></script>
<script src="js/fastclick.js"></script>
<script src="js/jquery.blockUI.js"></script>
<script src="js/waves.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/sweet-alert.min.js"></script>
<!-- Counter Up -->
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<!-- circliful Chart -->
<script src="js/jquery.circliful.min.js"></script>
<script src="js/jquery.sparkline.min.js"></script>
<!-- Custom main Js -->
<script src="js/jquery.core.js"></script>
<script src="js/jquery.app.js"></script>
</body>
</html>
<?php else : ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="TamperedLive Login">
<meta name="author" content="HaXzz">
<link rel="shortcut icon" href="img/favicon.png">
<title>TamperedLive - Login</title>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/core.css" rel="stylesheet" type="text/css">
<link href="css/icons.css" rel="stylesheet" type="text/css">
<link href="css/components.css" rel="stylesheet" type="text/css">
<link href="css/pages.css" rel="stylesheet" type="text/css">
<link href="css/menu.css" rel="stylesheet" type="text/css">
<link href="css/responsive.css" rel="stylesheet" type="text/css">
<link href="css/dashboard.css" rel="stylesheet" type="text/css" />
<link href="css/sweet-alert.css" rel="stylesheet" type="text/css" />
<script src="js/modernizr.min.js"></script>
<script src="js/app.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper-page">
<div class="text-center">
<a href="index.php" class="logo logo-lg"><i class="md md-equalizer"></i> <span>TamperedLive Login</span> </a>
</div>
<form class="form-horizontal m-t-20" action="index.php" method="post" id="login" name="login_form">
<input hidden="true" type="text" name="func" value="login"/>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="text" required="" name="email" placeholder="Email">
<i class="md md-account-circle form-control-feedback l-h-34"></i>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="password" required="" id="password" name="password" placeholder="Password">
<i class="md md-vpn-key form-control-feedback l-h-34"></i>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<div class="checkbox checkbox-primary">
<input id="checkbox-signup" name="remember" type="checkbox">
<label for="checkbox-signup">Remember me </label>
</div>
</div>
</div>
<div class="form-group text-right m-t-20">
<div class="col-xs-12">
<button class="btn btn-primary btn-custom w-md waves-effect waves-light" onclick="passhash($('form#login'), $('#password'));" type="submit">Login</button>
</div>
</div>
<div class="form-group m-t-30">
<div class="col-sm-7">
<a href="recovery.php" class="text-muted"><i class="fa fa-lock m-r-5"></i> Forgot your password?</a>
</div>
<div class="col-sm-5 text-right">
<a href="register.php" class="text-muted">Register</a>
</div>
</div>
</form>
</div>
<script>
var resizefunc = [];
</script>
<!-- Main -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/detect.js"></script>
<script src="js/fastclick.js"></script>
<script src="js/jquery.blockUI.js"></script>
<script src="js/waves.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/sweet-alert.min.js"></script>
<!-- Counter Up -->
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<!-- circliful Chart -->
<script src="js/jquery.circliful.min.js"></script>
<script src="js/jquery.sparkline.min.js"></script>
<!-- Custom main Js -->
<script src="js/jquery.core.js"></script>
<script src="js/jquery.app.js"></script>
</body>
</html>
<?php
endif;
elseif (Functions::GetLoginLevel() >= 2):
header('Location: ../dashboard.php');
elseif (Functions::GetLoginLevel() >= 1):
header('Location: ../seller.php');
endif;
?>