-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path500.php
More file actions
41 lines (41 loc) · 1.6 KB
/
500.php
File metadata and controls
41 lines (41 loc) · 1.6 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Error</title>
<link rel="stylesheet" media="screen" href="<?php echo $config['url_stylesheet'] ?>">
<link rel="stylesheet" media="screen" href="<?php echo $config['uri_stylesheets'] . $config['default_stylesheet'][0] ?>">
<script type="text/javascript">
var active_page = "error";
</script>
<script type="text/javascript">
var configRoot = "<?php echo $config['root'] ?>";
var inMod = <?php echo $mod ? 'true' : 'false' ?>;
var modRoot = "<?php echo $config['root'] . 'mod.php' ?>";
</script>
<script type="text/javascript" src="<?php echo $config['url_javascript'] ?>"></script>
</head>
<body>
<div class="ban" style="margin-top: 50px;">
<h2>Error</h2>
<p style="padding: 15px; font-size: 14px;">
<?php
if (isset($message) && $message) {
$clean_message = $message;
if (strpos($clean_message, "Stack trace:") !== false) {
$clean_message = substr($clean_message, 0, strpos($clean_message, "Stack trace:"));
}
echo htmlspecialchars($clean_message, ENT_QUOTES, 'UTF-8');
} else {
echo 'An error has occurred.';
}
?>
</p>
<p style="text-align: center; padding-bottom: 15px;">
<a href="<?php echo $config['root'] ?>">← Return to homepage</a>
</p>
</div>
</body>
</html>