// 없으면 현재 개인정보처리방침으로 이동
include_once $_SERVER['DOCUMENT_ROOT']."/__system/lib/func.php";
$version = param_get_post('v');
if(!$version){
if($_SERVER['SERVER_PORT'] == 80) $protocol = "http";
else if($_SERVER['SERVER_PORT'] == 443) $protocol = "https";
$domain = $_SERVER['HTTP_HOST'];
header('Location: '.$protocol.'://'.$mobile_word.$domain.'/doc/privacy');
return;
}
include(dirname(__FILE__)."/../inc/top.php");
?>
// 개인정보처리방침 history
$sql = "SELECT * FROM sp_setting_privacy WHERE is_del = 'N' AND wm_use = 'Y' ORDER BY wm_wdate DESC";
$pdata = $db->getFetchQueryArray($sql);
$history_html = '';
if($pdata['total'] > 0){
// 현재 버전의..
$curr_sort = '';
$curr_start = '';
foreach($pdata['row'] as $k=>$v){
if($v['wm_id'] == $version){
// 순서
$curr_sort = $v['wm_wdate'];
// 개인정보처리방침 내용
$v_privacy = $v['wm_privacy'];
$curr_start = $v['wm_sdate'];
}
}
$history_html .= '개인정보 처리방침의 변경
① 이 개인정보 처리방침은 '.$curr_start.'부터 적용됩니다.
② 이전의 개인정보 처리방침은 아래에서 확인하실 수 있습니다.
';
$cnt_history = 0;
foreach($pdata['row'] as $k=>$v){
// 현재 버전 이하만
if($curr_sort > $v['wm_wdate']){
$history_html .= ''.$v['wm_sdate'].' ~ '.$v['wm_edate'].' 개인정보처리방침
';
$cnt_history++;
}
}
}
// 없으면 현재 개인정보처리방침으로 이동
if($cnt_history == 0 && !$curr_sort){
alert('', '/doc/privacy', '');
return;
}
?>
Privacy Statement
=$v_privacy?>
0){?>=$history_html?>
}?>