|
|
|
12-04-22
|
조회 933
|
|
|
|
12-04-22
|
조회 1,820
|
|
|
|
12-04-22
|
조회 1,639
|
|
|
|
12-04-22
|
조회 1,639
|
|
|
|
12-04-22
|
조회 1,187
|
|
|
|
12-04-22
|
조회 1,834
|
|
|
|
12-04-22
|
조회 2,557
|
|
|
|
12-04-22
|
조회 1,041
|
|
|
|
12-04-22
|
조회 1,134
|
|
|
|
12-04-22
|
조회 901
|
|
|
|
12-04-22
|
조회 1,147
|
|
|
|
12-04-21
|
조회 1,695
|
|
|
|
12-04-21
|
조회 1,651
|
|
|
|
12-04-21
|
조회 1,802
|
|
|
|
12-04-21
|
조회 1,076
|
|
|
|
12-04-21
|
조회 1,810
|
|
|
|
12-04-21
|
조회 1,103
|
|
|
|
12-04-21
|
조회 1,670
|
|
|
|
12-04-21
|
조회 1,939
|
|
|
|
12-04-21
|
조회 1,640
|
댓글 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"특정글 뿌림";
}
?>