-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path404.php
394 lines (306 loc) · 12.5 KB
/
404.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>404 || The ASP - Premium Version</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="starter-template.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"><span class="glyphicon glyphicon-book" aria-hidden="true"></span> The ASP - The Assignment Portal</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.php"><span class="glyphicon glyphicon-home" aria-hidden="true"></span> Home</a></li>
<li class="active"><a href="aboutasp.php"><span class="glyphicon glyphicon-star" aria-hidden="true"></span> About</a></li>
<li><a href="contact.php"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> Contact</a></li>
<!------------LOGIN SYSTEM-------------------->
<?php
if(isset($_SESSION['login_user'])){
echo"<!--";
}
if(isset($_COOKIE['auth'])&&isset($_COOKIE['PHPSESSID']))
{
echo"<!--";
}
?>
<li><a href="" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-user" aria-hidden="true"></span>
Login
</a>
</li>
<?php
if(isset($_SESSION['login_user'])){
echo"-->";
}
if(isset($_COOKIE['auth'])&&isset($_COOKIE['PHPSESSID']))
{
echo"-->";
}
?>
<?php
if(isset($_COOKIE['auth'])&&isset($_COOKIE['PHPSESSID']))
{
}
else
{
echo"<!--";
}
?>
<li class="pull-right"><a href="" data-toggle="dropdown">
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script src="js/pnglib.js"></script>
<script src="js/identicon.js"></script>
<script type="text/javascript">
var vip='<?php
echo md5($_COOKIE["auth"]);
?>';
data = new Identicon(vip, 420).toString();
document.write(
'<img alt="TheASP Avtaar" width=21 height=21 src="data:image/png;base64,' + data + '">'
);
</script>
<?php echo $_COOKIE["auth"]; ?> <span class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dlabel">
<a href="profile.php"><li style="background:#fff;padding:6px 6px 6px 6px;border-bottom:0px solid black;"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> My Profile</li></a>
<a href="settings.php"><li style="background:#fff;padding:6px 6px 6px 6px;border-bottom:0px solid black;"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> Change Password</li></a>
<a href="logout.php"><li style="background:#fff;padding:6px 6px 6px 6px;border-bottom:0px solid black;"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Logout</li></a>
</ul>
</li>
<?php
if(isset($_COOKIE['auth'])&&isset($_COOKIE['PHPSESSID']))
{
}
else
{
echo"-->";
}
?>
<!------------LOGIN SYSTEM-------------------->
<li><a href="" data-toggle="dropdown"><span class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span> More</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dlabel">
<a href="contact.php?newsletter=subscribe"> <li style="background:#fff;padding:6px 6px 6px 6px;border-bottom:0px solid black;"><span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span> News Letter</li></a>
<a href="faq.php"> <li style="background:#fff;padding:6px 6px 6px 6px;border-bottom:0px solid black;"><span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span> FAQ</li></a>
<a href="termsofuse.php"> <li style="background:#fff;padding:6px 6px 6px 6px;border-bottom:0px solid black;"><span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span> T&C</li></a>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<!--
<blockquote>
<p>Hey hi hello</p>
<footer>-ADMIN</footer>
</blockquote>-->
</div>
<div class="container">
<!----------LOGIN FORM DATA------------->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
Login</h4>
</div>
<div class="modal-body">
<!-------------MESSAGE ZONE----------->
<?php
if(isset($_GET['next']))
{
$next=$_GET['next'];
if($next=='LogIn'){
echo"
<div class='alert alert-success alert-dismissible fade in' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'>
<span aria-hidden='true'>×</span></button>You Have Been Successfully<strong> Registered </strong>
</div>
";
}
if($next=='invalidPass'){
echo"
<div class='alert alert-danger alert-dismissible fade in' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'>
<span aria-hidden='true'>×</span></button>Invalid<strong> Username / Password </strong>
</div>
";
}
if($next=='FPSuccess'){
echo"
<div class='alert alert-success alert-dismissible fade in' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'>
<span aria-hidden='true'>×</span></button>You <strong> Password </strong>has been successfully changed.
</div>
";
}
}
?>
<!----------------------------------->
<form method="post" action="login.php">
<div class="form-group">
<label for="username">Username</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
<input type="text" class="form-control" id="username" name="username" placeholder="Username" required>
</div>
</div>
<div class="form-group">
<label for="password">Password</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
</div></div>
</div>
<div class="modal-footer">. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<input class="btn btn-primary" data-toggle="modal" data-target="#myModal1" id="" value="Forgot Password">
<input class="btn btn-primary" type="submit" id="" value="Login">
</div>
</form>
</div>
</div>
</div>
<!--------------2------------>
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
Forgot Password</h4>
</div>
<div class="modal-body">
<?php
if(isset($_GET['next']))
{
$next=$_GET['next'];
if($next=='fpErr'){
echo"
<div class='alert alert-danger alert-dismissible fade in' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'>
<span aria-hidden='true'>×</span></button>The Details You Provided Were Incorrect,<br>Make Sure Minimum Password Length is 8,<br> Try Again Or Contact Us On
</div>
";
}
}
?>
<form action="forgotpass.php" method="post">
<div class="form-group">
<label for="exampleInputusername">E-mail</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
<input type="email" class="form-control" name="email" id="exampleInputusername" placeholder="E-Mail" required>
</div>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Security Question</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
<select name="question" class="form-control" required>
<option value="1">What is the name of your favourite actor? </option>
<option value="2">What is the name of your favourite book? </option>
<option value="3">What is the name of your best buddy? </option>
<option value="4">Which brand do you prefer to wear? </option>
<option value="5">What admires you the most? </option>
</select>
</div></div>
<div class="form-group">
<label for="exampleInputPassword1">Security Answer</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></div>
<input type="password" class="form-control" id="answer" name="answer" placeholder="Enter Your Answer Here..." required>
</div></div>
<div class="form-group">
<label for="exampleInputPassword1">Desired New Password</label>
<div class="input-group">
<div class="input-group-addon"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></div>
<input type="password" class="form-control" id="answer" name="newpassword" placeholder="Enter New Password Here" required>
</div></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<input class="btn btn-primary" type="submit" id="" value="Login">
</form>
</div>
</div>
</div>
</div>
<?php
if(isset($_GET['next']))
{
$next=$_GET['next'];
if($next=='LogIn'||$next=='invalidPass'||$next=='FPSuccess'){
echo"<script type='text/javascript'>
$(window).load(function(){
$('#myModal').modal('show');
});
</script>";
}
}
if(isset($_GET['next']))
{
$next=$_GET['next'];
if($next=='fpErr'){
echo"<script type='text/javascript'>
$(window).load(function(){
$('#myModal1').modal('show');
});
</script>";
}
}
?>
<!--------LOGIN FORM DATA------------->
<center><span style="color:red;background:#fff;"><noscript>
<span class="glyphicon glyphicon-alert" aria-hidden="true"></span><br>
JavaScript is disabled in your browser, Kindly Enable it to have a better experience using TheASP
Or Update your browser
</noscript></span></center>
<div class="row">
<br><br>
<div class="col-md-12">
<div class="regpage">
<center>
<h1>404 || Page Not Found<br/><br/></h1>
<hr>
<p>The Page You Requested Does Not Exists On Our Servers</p>
<p>Try Following Options
<li><a href="contact.php">Contact Us</a></li>
<li><a href="index.php">Go To Home Page</a></li>
<li><a href="http://www.facebook.com/theasp.rapl">Like Us On Facebook</a></li>
</p>
</center>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>