iPhone Sniffer

Out of context: Reply #2

  • Started
  • Last post
  • 10 Responses
  • dbloc0

    found this......does it look up to date?

    function checkmobile(){

    if(isset($_SERVER["HTTP_X_WAP_PR... return true;

    if(preg_match("/wap\.|\.wap/i... return true;

    if(isset($_SERVER["HTTP_USER_AGE...

    // Quick Array to kill out matches in the user agent
    // that might cause false positives

    $badmatches = array("OfficeLiveConnector","MSI... 8\.0","OptimizedIE8","MSN\ Optimized","Creative\ AutoUpdate","Swapper");

    foreach($badmatches as $badstring){
    if(preg_match("/".$badstring."/i... return false;
    }

    // Now we'll go for positive matches

    $uamatches = array("midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem", "sony", "alcatel", "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\d\d\di", "moto","webos");

    foreach($uamatches as $uastring){
    if(preg_match("/".$uastring."/i... return true;
    }

    }
    return false;
    }

    • pretty sure there is a simple CSS method you can use, try adding "CSS" to your poorly formed search query.NONEIS
    • I didn't write this....I know jack shit about JSdbloc

View thread