-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb-error.php
More file actions
86 lines (83 loc) · 2.42 KB
/
db-error.php
File metadata and controls
86 lines (83 loc) · 2.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 600'); // 1 hour = 3600 seconds
?>
<!-- custom db error page -->
<!DOCTYPE html>
<html>
<head>
<title>Something went wrong - The Nerdy Student</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex,nofollow"/>
<link rel="icon" href="https://i0.wp.com/www.thenerdystudent.com/wp-content/uploads/2019/03/cropped-favicon.png"/>
<style>
body {
margin: 8px;
}
p {
font-family: Verdana, Geneva, sans-serif;
font-size: 14px;
line-height: 21px;
}
h1 {
font-family: Verdana, Geneva, sans-serif;
font-size: 32px;
line-height: 40px;
margin-top: 33px;
margin-bottom: 23px;
}
h2 {
font-family: Verdana, Geneva, sans-serif;
font-size: 20px;
}
a {
color: #5ba545;
}
.center {
text-align: center;
}
.headerimg {
max-width: 1100px;
width: 100%;
}
hr {
border: 0;
height: 2px;
background: #5ba545;
max-width: 1000px;
width: 90%;
}
::selection {
color: white;
background-color: #5ba545;
}
button {
color: white !important;
background-color: #5ba545;
border: none;
border-radius: 4px;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
cursor: pointer;
}
</style>
</head>
<body>
<div class="center">
<a href="https://www.thenerdystudent.com"><img src="https://i1.wp.com/www.thenerdystudent.com/wp-content/uploads/2019/04/tnscomp.png" class="headerimg"></a>
<h1>Error establishing database connection.</h1>
<hr />
<p>
<h2>If you came from a search, simply refreshing the page will fix this error. Sorry about that!</h2>
Something went wrong - we couldn't connect to the database. Please return to the homepage and try again.
<br /><br />
<button onclick="window.location.href='https://www.thenerdystudent.com';">Go to The Nerdy Student homepage</button>
<br /><br />
Please contact me at <a href="mailto:thenerdystudent@gmail.com" target="_blank">thenerdystudent@gmail.com</a> and report the error, along with the referring page (if you can remember it). This will help me fix it quicker. Thanks!
</p>
</div>
</body>
</html>