Update networktool.php
This commit is contained in:
parent
04970c5372
commit
522141f593
|
@ -82,3 +82,9 @@ if(!function_exists("get_network_hostname")) {
|
||||||
return $host;
|
return $host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!function_exists("check_secure_protocol")) {
|
||||||
|
function check_secure_protocol() {
|
||||||
|
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user