Update networktool.php

This commit is contained in:
Namhyeon Go 2018-09-12 10:55:56 +09:00 committed by GitHub
parent bfaf022f2b
commit 35bf4fff65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}