Update networktool.php

This commit is contained in:
Namhyeon Go 2018-05-31 12:51:18 +09:00 committed by GitHub
parent 04970c5372
commit 522141f593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,3 +82,9 @@ if(!function_exists("get_network_hostname")) {
return $host;
}
}
if(!function_exists("check_secure_protocol")) {
function check_secure_protocol() {
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443;
}
}