PC, 모바일 버전 변환

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

No files matched your search

+6
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']);
}
?>