-
Notifications
You must be signed in to change notification settings - Fork 0
/
_conf.sample.php
executable file
·75 lines (62 loc) · 1.2 KB
/
_conf.sample.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
<?php
/**
* PHP Simple Server Health Config
*/
// Prevent direct load
if (!defined('PSSH')) {
header("HTTP/1.1 404 Not Found");
exit();
}
/**
* DEBUG - Disable on any production system!!
*/
error_reporting(E_ALL);
ini_set("display_errors", false);
/**
* DATABASE
*/
// If running a wordpress site include the wp-config to get DB details
$wpConfig = "../wp-config.php";
if (file_exists($wpConfig)) {
require_once $wpConfig;
}
// If not WP, set DB logins
if (!defined("DB_HOST")) {
define("DB_HOST", "");
}
if (!defined("DB_USER")) {
define("DB_USER", "");
}
if (!defined("DB_PASSWORD")) {
define("DB_PASSWORD", "");
}
if (!defined("DB_NAME")) {
define("DB_NAME", "");
}
/**
* Autorefresh
*/
define("AUTO_REFRESH", true);
define("REFRESH_SECONDS", 60);
/**
* Include version info?
*/
define("SHOW_VERSION_INFO", false);
/**
* PROC Memory info
*/
define("MEM_INFO", "/proc/meminfo");
/**
* PROC CPU info
*/
define("CPU_INFO", "/proc/cpuinfo");
/**
* PROC Version info
*/
define("VERSION_INFO", "/proc/version");
/**
* Display colors
*/
define("GREEN", "01bc31");
define("ORANGE", "ff7e00");
define("RED", "F00");