-
Notifications
You must be signed in to change notification settings - Fork 80
/
404.php
90 lines (76 loc) · 3.6 KB
/
404.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
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require('paths.php');
require(CONFIG.'bootstrap.php');
$section = "404";
$go = "error_page";
$container_main = "container";
$nav_container = "navbar-default";
?>
<!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 $_SESSION['contestName']; ?> Organized By <?php echo $_SESSION['contestHost']." > Error 404"; ?></title>
<?php
if (CDN) include (INCLUDES.'load_cdn_libraries.inc.php');
else include (INCLUDES.'load_local_libraries.inc.php');
?>
<!-- Load BCOE&M Custom Theme CSS - Contains Bootstrap overrides and custom classes -->
<link rel="stylesheet" type="text/css" href="<?php echo $theme; ?>" />
<script type="text/javascript">
var section = "<?php echo $section; ?>";
var action = "<?php echo $action; ?>";
var go = "<?php echo $go; ?>";
var edit_style = "<?php echo $action; ?>";
var user_level = "<?php if ((isset($_SESSION['userLevel'])) && ($bid != "default")) echo $_SESSION['userLevel']; else echo "2"; ?>";
</script>
<!-- Load BCOE&M Custom JS -->
<script src="<?php echo $js_app_url; ?>"></script>
</head>
<body>
<!-- MAIN NAV -->
<div class="container hidden-print">
<?php include (SECTIONS.'nav.sec.php'); ?>
</div><!-- container -->
<!-- ./MAIN NAV -->
<!-- ALERTS -->
<div class="container bcoem-warning-container">
<div style="margin-top:30px;" class="alert alert-danger"><span class="fa fa-exclamation-circle"></span> <strong>Sorry, the page you were looking for was not found.</strong> Don't worry, we still want you around!</div>
<div class="alert alert-info"><span class="fa fa-info-circle"></span> <strong>If you are a top-level admin and are seeing this error page, your server may not be able to accommodate search engine safe (SEF) URLs.</strong> If you are a top-level administrator of the site, <a class="alert-link" href="<?php echo $base_url."index.php?section=login"; ?>">log in</a> now and adjust your site preferences.</div>
</div><!-- ./container -->
<!-- ./ALERTS -->
<!-- Public Pages (Fixed Layout with Sidebar) -->
<div class="container">
<div class="row">
<div class="col col-lg-9 col-md-8 col-sm-12 col-xs-12">
<div class="page-header">
<h1>404 Error</h1>
</div>
<p class="lead">Please use the main navigation above to get where you want to go.</p>
<p class="lead"><small>If the links above aren't working, please <a href="<?php echo $base_url."index.php?section=contact"; ?>">contact a site representative</a>!</small></p>
<p>Cheers!<br>– The <?php echo $_SESSION['contestName']; ?> Site Server</p>
</div><!-- ./left column -->
<div class="sidebar col col-lg-3 col-md-4 col-sm-12 col-xs-12">
<?php include (SECTIONS.'sidebar.sec.php'); ?>
</div><!-- ./sidebar -->
</div><!-- ./row -->
<!-- ./Public Pages -->
</div><!-- ./container -->
<!-- ./Public Pages -->
<!-- Mods Bottom -->
<div class="container">
</div>
<!-- ./Mods Bottom -->
<!-- Footer -->
<footer class="footer hidden-xs hidden-sm hidden-md">
<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>