20 |
- |
1 |
<?php
|
104 |
- |
2 |
if (in_array($_SERVER["SERVER_NAME"], array("www.findcheapmusic.com", "findcheapmusic.com"))) {
|
20 |
- |
3 |
ini_set("zlib.output_compression", "On");
|
104 |
- |
4 |
ini_set("zlib.output_compression_level", 4);
|
20 |
- |
5 |
ini_set("display_errors", 0);
|
|
|
6 |
ini_set("log_errors", 1);
|
153 |
- |
7 |
define("ETC_ROOT", $_SERVER['DOCUMENT_ROOT'] . "/../MyFiles/");
|
76 |
- |
8 |
ini_set("date.timezone", "America/New_York");
|
20 |
- |
9 |
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
|
|
|
10 |
header("X-Content-Type-Options: nosniff");
|
|
|
11 |
header("X-XSS-Protection: 1; mode=block");
|
|
|
12 |
header("Access-Control-Allow-Origin: *");
|
|
|
13 |
header("Referrer-Policy: no-referrer");
|
|
|
14 |
header("X-Frame-Options: SAMEORIGIN");
|
153 |
- |
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/");
|
41 |
- |
26 |
}
|
153 |
- |
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");
|