bo_use 를 bo_pc_mobile 로 명확하게

This commit is contained in:
gnuboard
2013-02-15 18:16:11 +09:00
parent 596acb0d97
commit e34a2128db
8 changed files with 38 additions and 21 deletions

View File

@ -1716,4 +1716,19 @@ function iconv_euckr($str)
{
return iconv('utf-8', 'euc-kr', $str);
}
// PC 또는 모바일 사용인지를 검사
function check_pc_mobile($pc_mobile)
{
global $is_admin;
if ($is_admin) return;
if ($pc_mobile=='pc' && G4_IS_MOBILE) {
alert('PC 전용 게시판입니다.', G4_URL);
} else if ($pc_mobile=='mobile' && !G4_IS_MOBILE) {
alert('모바일 전용 게시판입니다.', G4_URL);
}
}
?>