forked from dankert/openrat-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
76 lines (61 loc) · 1.75 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
<?php
// Excecuting the CMS user interface (UI)
require('modules/cms-ui/require.php');
use cms_ui\UI;
try {
UI::execute();
} catch (Exception $e) {
if (!headers_sent())
{
header('HTTP/1.0 500 Internal Server Error');
header('Content-Security-Policy: style-src: inline;');
}
?><!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"/>
<title>Service currently unavailable</title>
<style type="text/css">
header, main {
display: block
}
body {
width: 100%;
height: 100%;
background-color: rgba(13,8,5,0.58);
color: white;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 1.4;
font-size: 1.5em;
text-align: center;
}
pre {
margin:10%;
width: 80%;
overflow: visible;
height: 40%;
color: silver;
text-align: left;
font-size: 0.6rem;
}
h1 {
font-size: 2em;
}
</style>
</head>
<body>
<header>
<h1>Sorry, <?php echo defined('OR_TITLE')?OR_TITLE:'our service' ?> is currently unavailable.</h1>
</header>
<main>
<p>Something went terribly wrong.</p>
<?php // Display exceptions only in development mode, because the may contain sensitive internal information like passwords.
if (!defined('DEVELOPMENT') || DEVELOPMENT ) { ?>
<pre><?php echo $e->__toString(); ?></pre>
<?php } ?>
</main>
</body>
</html><?php
}