forked from mautic/mautic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
offline.php
56 lines (49 loc) · 1.73 KB
/
offline.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
defined('MAUTIC_OFFLINE') or die('access denied');
// Get the URLs base path
$base = str_replace('index.php', '', $_SERVER['SCRIPT_NAME']);
// Determine if there is an asset prefix
$root = __DIR__;
include $root . '/app/config/paths.php';
$assetPrefix = $paths['asset_prefix'];
if (!empty($assetPrefix)) {
if (substr($assetPrefix, -1) == '/') {
$assetPrefix = substr($assetPrefix, 0, -1);
}
}
$assetBase = $assetPrefix . $base . $paths['assets'];
// Allow a custom error page
if (file_exists(__DIR__ . '/custom_offline.php')) {
include __DIR__ . '/custom_offline.php';
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<title>Site is offline</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="icon" type="image/x-icon" href="<?php echo $assetBase . '/images/favicon.ico'; ?>" />
<link rel="stylesheet" href="<?php echo $assetBase . '/css/libraries.css'; ?>" />
<link rel="stylesheet" href="<?php echo $assetBase . '/css/app.css'; ?>" />
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-offset-3 col-sm-6">
<div class="bg-white pa-lg text-center" style="margin-top:100px;">
<i class="fa fa-warning fa-5x"></i>
<h2><?php echo $message; ?></h2>
<?php if (!empty($submessage)): ?>
<h4 class="mt-15"><?php echo $submessage; ?></h4>
<?php endif; ?>
</div>
</div>
</div>
</div>
</body>
</html>