-
Notifications
You must be signed in to change notification settings - Fork 1
/
error.php
59 lines (55 loc) · 1.48 KB
/
error.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
<?php
include 'includes/session.php';
include 'includes/dbConnect.php';
include 'includes/library.php';
?>
<!DOCTYPE html>
<html>
<?php
include 'includes/header.php';
?>
<head>
<link type="text/css" href="assets/css/error-page.css" rel="stylesheet">
</head>
<body>
<?php
include 'includes/navigationBar.php';
?>
<?php
if (isset($_GET['errorCode'])){
$errorCode = mysqli_real_escape_string($connection, $_GET['errorCode']);
}
?>
<div class="cover">
<div class="cover-image" style="background-image : url('assets/images/errorbg.jpg')"></div>
<div class="container error">
<div class="col-md-12 text-center text-inverse">
<h1>Oops...</h1>
</div>
<?php
if (isset($errorCode) && $errorCode == 'authError'){
echo '
<div class="col-md-12 text-center text-inverse">
<h3>Error: Access unauthorized.</h3>
<p>If you do not understand how this error happened, please contact us through the <a href="contactUs.php">contact us form</a>.</p>
<p>We will do our best to assist you!</p>
</div>
';
}
else {
echo '
<div class="col-md-12 text-center text-inverse">
<h3>Error: That\'s an unknown error!</h3>
<p>Please let us know when this error happened through the <a href="contactUs.php">contact us form</a>.</p>
<p>We will do our best to fix it!</p>
</div>
';
}
?>
</div>
</div>
<?php
include 'includes/footer.php';
?>
</body>
</html>