-
Notifications
You must be signed in to change notification settings - Fork 0
/
php_error_landing.php
81 lines (74 loc) · 2.38 KB
/
php_error_landing.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
<?php
// Check if the user has switched the mode
if (isset($_GET['mode']) && $_GET['mode'] === 'night') {
$mode = 'night';
} elseif (isset($_GET['mode']) && $_GET['mode'] === 'hacking') {
$mode = 'hacking';
} else {
$mode = 'day';
}
// Set the appropriate CSS file based on the mode
$cssFile = '';
switch ($mode) {
case 'night':
$cssFile = 'styles/night.css';
break;
case 'hacking':
$cssFile = 'styles/hacking.css';
break;
default:
$cssFile = 'styles/day.css';
break;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404 Error - Page Not Found</title>
<link rel="stylesheet" href="<?php echo $cssFile; ?>">
<style>
/* Add additional customizations here */
</style>
</head>
<body>
<div class="container">
<h1>404 Error - Page Not Found</h1>
<p>Oops! The page you are looking for could not be found.</p>
<p>Please check the URL or go back to the <a href="/">homepage</a>.</p>
<form action="/report-error" method="post">
<label for="error-description">Error Description:</label><br>
<textarea id="error-description" name="error-description" rows="4" cols="50"></textarea><br>
<input type="submit" value="Submit Error Report">
</form>
<div class="search-bar">
<form action="/search" method="get">
<input type="text" id="search-query" name="q" placeholder="Search...">
<button type="submit">Search</button>
</form>
</div>
<div class="mode-switch">
<a href="?mode=day">Day Mode</a> |
<a href="?mode=night">Night Mode</a> |
<a href="?mode=hacking">Hacking Mode</a>
</div>
<div class="suggestions">
<h3>Popular Pages</h3>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/products">Products</a></li>
<li><a href="/contact">Contact Us</a></li>
</ul>
</div>
<div class="navigation">
<h3>Navigation</h3>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About Us</a></li>
<li><a href="/services">Services</a></li>
<li><a href="/blog">Blog</a></li>
</ul>
</div>
</div>
</body>
</html>