Repository navigation
Expand file tree
/
Copy path404page.php
More file actions
68 lines (59 loc) · 2.68 KB
/
Copy path404page.php
File metadata and controls
68 lines (59 loc) · 2.68 KB
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
<!DOCTYPE html>
<html lang="en">
<?php
include_once 'head.php';
?>
<body id="error404__page">
<!-- Navbar
================================================== -->
<?php include 'nav-link.php'; ?>
<!-- CONTENT
================================================== -->
<?php include 'sign-up-in-modal.php'; ?>
<?php
$status = $_SERVER['REDIRECT_STATUS'];
$codes = array(
403 => array('403 Forbidden', 'The server has refused to fulfill your request.'),
404 => array('404 Not Found', 'The document/file requested was not found on this server.'),
405 => array('405 Method Not Allowed', 'The method specified in the Request-Line is not allowed for the specified resource.'),
408 => array('408 Request Timeout', 'Your browser failed to send a request in the time allowed by the server.'),
500 => array('500 Internal Server Error', 'The request was unsuccessful due to an unexpected condition encountered by the server.'),
502 => array('502 Bad Gateway', 'The server received an invalid response from the upstream server while trying to fulfill the request.'),
504 => array('504 Gateway Timeout', 'The upstream server failed to send a request in the time allowed by the server.'),
);
$title = $codes[$status][0];
$message = $codes[$status][1];
if ($title == false || strlen($status) != 3) {
$message = 'Please supply a valid status code.';
}
?>
<!-- section home -->
<section class="section__home">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="welcome__content">
<h2 class="welcome_content__title"><?php echo $title; ?></h2>
<p class="welcome_content__title-primary">Page not found</p>
<p class="welcome_content__desc">Sorry, but the page you were looking for doesn’t exist.</p>
<p class="welcome_content__action">Go back to <a href="index.php">Home page</a></p>
</div> <!-- .welcome__content -->
</div>
</div> <!-- / .row -->
</div> <!-- / .container -->
<!-- Background image -->
<div class="home__bg"></div>
</section>
<?php include "footer.php"; ?>
<!-- JS Global -->
<script src="assets/plugins/jquery/jquery-1.12.4.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<!-- JS Plugins -->
<script src="assets/plugins/smothscroll/smoothscroll.js"></script>
<!-- JS Custom -->
<!--build:js assets/js/theme.min.js -->
<script src="assets/js/theme.js"></script>
<!-- endbuild -->
</body>
<!-- Copied from https://ygamin.bitbucket.io/CODECRUSH/1.0.2/404page.php by Cyotek WebCopy 1.4.0.477, 06 July 2018, 10:59:48 AM -->
</html>