forked from geoffhumphrey/brewcompetitiononlineentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maintenance.php
78 lines (73 loc) · 2.92 KB
/
maintenance.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
77
78
<?php
/**
* Module: maintenance.php
* Description: This page displays if the site is in maintenance mode.
*
*/
require_once ('paths.php');
require_once (CONFIG.'bootstrap.php');
if (!MAINT) {
$redirect = prep_redirect_link($base_url);
$redirect_go_to = sprintf("Location: %s", $redirect);
header($redirect_go_to);
exit();
}
$competition_logo = "<img src=\"".$base_url."user_images/".$_SESSION['contestLogo']."\" class=\"bcoem-comp-logo img-responsive hidden-print center-block\" alt=\"Competition Logo\" title=\"Competition Logo\" />";
?>
<!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><?php echo $maintenance_text_001; ?></title>
<?php
if (CDN) include (INCLUDES.'load_cdn_libraries.inc.php');
else include (INCLUDES.'load_local_libraries.inc.php');
?>
<!-- Load BCOE&M Custom CSS - Contains Bootstrap overrides and custom classes common to all BCOE&M themes -->
<link rel="stylesheet" type="text/css" href="<?php echo $base_url."css/common.min.css"; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $theme; ?>" />
</head>
<body>
<!-- MAIN NAV -->
<div class="container hidden-print">
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<p class="navbar-text col-md-12 col-sm-12 col-xs-12"><i class="fa fa-lg fa-wrench"></i> <i class="fa fa-lg fa-cog fa-spin"></i></p>
</div>
</div><!--/.nav-collapse -->
</div>
</div><!-- container -->
<!-- ./MAIN NAV -->
<!-- Container -->
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col col-xs-12 col-sm-7 col-md-9">
<h1><i class="fa fa-lg fa-cog"></i> <?php echo $label_maintenance; ?></h1>
<p class="lead"><?php echo $maintenance_text_000; ?></p>
</div>
<div class="col col-sm-5 col-md-3 hidden-xs">
<?php if ((isset($_SESSION['contestLogo'])) && (!empty($_SESSION['contestLogo'])) && (file_exists(USER_IMAGES.$_SESSION['contestLogo']))) echo $competition_logo; ?>
</div>
</div>
</div>
</div>
<div class="container">
<p><?php echo $maintenance_text_001; ?></p>
</div><!-- ./container -->
<!-- ./Container -->
<!-- Footer -->
<footer class="footer">
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container text-center">
<p class="navbar-text col-md-12 col-sm-12 col-xs-12 text-muted small"><?php include (SECTIONS.'footer.sec.php'); ?></p>
</div>
</nav>
</footer><!-- ./footer -->
<!-- ./ Footer -->
</body>
</html>