-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathdbdown.php
58 lines (53 loc) · 1.62 KB
/
dbdown.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
<?php
/**
* phpwcms content management system
*
* @author Oliver Georgi <[email protected]>
* @copyright Copyright (c) 2002-2024, Oliver Georgi
* @license http://opensource.org/licenses/GPL-2.0 GNU GPL-2
* @link http://www.phpwcms.org
*
**/
$phpwcms = array();
$basepath = str_replace('\\', '/', dirname(__FILE__));
require_once $basepath.'/include/config/conf.inc.php';
require_once $basepath.'/include/inc_lib/default.inc.php';
require_once PHPWCMS_ROOT.'/include/inc_lib/helper.session.php';
require_once PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php';
// database accessible again?
if($is_mysql_error === false) {
headerRedirect(PHPWCMS_URL, 302, false); // keep session intact
}
// sending system down message and send 503
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Retry-After: 3600');
?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>Sorry</title>
<style type="text/css">
body {
background-color: #fff;
margin: 50px;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 16px;
color: #000000;
}
h1 {
font-size: 36px;
font-weight: bold;
margin: .5em 0;
}
p {
margin: .75em 0;
}
</style>
</head>
<body>
<h1>We are sorry!</h1>
<p>For service reasons the system is temporarily not attainable.</p>
<p>Visit us later again!</p>
</body>
</html>