Subversion Repositories cheapmusic

Rev

Rev 153 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 - 1
<?php
104 - 2
if (in_array($_SERVER["SERVER_NAME"], array("www.findcheapmusic.com", "findcheapmusic.com"))) {
154 - 3
    define("ETC_ROOT", $_SERVER['DOCUMENT_ROOT'] . "/../etc/findcheapmusic.com/");
76 - 4
    ini_set("date.timezone", "America/New_York");
20 - 5
    header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
6
    header("X-Content-Type-Options: nosniff");
7
    header("X-XSS-Protection: 1; mode=block");
8
    header("Access-Control-Allow-Origin: *");
9
    header("Referrer-Policy: no-referrer");
10
    header("X-Frame-Options: SAMEORIGIN");
153 - 11
} else {
12
    define("ETC_ROOT", $_SERVER['DOCUMENT_ROOT'] . "/../MyFiles/");
41 - 13
}
153 - 14
 
15
define("LOG_DIR", ETC_ROOT . "logs/");
16
define("CONFIG_DIR", ETC_ROOT . "config/");
17
define("TMP_DIR", ETC_ROOT . "tmp/");
18
ini_set("error_log", LOG_DIR . "php_error.log");