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


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

firefox mobile

Started byEnrico Maria Chellini <em_NOSPAM_chella@1aait.com>
First post2015-09-10 11:53 +0200
Last post2015-09-10 17:01 +0200
Articles 3 — 2 participants

Back to article view | Back to it.comp.www.php


Contents

  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

#19875 — firefox mobile

FromEnrico Maria Chellini <em_NOSPAM_chella@1aait.com>
Date2015-09-10 11:53 +0200
Subjectfirefox mobile
Message-ID<msrjv5$rf4$2@speranza.aioe.org>
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>";
}  

[toc] | [next] | [standalone]


#19876

FromAlessandro Pellizzari <shuriken@amiran.it>
Date2015-09-10 14:38 +0000
Message-ID<d5dj02Fpi8nU1@mid.individual.net>
In reply to#19875
On Thu, 10 Sep 2015 11:53:42 +0200, Enrico Maria Chellini wrote:

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

Non usare l'agent detection. Usa le media query o eventualmente metti un 
link per passare tra versione mobile e versione desktop.

Sono più o meno 10 anni che tutti dicono di evitare l'agent detection. 
Non mi aspettavo ancora questo tipo di domanda nel 2015...

Bye.

[toc] | [prev] | [next] | [standalone]


#19877

FromEnrico Maria Chellini <em_NOSPAM_chella@1aait.com>
Date2015-09-10 17:01 +0200
Message-ID<mss5vt$8de$1@speranza.aioe.org>
In reply to#19876
Alessandro Pellizzari wrote:

> On Thu, 10 Sep 2015 11:53:42 +0200, Enrico Maria Chellini wrote:
> 
>> qualcuno sa che si deve mettere come user agent per firefox mobile?
> 
> Non usare l'agent detection. Usa le media query o eventualmente metti un
> link per passare tra versione mobile e versione desktop.
> 
> Sono più o meno 10 anni che tutti dicono di evitare l'agent detection.
> Non mi aspettavo ancora questo tipo di domanda nel 2015...
> 
> Bye.

hum!? 

hai qualche link? 

grazie

[toc] | [prev] | [standalone]


Back to top | Article view | it.comp.www.php


csiph-web