1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iOS detection function in XenForo 1.2?

Discussion in 'XenForo Development Discussions' started by Marcus, Jul 21, 2013.

  1. Marcus

    Marcus Well-Known Member

    Is there an updated OS detection in XenForo 1.2? Currently I use this:
    $iPod stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
    $iPhone stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
    $iPad stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
    $MacOSX stripos($_SERVER['HTTP_USER_AGENT'],"Mac ");

    $iPod || $iPhone || $iPad || $MacOSX){
    $AppleUser 1;

Share This Page