기기별 접속현황 표시하기 > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

기기별 접속현황 표시하기 정보

기기별 접속현황 표시하기

본문

/lib/visit.lib.php에 아래의 내용을 추가합니다.

그리고 /adm/visit_os.php를 복사해서 visit_model.php로 이름변경,
get_os을 get_model로 수정 하시고 /adm 폴더에 업로드.

/adm/vist.sub.php에서 적당한 순서에 아래 내용을 추가해주시면 됩니다.

<input type=button class=btn1 value=' 기기 '      onclick="fvisit_submit('visit_model.php');">

/lib/visit.lib.php 추가내용
======================================================================

function get_model($agent)
{
    $agent = strtolower($agent);

    //echo $agent; echo "<br/>";

    if (preg_match("/windows 98/", $agent))                { $s = "98"; }
    else if(preg_match("/ipod/", $agent))                  { $s = "iPod"; } //iPod
    else if(preg_match("/iphone/", $agent))                { $s = "iPhone"; } //iPhone
    else if(preg_match("/ipad/", $agent))                  { $s = "iPad"; } //iPad
   

    else if(preg_match("/galaxy nexus/", $agent))          { $s = "Galaxy Nexus"; } //Galaxy Nexus
    else if(preg_match("/shw-m110s|gt-i9000/", $agent))    { $s = "Galaxy S"; } //Galaxy S
    else if(preg_match("/shw-m190/", $agent))              { $s = "GALAXY S hoppin"; } //
    else if(preg_match("/shw-m220/", $agent))              { $s = "GALAXY Neo"; } //
    else if(preg_match("/shw-m240/", $agent))              { $s = "GALAXY ACE"; } //GALAXY ACE
    else if(preg_match("/shw-m250/", $agent))              { $s = "GALAXY S2"; } //GALAXY S2
    else if(preg_match("/shw-m290/", $agent))              { $s = "GALAXY Gio"; } //GALAXY Gio
    else if(preg_match("/shw-m340/", $agent))              { $s = "GALAXY M Style"; } //GALAXY M Style
    else if(preg_match("/shv-e110/", $agent))              { $s = "GALAXY S2 LTE"; } //GALAXY S2 LTE
    else if(preg_match("/shv-e120/", $agent))              { $s = "GALAXY S2 HD LTE"; } //GALAXY S2 HD LTE
    else if(preg_match("/yp-gb70|yp-gb1/", $agent))        { $s = "Galaxy Player"; } //Galaxy Player
    else if(preg_match("/shw-m180|gt-p1000/", $agent))      { $s = "GALAXY Tab"; } //GALAXY Tab
    else if(preg_match("/shv-e150/", $agent))              { $s = "GALAXY Tab 7.7"; } //GALAXY Tab 7.7
    else if(preg_match("/shv-e160/", $agent))              { $s = "GALAXY Note"; } //GALAXY Note
    else if(preg_match("/shw-m380/", $agent))              { $s = "GALAXY Tab 10.1"; } //GALAXY Tab 10.1


    else if(preg_match("/lg-su370|lg-lu3700/", $agent))    { $s = "Optimus ONE"; } //Optimus ONE)
    else if(preg_match("/lg-su640/", $agent))              { $s = "Optimus LTE"; } //Optimus LTE
    else if(preg_match("/lg-su660/", $agent))              { $s = "Optimus 2X"; } //Optimus 2X
    else if(preg_match("/lg-su760/", $agent))              { $s = "Optimus 3D"; } //Optimus 3D
    else if(preg_match("/lu2300/", $agent))                { $s = "Optimus Q"; } //Optimus Q
    else if(preg_match("/lg-lu6500/", $agent))              { $s = "Optimus Q2"; } //Optimus Q2
    else if(preg_match("/lg-lu6800/", $agent))              { $s = "Optimus Big"; } //Optimus Big
    else if(preg_match("/lg-ku5900/", $agent))              { $s = "Optimus black"; } //Optimus black
    else if(preg_match("/lg-f100/", $agent))                { $s = "Optimus Vu"; } //Optimus Vu
    else if(preg_match("/lg-su540|lg-ku5400/", $agent))    { $s = "PRADA 3.0"; } //PRADA 3.0
   
    else if(preg_match("/htc_desirehd/", $agent))          { $s = "HTC Desire HD"; } //HTC Desire HD
    else if(preg_match("/x710e/", $agent))                  { $s = "HTC Raider"; } //HTC Raider
    else if(preg_match("/htc_x515e/", $agent))              { $s = "HTC EVO 4G+"; } //HTC EVO 4G+
   
    else if(preg_match("/im-a600/", $agent))                { $s = "SKY Sirius"; } //SKY Sirius
    else if(preg_match("/im-a690/", $agent))                { $s = "SKY MIRACH"; } //SKY MIRACH
    else if(preg_match("/im-a710/", $agent))                { $s = "Vega Xpress"; } //VegaXpress
    else if(preg_match("/im-a725/", $agent))                { $s = "Vega X+"; } //Vega X+
    else if(preg_match("/im-a750/", $agent))                { $s = "SKY Mirach A"; } //SKY Mirach A
    else if(preg_match("/im-a760|im-a780/", $agent))        { $s = "Vega Racer"; } //Vega Racer
    else if(preg_match("/im-a810/", $agent))                { $s = "Vega LTE M"; } //Vega LTE M
    else if(preg_match("/im-a820/", $agent))                { $s = "Vega LTE EX"; } //Vega LTE EX
    else if(preg_match("/im-t100/", $agent))                { $s = "Vega N˚5"; } //Vega N˚5
   
    else if(preg_match("/mb525/", $agent))                  { $s = "MOTOROLA DEFY"; } //MOTOROLA DEFY
    else if(preg_match("/mb860/", $agent))                  { $s = "MOTOROLA ATRIX"; } //MOTOROLA ATRIX
    else if(preg_match("/xt910/", $agent))                  { $s = "MOTOROLA RAZR"; } //MOTOROLARAZR
    else if(preg_match("/nexus s/", $agent))                { $s = "Nexus S"; } //Nexus S
    else if(preg_match("/nexus one/", $agent))              { $s = "Nexus One"; } //Nexus One
   
    else if(preg_match("/km-s100/", $agent))                { $s = "TAKE"; } //TAKE
    else if(preg_match("/km-s120/", $agent))                { $s = "TAKE 2"; } //TAKE 2
    else if(preg_match("/km-s200/", $agent))                { $s = "TAKE JANUS"; } //TAKE JANUS
    else if(preg_match("/km-s220/", $agent))                { $s = "TAKE TACHY"; } //TAKE TACHY
    else if(preg_match("/km-s300/", $agent))                { $s = "TAKE HD"; } //TAKE HD
   
    else if(preg_match("/dell streak/", $agent))            { $s = "Dell Streak"; } //Dell Streak
    else if(preg_match("/hp-tablet/", $agent))              { $s = "HP-Tablet"; } //HP-Tablet
   

    else if(preg_match("/psp/", $agent))                    { $s = "PSP"; } //PSP
    else if(preg_match("/playstation/", $agent))            { $s = "PLAYSTATION"; } //PLAYSTATION
    else if(preg_match("/berry/", $agent))                  { $s = "BlackBerry"; } //BlackBerry
    else if(preg_match("/symbian/", $agent))                { $s = "Symbian"; } //Symbian
    else if(preg_match("/ericsson/", $agent))              { $s = "SonyEricsson"; } //SonyEricsson
    else if(preg_match("/nokia/", $agent))                  { $s = "Nokia"; } //Nokia
    else if(preg_match("/benq/", $agent))                  { $s = "BenQ"; } //BenQ
    else if(preg_match("/mot/", $agent))                    { $s = "Motorola"; } //Motorola
    else if(preg_match("/nintendo/", $agent))              { $s = "Nintendo"; } //Nintendo
    else if(preg_match("/palm/", $agent))                  { $s = "Palm"; } //Palm
    else if(preg_match("/sch/", $agent))                    { $s = "T*옴니아"; } //T*옴니아
    else if(preg_match("/sph/", $agent))                    { $s = "애니콜"; } //삼성폰
    else if(preg_match("/sgh/", $agent))                    { $s = "옴니아"; } //옴니아
    else if(preg_match("/sch/", $agent))                    { $s = "T*옴니아"; } //T*옴니아
    else if(preg_match("/im-s/", $agent))                  { $s = "스카이폰"; } //스카이폰
    else if(preg_match("/lg/", $agent))                    { $s = "LG 사이언"; } //LG 사이언
    else if(preg_match("/googleproducer|google web preview/", $agent))            { $s = "Google Web Preview"; } //Google Web Preview and Feedfetcher
    else if(preg_match("/google-site-verification/", $agent))  { $s = "Google Webmaster tools"; } //Google Webmaster tools
    else if(preg_match("/feedfetcher-google/", $agent))        { $s = "Feedfetcher-Google"; } //Feedfetcher-Google
    else if(preg_match("/desktop google reader/", $agent))      { $s = "Desktop Google Reader"; } //Desktop Google Reader
    else if(preg_match("/appengine-google/", $agent))          { $s = "AppEngine-Google"; } //AppEngine-Google
    else if(preg_match("/google wireless transcoder/", $agent)) { $s = "Google Wireless Transcoder"; } //Google Wireless Transcoder
    else if(preg_match("/google/", $agent))            { $s = "Google Robot"; } //구글로봇
    else if(preg_match("/mediapartners/", $agent))      { $s = "Google AdSense"; } //구글애드센스
    else if(preg_match("/-mobile/", $agent))            { $s = "Google-Mobile Robot"; } //구글모바일로봇
    else if(preg_match("/naver blog/", $agent))        { $s = "NAVER Blog Rssbot"; } //네이버블로그로봇
    else if(preg_match("/naver|yeti/", $agent))        { $s = "NAVER Robot"; } //네이버로봇
    else if(preg_match("/daumsearch/", $agent))        { $s = "DaumSearch validator"; } //다음검색 검사기
    else if(preg_match("/daum/", $agent))              { $s = "DAUM Robot"; } //다음로봇
    else if(preg_match("/yahooysmcm/", $agent))        { $s = "YahooYSMcm"; } //야후!문맥광고
    else if(preg_match("/yahoocachesystem/", $agent))  { $s = "YahooCacheSystem"; } //야후!캐싱시스템
    else if(preg_match("/yahoo/", $agent))              { $s = "Yahoo! Robot"; } //야후!로봇
    else if(preg_match("/natefeedfetcher/", $agent))    { $s = "NATEFeed Fetcher"; } //네이트FeedFetcher
    else if(preg_match("/egloosfeedfetcher/", $agent))  { $s = "Egloos FeedFetcher"; } //이글루스FeedFetcher
    else if(preg_match("/empas|nate/", $agent))        { $s = "NATE Robot"; } //네이트로봇
    else if(preg_match("/bingpreview/", $agent))        { $s = "BingPreview"; } //BingPreview로봇
    else if(preg_match("/bing/", $agent))              { $s = "Bing Robot"; } //Bing로봇
    else if(preg_match("/msn/", $agent))                { $s = "MSN Robot"; } //MSN로봇
    else if(preg_match("/zum/", $agent))                { $s = "Zum Robot"; } //Zum로봇
    else if(preg_match("/qrobot/", $agent))            { $s = "Qrobot"; } //Qrobot로봇
    else if(preg_match("/archive|ia_archiver/", $agent)){ $s = "Archive Robot"; } //아카이브로봇
    else if(preg_match("/twitter/", $agent))            { $s = "Twitter Robot"; } //Twitter로봇
    else if(preg_match("/facebook/", $agent))          { $s = "Facebook Robot"; } //Facebook로봇
    else if(preg_match("/whois/", $agent))              { $s = "Whois Search Robot"; } //Whois Search로봇
    else if(preg_match("/checkprivacy/", $agent))      { $s = "KISA"; } //한국인터넷진흥원
    //robots.txt로 차단 안되는 로봇
    else if(preg_match("/mj12/", $agent))              { $s = "MJ12bot"; } //MJ12bot
    else if(preg_match("/baidu/", $agent))              { $s = "Baiduspider"; } //Baiduspider
    else if(preg_match("/yandex/", $agent))            { $s = "YandexBot"; } //YandexBot로봇
    else if(preg_match("/Sogou/", $agent))              { $s = "Sogou web spider"; } //Sogou로봇
    else if(preg_match("/tweetedtimes/", $agent))      { $s = "TweetedTimes Bot"; } //TweetedTimes Bot
    else if(preg_match("/discobot/", $agent))          { $s = "Discoveryengine Robot"; } //Discoveryengine로봇
    else if(preg_match("/twiceler/", $agent))          { $s = "Twiceler Robot"; } //Twiceler로봇
    else if(preg_match("/ezooms/", $agent))            { $s = "Ezooms Robot"; } //Ezooms로봇
    else if(preg_match("/wbsearch/", $agent))          { $s = "WBSearchBot"; } //WBSearchBot
    else if(preg_match("/proximic/", $agent))          { $s = "proximic"; } //proximic로봇
    else if(preg_match("/GTWek/", $agent))              { $s = "GTWek"; } //GTWek로봇
    else if(preg_match("/java|python|axel|dalvik|greatnews|hmschnl|huawei|jakarta|netcraft|parrotsite|readability|unwind|pagepeeker|shunix|crystalsemantics|turnitin|komodia|siteIntel|apercite/", $agent))          { $s = "Unknown Robot"; } //Unknown로봇
    else if(preg_match("/cron/", $agent))              { $s = "WebCron"; } //WebCron
    else if(preg_match("/capture/", $agent))            { $s = "WebCapture"; } //WebCapture로봇
    else if(preg_match("/w3c/", $agent))                { $s = "W3C Validator"; } //W3C Validator
    else if(preg_match("/wget/", $agent))              { $s = "Wget Validator"; } //Wget
    //robots.txt로 차단 안되는 로봇 끝
    else if(preg_match("/hanrss/", $agent))            { $s = "HanRSS"; } //HanRSS
    else if(preg_match("/fetcher/", $agent))            { $s = "Feed Fetcher"; } //Feed Fetcher
    else if(preg_match("/feed|reader|rss|greatnews/", $agent))                  { $s = "Feed Reader"; } //Feed Reader
    else if(preg_match("/bot|slurp|scrap|spider|crawl|curl/", $agent))          { $s = "Robot"; }
    else if(preg_match("/docomo/", $agent))                { $s = "DoCoMo"; } //DoCoMo
    else if(preg_match("/windows 95/", $agent))            { $s = "95"; }
    else if(preg_match("/windows nt 4\.[0-9]*/", $agent))  { $s = "NT"; }
    else if(preg_match("/windows nt 5\.0/", $agent))        { $s = "2000"; }
    else if(preg_match("/windows nt 5\.1/", $agent))        { $s = "XP"; }
    else if(preg_match("/windows nt 5\.2/", $agent))        { $s = "2003"; }
    else if(preg_match("/windows nt 6\.0/", $agent))        { $s = "Vista"; }
    else if(preg_match("/windows nt 6\.1/", $agent))        { $s = "Windows7"; }
    else if(preg_match("/windows nt 6\.2/", $agent))        { $s = "Windows8"; }
    else if(preg_match("/windows 9x/", $agent))            { $s = "ME"; }
    else if(preg_match("/windows ce/", $agent))            { $s = "CE"; }
    else if(preg_match("/linux/", $agent))                  { $s = "Linux"; }
    else if(preg_match("/sunos/", $agent))                  { $s = "sunOS"; }
    else if(preg_match("/irix/", $agent))                  { $s = "IRIX"; }
    else if(preg_match("/phone|skt|lge|0450/", $agent))    { $s = "Mobile"; }
    else if(preg_match("/internet explorer/", $agent))      { $s = "IE"; }
    else if(preg_match("/mozilla/", $agent))                { $s = "Mozilla"; }
    else if(preg_match("/macintosh/", $agent))              { $s = "Mac"; }
    else { $s = "기타"; }

    return $s;
}
추천
13

댓글 14개

기기 클릭시

Fatal error: Call to undefined function get_brow() in /home/hosting_users/cgnuxe/www/adm/visit_list.php on line 73

접속자 클릭시


Fatal error: Call to undefined function get_brow() in /home/hosting_users/gnuxe/www/adm/visit_list.php on line 73

오류 메시지가 출력 됩니다.
그누xe 빌더로 사용중인데 빌더때문에 오류가 발생한건지.. 도와주세요ㅠ
전체 3,313 |RSS
그누4 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT