|
|
|
13년 전
|
조회 1,298
|
|
|
|
13년 전
|
조회 1,575
|
|
|
|
13년 전
|
조회 1,010
|
|
|
|
13년 전
|
조회 851
|
|
|
|
13년 전
|
조회 1,737
|
|
|
|
13년 전
|
조회 1,553
|
|
|
|
13년 전
|
조회 1,551
|
|
|
|
13년 전
|
조회 1,090
|
|
|
|
13년 전
|
조회 1,735
|
|
|
|
13년 전
|
조회 2,464
|
|
|
|
13년 전
|
조회 956
|
|
|
|
13년 전
|
조회 1,033
|
|
|
|
13년 전
|
조회 800
|
|
|
|
13년 전
|
조회 1,055
|
|
|
|
13년 전
|
조회 1,594
|
|
|
|
13년 전
|
조회 1,557
|
|
|
|
13년 전
|
조회 1,696
|
|
|
|
13년 전
|
조회 981
|
|
|
|
13년 전
|
조회 1,698
|
|
|
|
13년 전
|
조회 1,003
|
댓글 2개
function MobileCheck() {
global $HTTP_USER_AGENT;
$MobileArray = array("iphone","lgtelecom","skt","mobile","samsung","nokia","blackberry","android","android","sony","phone");
$checkCount = 0;
for($i=0; $i<sizeof($MobileArray); $i++){
if(preg_match("/$MobileArray[$i]/", strtolower($HTTP_USER_AGENT))){ $checkCount++; break; }
}
return ($checkCount >= 1) ? "Mobile" : "Computer";
}
?>
<?php
if(MobileCheck() == "Mobile"){
echo"특정글 뿌림";
}
?>