PC, 모바일 버전 변환

This commit is contained in:
gnuboard
2013-01-18 12:18:06 +09:00
parent ad593d0060
commit e58f003bbe
6 changed files with 64 additions and 42 deletions

View File

@ -1661,4 +1661,10 @@ function skin_path()
if (G4_IS_MOBILE) $skin_path = $g4['mobile_path'].'/'.$skin_dir;
return $skin_path;
}
function is_mobile()
{
return preg_match('/'.G4_MOBILE_AGENT.'/i', $_SERVER['HTTP_USER_AGENT']);
}
?>