Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #19875

firefox mobile

From Enrico Maria Chellini <em_NOSPAM_chella@1aait.com>
Newsgroups it.comp.www.php
Subject firefox mobile
Date 2015-09-10 11:53 +0200
Organization http://www.bitit.it
Message-ID <msrjv5$rf4$2@speranza.aioe.org> (permalink)

Show all headers | View raw


qualcuno sa che si deve mettere come user agent per firefox mobile?

  $my_user_agent = strtolower($_SERVER["HTTP_USER_AGENT"]);
if
  (
  strpos($my_user_agent, "alcatel") === FALSE &&
  strpos($my_user_agent, "benq") === FALSE &&
  strpos($my_user_agent, "blackberry") === FALSE &&
  strpos($my_user_agent, "ericsson") === FALSE &&
  strpos($my_user_agent, "galaxy") === FALSE &&
  strpos($my_user_agent, "iphone") === FALSE &&
  strpos($my_user_agent, "ipod") === FALSE &&
  strpos($my_user_agent, "lg") === FALSE &&
  strpos($my_user_agent, "motorola") === FALSE &&
  strpos($my_user_agent, "nec-") === FALSE &&
  strpos($my_user_agent, "nokia") === FALSE &&
  strpos($my_user_agent, "sagem") === FALSE &&
  strpos($my_user_agent, "samsung") === FALSE &&
  strpos($my_user_agent, "sanyo") === FALSE &&
  strpos($my_user_agent, "sharp") === FALSE &&
  strpos($my_user_agent, "sie-") === FALSE &&
  strpos($my_user_agent, "sony") === FALSE &&
  strpos($my_user_agent, "panasonic") === FALSE &&
  strpos($my_user_agent, "playstation portable") === FALSE &&
  strpos($my_user_agent, "philips") === FALSE &&
     strpos($my_user_agent, "opera mobi") === FALSE &&
     strpos($my_user_agent, "opera mini") === FALSE &&
        strpos($my_user_agent, "?????????firefox?????????") === FALSE
  )
{

}
else
{
 // carica il sito mobile
 echo "<script language=\"javascript\">
      top.location.href = \"http://m.xxxxxxx.it/".$pagina."\";
      </script>";
}  

Back to it.comp.www.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

firefox mobile Enrico Maria Chellini <em_NOSPAM_chella@1aait.com> - 2015-09-10 11:53 +0200
  Re: firefox mobile Alessandro Pellizzari <shuriken@amiran.it> - 2015-09-10 14:38 +0000
    Re: firefox mobile Enrico Maria Chellini <em_NOSPAM_chella@1aait.com> - 2015-09-10 17:01 +0200

csiph-web