Update networktool.php
This commit is contained in:
parent
bfaf022f2b
commit
35bf4fff65
|
@ -83,6 +83,12 @@ if(!function_exists("get_network_hostname")) {
|
|||
}
|
||||
}
|
||||
|
||||
if(!function_exists("check_secure_protocol")) {
|
||||
function check_secure_protocol() {
|
||||
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists("get_os_platform")) {
|
||||
function get_os_platform() {
|
||||
$os = "";
|
||||
|
@ -96,9 +102,3 @@ if(!function_exists("get_os_platform")) {
|
|||
return $os;
|
||||
}
|
||||
}
|
||||
|
||||
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