<?
$pSelf = $_SERVER["PHP_SELF"];
$pSelf = str_replace("/bbs/","",$pSelf);
$pSelf = str_replace("/shop/","",$pSelf);
$pSelf = str_replace("/","",$pSelf);
$pSelf = str_replace(".php","",$pSelf);
$pSelf = str_replace("src","",$pSelf);
/* 로그인 회원가입 부분만 부분SSL 처리 : S */
if ($pSelf == "login" || $pSelf == "register" || $pSelf == "register_form"){ ?>
<script type="text/javascript">
var url = location.href.substr(0,5);
if (url != "https"){
document.location.href=location.href.replace(/http/gi,"https");
}
</script>
<? }else{ ?>
<script type="text/javascript">
var url = location.href.substr(0,5);
if (url == "https"){
document.location.href=location.href.replace(/https/gi,"http");
}
</script>
<?
}
/* 로그인 회원가입 부분만 부분SSL 처리 : E */
?>