allow for redirecting users to https
This commit is contained in:
parent
da25f15da1
commit
9076d74566
|
@ -32,6 +32,10 @@ if (!$mem->del_session()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$H=getenv("HTTP_HOST");
|
$H=getenv("HTTP_HOST");
|
||||||
|
if (variable_get('https_redirect', false, 'switch users to HTTPS') && !isset($_SERVER['HTTPS'])) {
|
||||||
|
header("Location: https://$H/");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($restrictip)) {
|
if (!isset($restrictip)) {
|
||||||
$restrictip=1;
|
$restrictip=1;
|
||||||
|
|
Loading…
Reference in New Issue