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://';

}