Haeder
쵸리위키
if( $_SERVER["HTTP_HOST"]!="m.en.orangeave.co.kr"
&& ( $_SERVER["HTTP_HOST"]=="m.orangeave.co.kr" && empty($_SESSION['app_type']) ) && $_SERVER["HTTPS"]!="on" && substr_count($_SERVER["PHP_SELF"],"/openapi/")==0
){
header("Location:https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
}
if(! empty( $_SERVER['HTTPS'] )){
$http_type = 'https://';
}else{
$http_type = 'http://';
}