Line 2... |
Line 2... |
2 |
if (in_array($_SERVER["SERVER_NAME"], array("www.findcheapmusic.com", "findcheapmusic.com"))) {
|
2 |
if (in_array($_SERVER["SERVER_NAME"], array("www.findcheapmusic.com", "findcheapmusic.com"))) {
|
3 |
ini_set("zlib.output_compression", "On");
|
3 |
ini_set("zlib.output_compression", "On");
|
4 |
ini_set("zlib.output_compression_level", 4);
|
4 |
ini_set("zlib.output_compression_level", 4);
|
5 |
ini_set("display_errors", 0);
|
5 |
ini_set("display_errors", 0);
|
6 |
ini_set("log_errors", 1);
|
6 |
ini_set("log_errors", 1);
|
7 |
ini_set("error_log", $_SERVER['DOCUMENT_ROOT'] . "/../MyFiles/logs/php_error.log");
|
7 |
define("ETC_ROOT", $_SERVER['DOCUMENT_ROOT'] . "/../MyFiles/");
|
8 |
ini_set("date.timezone", "America/New_York");
|
8 |
ini_set("date.timezone", "America/New_York");
|
9 |
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
|
9 |
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
|
10 |
header("X-Content-Type-Options: nosniff");
|
10 |
header("X-Content-Type-Options: nosniff");
|
11 |
header("X-XSS-Protection: 1; mode=block");
|
11 |
header("X-XSS-Protection: 1; mode=block");
|
12 |
header("Access-Control-Allow-Origin: *");
|
12 |
header("Access-Control-Allow-Origin: *");
|
13 |
header("Referrer-Policy: no-referrer");
|
13 |
header("Referrer-Policy: no-referrer");
|
14 |
header("X-Frame-Options: SAMEORIGIN");
|
14 |
header("X-Frame-Options: SAMEORIGIN");
|
- |
|
15 |
} else if (in_array($_SERVER["SERVER_NAME"], array("www.uwejacobs.tech", "uwejacobs.tech"))) {
|
- |
|
16 |
define("ETC_ROOT", $_SERVER['DOCUMENT_ROOT'] . "/../etc/uwejacobs.tech/");
|
- |
|
17 |
ini_set("date.timezone", "America/New_York");
|
- |
|
18 |
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
|
- |
|
19 |
header("X-Content-Type-Options: nosniff");
|
- |
|
20 |
header("X-XSS-Protection: 1; mode=block");
|
- |
|
21 |
header("Access-Control-Allow-Origin: *");
|
- |
|
22 |
header("Referrer-Policy: no-referrer");
|
- |
|
23 |
header("X-Frame-Options: SAMEORIGIN");
|
- |
|
24 |
} else {
|
- |
|
25 |
define("ETC_ROOT", $_SERVER['DOCUMENT_ROOT'] . "/../MyFiles/");
|
15 |
}
|
26 |
}
|
- |
|
27 |
|
- |
|
28 |
define("LOG_DIR", ETC_ROOT . "logs/");
|
- |
|
29 |
define("CONFIG_DIR", ETC_ROOT . "config/");
|
- |
|
30 |
define("TMP_DIR", ETC_ROOT . "tmp/");
|
- |
|
31 |
ini_set("error_log", LOG_DIR . "php_error.log");
|