-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdowntime.php
More file actions
43 lines (30 loc) · 726 Bytes
/
downtime.php
File metadata and controls
43 lines (30 loc) · 726 Bytes
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
<?php
require_once 'config.php';
if (! $GLOBALS['_SITE_DOWNTIME']) {
header('Location: index.php');
}
if (isset($GLOBALS['_SITE_DOWNTIME_MESSAGE'])) {
$siteDownMessage = $GLOBALS['_SITE_DOWNTIME_MESSAGE'];
} else {
$siteDownMessage = '';
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Downtime</title>
<?php include 'core/html-parts/header-elems.php' ?>
<meta charset="UTF-8">
</head>
<body>
<div>
<h1>Site is down</h1>
<h3>Check back later</h3>
<?php
if ($siteDownMessage) {
echo '<h4>' . $siteDownMessage . '</h4>';
}
?>
<div>
</body>
</html>