-
Notifications
You must be signed in to change notification settings - Fork 40
/
error.php
56 lines (53 loc) · 1.35 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
<?php
require_once('include/login/auth.php');
require_once('include/debug.php');
if(isset($_GET['id'])) {
$id = (int)$_GET['id'];
if ($id == 1) {
$message = "You don't have permission to view this component.";
}
elseif ($id == 2) {
$message = "You don't have permission to edit this component.";
}
elseif ($id == 3) {
$message = "Oh crap! Something broke...";
}
else {
$message = "";
}
}
if (empty($_GET['id'])) {
$message = 'Error!';
}
?>
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="include/style.css" media="screen"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="apple-touch-icon" href="img/apple.png" />
<title>Error - ecDB</title>
<?php include_once("include/analytics.php") ?>
</head>
<body>
<div id="wrapper">
<!-- Header -->
<?php include 'include/header.php'; ?>
<!-- END -->
<!-- Main menu -->
<?php include 'include/menu.php'; ?>
<!-- END -->
<!-- Main content -->
<div id="content">
<div class="message red">
<?php echo $message; ?>
</div>
</div>
<!-- END -->
<!-- Text outside the main content -->
<?php include 'include/footer.php'; ?>
<!-- END -->
</div>
</body>
</html>