접속자 현황 업데이트
OS 별, 브라우져 별 업데이트 내용입니다.
크로스 브라우징을 위해 MSIE 6 을 좆다가 보니 호환성 모드를 고려해야 할 때가 있더군요.
방문객의 상태가 어떠냐에 따라 구 버젼의 브라우져에 대응 할 수 있겠죠..
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
과 같이 호환모드를 강제하기 위해서 실제 얼마나 많은 접속자가 오는지 확인해 볼 필요가 있습니다.
내친김에 윈도우 8, 8.1 의 구분도 추가하면 좋을 듯 합니다.
user.agent 값에 msie 6 이어도 실제 브라우져는 7 또는 8 일 수 있습니다. (호환모드)
이를 확인하는 값은 triednt 값입니다.
참고 : http://msdn.microsoft.com/library/ms537503.aspx
Trident 값은 MSIE 8 부터 나옵니다
수정할 내용은 다음과 같습니다.
lib/visit.lib.php
function get_brow($agent)
~~~~~~
else if(preg_match("/msie 6.0[0-9]*/", $agent)) {
if(preg_match("/trident\/4*/", $agent)) {
$s = "MSIE 6 8호환";
} else if(preg_match("/trident\/5*/", $agent)) {
$s = "MSIE 6 9호환";
} else if(preg_match("/trident\/6*/", $agent)) {
$s = "MSIE 6 10호환";
} else if(preg_match("/trident\/7*/", $agent)) {
$s = "MSIE 6 11호환";
} else {
$s = "MSIE 6";
}
}
else if(preg_match("/msie 7.0[0-9]*/", $agent)) {
if(preg_match("/trident\/4*/", $agent)) {
$s = "MSIE 7 8호환";
} else if(preg_match("/trident\/5*/", $agent)) {
$s = "MSIE 7 9호환";
} else if(preg_match("/trident\/6*/", $agent)) {
$s = "MSIE 7 10호환";
} else if(preg_match("/trident\/7*/", $agent)) {
$s = "MSIE 7 11호환";
} else {
$s = "MSIE 7";
}
}
else if(preg_match("/msie 8.0[0-9]*/", $agent)) { $s = "MSIE 8.0"; }
else if(preg_match("/msie 9.0[0-9]*/", $agent)) { $s = "MSIE 9"; }
else if(preg_match("/msie 10.0[0-9]*/", $agent)) { $s = "MSIE 10"; }
else if(preg_match("/msie 11.0[0-9]*/", $agent)) { $s = "MSIE 11"; }
~~~~~~
function get_os($agent)
~~~~
else if(preg_match("/windows nt 6\.1/", $agent)) { $s = "Windows7"; }
else if(preg_match("/windows nt 6\.2/", $agent)) { $s = "Windows 8"; }
else if(preg_match("/windows nt 6\.3/", $agent)) { $s = "Windows 8.1"; }
else if(preg_match("/windows 9x/", $agent)) { $s = "ME"; }
~~~~
관리자님 업데이트 부탁요~~
=======================
추가.. ie 6 (7도...)을 MS가 버렸음에도 아직 10% 가까이 나타납니다.
무시할 수 만은 없는 수치네요...
크로스 브라우징을 위해 MSIE 6 을 좆다가 보니 호환성 모드를 고려해야 할 때가 있더군요.
방문객의 상태가 어떠냐에 따라 구 버젼의 브라우져에 대응 할 수 있겠죠..
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
과 같이 호환모드를 강제하기 위해서 실제 얼마나 많은 접속자가 오는지 확인해 볼 필요가 있습니다.
내친김에 윈도우 8, 8.1 의 구분도 추가하면 좋을 듯 합니다.
user.agent 값에 msie 6 이어도 실제 브라우져는 7 또는 8 일 수 있습니다. (호환모드)
이를 확인하는 값은 triednt 값입니다.
참고 : http://msdn.microsoft.com/library/ms537503.aspx
Trident 값은 MSIE 8 부터 나옵니다
수정할 내용은 다음과 같습니다.
lib/visit.lib.php
function get_brow($agent)
~~~~~~
else if(preg_match("/msie 6.0[0-9]*/", $agent)) {
if(preg_match("/trident\/4*/", $agent)) {
$s = "MSIE 6 8호환";
} else if(preg_match("/trident\/5*/", $agent)) {
$s = "MSIE 6 9호환";
} else if(preg_match("/trident\/6*/", $agent)) {
$s = "MSIE 6 10호환";
} else if(preg_match("/trident\/7*/", $agent)) {
$s = "MSIE 6 11호환";
} else {
$s = "MSIE 6";
}
}
else if(preg_match("/msie 7.0[0-9]*/", $agent)) {
if(preg_match("/trident\/4*/", $agent)) {
$s = "MSIE 7 8호환";
} else if(preg_match("/trident\/5*/", $agent)) {
$s = "MSIE 7 9호환";
} else if(preg_match("/trident\/6*/", $agent)) {
$s = "MSIE 7 10호환";
} else if(preg_match("/trident\/7*/", $agent)) {
$s = "MSIE 7 11호환";
} else {
$s = "MSIE 7";
}
}
else if(preg_match("/msie 8.0[0-9]*/", $agent)) { $s = "MSIE 8.0"; }
else if(preg_match("/msie 9.0[0-9]*/", $agent)) { $s = "MSIE 9"; }
else if(preg_match("/msie 10.0[0-9]*/", $agent)) { $s = "MSIE 10"; }
else if(preg_match("/msie 11.0[0-9]*/", $agent)) { $s = "MSIE 11"; }
~~~~~~
function get_os($agent)
~~~~
else if(preg_match("/windows nt 6\.1/", $agent)) { $s = "Windows7"; }
else if(preg_match("/windows nt 6\.2/", $agent)) { $s = "Windows 8"; }
else if(preg_match("/windows nt 6\.3/", $agent)) { $s = "Windows 8.1"; }
else if(preg_match("/windows 9x/", $agent)) { $s = "ME"; }
~~~~
관리자님 업데이트 부탁요~~
=======================
추가.. ie 6 (7도...)을 MS가 버렸음에도 아직 10% 가까이 나타납니다.
무시할 수 만은 없는 수치네요...
댓글 5개
12년 전
감사합니다.
takumi22
12년 전
좋은 팁 감사합니다.
Terrorboy
12년 전
감사합니다
THIRD
12년 전
감사합니다~
12년 전
감사해요..
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4424 | ||
| 114 |
JMoon
|
12년 전 | 19674 | |
| 113 | 12년 전 | 5305 | ||
| 112 | 12년 전 | 5004 | ||
| 111 |
사노라가노라
|
12년 전 | 5042 | |
| 110 | 12년 전 | 7024 | ||
| 109 | 12년 전 | 9725 | ||
| 108 | 12년 전 | 6201 | ||
| 107 | 12년 전 | 6863 | ||
| 106 | 12년 전 | 6231 | ||
| 105 | 12년 전 | 12542 | ||
| 104 | 12년 전 | 5763 | ||
| 103 | 12년 전 | 6240 | ||
| 102 | 12년 전 | 5617 | ||
| 101 | 12년 전 | 6771 | ||
| 100 | 12년 전 | 7174 | ||
| 99 | 12년 전 | 5282 | ||
| 98 | 12년 전 | 7094 | ||
| 97 |
kesan
|
12년 전 | 7243 | |
| 96 | 12년 전 | 7290 | ||
| 95 | 12년 전 | 8159 | ||
| 94 | 12년 전 | 5970 | ||
| 93 | 12년 전 | 5128 | ||
| 92 | 12년 전 | 5861 | ||
| 91 | 12년 전 | 6429 | ||
| 90 | 12년 전 | 5459 | ||
| 89 |
soul5932
|
12년 전 | 10959 | |
| 88 |
못말리는크리스
|
12년 전 | 8078 | |
| 87 | 12년 전 | 10207 | ||
| 86 | 12년 전 | 5577 | ||
| 85 |
사노라가노라
|
12년 전 | 11207 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기