Subversion Repositories cheapmusic

Rev

Rev 13 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 14
Line 1... Line 1...
1
<?php
1
<?php
2
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();
-
 
3
 
-
 
4
if ($_SERVER["SERVER_NAME"] == "www.findcheapmusic.com") {
2
if ($_SERVER["SERVER_NAME"] == "www.findcheapmusic.com") {
5
  header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
3
  header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
6
  header("X-Content-Type-Options: nosniff");
4
  header("X-Content-Type-Options: nosniff");
7
  header("X-XSS-Protection: 1; mode=block");
5
  header("X-XSS-Protection: 1; mode=block");
8
  header("Access-Control-Allow-Origin: *");
6
  header("Access-Control-Allow-Origin: *");
Line 19... Line 17...
19
    saveRedirect();
17
    saveRedirect();
20
    printHeader();
18
    printHeader();
21
    printMessage($location);
19
    printMessage($location);
22
    printFooter();
20
    printFooter();
23
    saveRedirect();
21
    saveRedirect();
-
 
22
    session_commit();    
24
    
23
    
25
    echo '<script type="text/javascript">setTimeout( function() { location.href="' . $location . '"; }, 250);</script>';
24
    echo '<script type="text/javascript">setTimeout( function() { location.href="' . $location . '"; }, 250);</script>';
26
 
25
 
27
    exit;
26
    exit;
28
 
27