Ver Mensaje Individual
  #15 (permalink)  
Antiguo 05/10/2005, 08:18
papixulooo
 
Fecha de Ingreso: septiembre-2005
Mensajes: 101
Antigüedad: 18 años, 7 meses
Puntos: 0
Cita:
Iniciado por Takitei
Por cierto, ya salio Firefox 1.0.7. Get Updated!
cierto ¡GET UPDATED!

libero la versión 2.5 beta

he intentado que reconozca el navegador mozilla firefox, en caso de que lo haga
mostraria un mensaje preguntando al usuario si sabe que puede poner extensiones y temas...

hasta aquí un buen avanze, en un futuro espero que reconozca los mas importantes, y muestre un mensaje distinto para cada uno.

por favor que alguien lo pruebe, por lo motivos que comente antes no puedo :

si no muestra el mensaje correcto con mozilla firefox es que esta mal escrita la forma como lo detecta el server.

gefirefox.php Versión 2.5 beta
Código PHP:
<?php
///////////////////////////////////////////////////
/*               Get Firefox 2.5                 */
/*           Por Alexis Carrasco Muñoz           */
/* Este archivo deberá ser incluido en la página */
/*             Bajo licencia GPL                 */
/*        Prohibido el ánimo de lucro            */
///////////////////////////////////////////////////

/*Si el usuario usa Mozilla Firefox*/

if (eregi ("Mozilla Firefox"$HTTP_USER_AGENT)) {

echo (
"<table width='40%'  border='0'>
  <tr>
    <td colspan='2'><div align='center'>Veo que utilizas<em> Mozilla Firefox</em></div></td>
  </tr>
  <tr>
    <td><div align='center'>¿Sab&iacute;as que puedes ponerle <a href='https://addons.mozilla.org/themes/?application=firefox'>skins</a> y <a href='https://addons.mozilla.org/extensions/?application=firefox'>extensiones</a>?</div></td>
    <td><span class='prod'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://www.mozilla-europe.org/es/product-firefox.png' alt='Mozilla Firefox' width='60' height='60' border='0'></a></span></td>
  </tr>
  <tr>
    <td colspan='2'><div align='center'>&iexcl;Nosotros tambien utilizamos <a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a>!</div></td>
  </tr>
</table>\n"
);

/*Si el usuario usa Microsoft Internet Explorer*/

if (eregi ("MSIE"$HTTP_USER_AGENT)) {

echo (
"<table width='40%'  border='0'>
  <tr>
    <td colspan='2'><div align='center'>Veo que utilizas<em> Microsoft Internet Explorer</em></div></td>
  </tr>
  <tr>
    <td><div align='center'>¿Sab&iacute;as de la inseguridad de este navegador?</div></td>
    <td><span class='prod'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://www.mozilla-europe.org/es/product-firefox.png' alt='Mozilla Firefox' width='60' height='60' border='0'></a></span></td>
  </tr>
  <tr>
    <td colspan='2'><div align='center'>Nosotros utilizamos <a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a> ¡Pru&eacute;balo!</div></td>
  </tr>
</table>\n"
);

/*Si el usuario usa un navegador distinto*/

} else {

echo (
"<table width='50%'  border='0'>
  <tr>
    <td>      <p align='center'>No sabemos que navegador usas<em></em></p></td>
    <td rowspan='5'><div align='center'><span class='prod'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://www.mozilla-europe.org/es/product-firefox.png' alt='Mozilla Firefox' width='60' height='60' border='0'></a></span></div></td>
  </tr>
  <tr>
    <td><div align='center'>Pero...</div></td>
  </tr>
  <tr>
    <td><div align='center'>
      <p>¿Tiene navegaci&oacute;n con pesta&ntilde;as?</p>
      </div></td>
  </tr>
  <tr>
    <td><div align='center'>&iquest;Es de c&oacute;digo abierto? </div></td>
  </tr>
  <tr>
    <td><div align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a> si tiene todo esto y m&aacute;s&iexcl;Pru&eacute;balo!</div></td>
  </tr>
</table>\n" 
);

}

?>