remove deprecated $HTTP_SERVER_VARS vars
This commit is contained in:
parent
dd4371a97c
commit
b0e4a4e6f5
@ -27,7 +27,7 @@ if ($serendipity['expose_s9y']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($serendipity['CacheControl']) {
|
if ($serendipity['CacheControl']) {
|
||||||
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')) {
|
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2')) {
|
||||||
header('Cache-Control: no-cache, pre-check=0, post-check=0');
|
header('Cache-Control: no-cache, pre-check=0, post-check=0');
|
||||||
} else {
|
} else {
|
||||||
header('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
header('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
||||||
@ -35,6 +35,7 @@ if ($serendipity['CacheControl']) {
|
|||||||
header('Expires: 0');
|
header('Expires: 0');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
}
|
}
|
||||||
|
|
||||||
$track_referer = true;
|
$track_referer = true;
|
||||||
$uri = $_SERVER['REQUEST_URI'];
|
$uri = $_SERVER['REQUEST_URI'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user