Commit dc0b6c02 authored by zhz's avatar zhz

https

parent 931396fe
......@@ -122,6 +122,7 @@ class Common
return $url;
}
public static function is_https() {
var_dump($_SERVER);
if ( !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
......@@ -133,6 +134,7 @@ class Common
}elseif($_SERVER['SERVER_PORT'] == 89){
return true;
}
return false;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment