Ver Mensaje Individual
  #32 (permalink)  
Antiguo 06/10/2005, 11:40
papixulooo
 
Fecha de Ingreso: septiembre-2005
Mensajes: 101
Antigüedad: 18 años, 7 meses
Puntos: 0
y quien dice 4.0 dice 5.0beta

jeje

he quitado el "diseño" con tablas

son etiquetas div

añadido soporte para netscape (beta) por beta pos pq no lo he probao y el agent switcher no lo detecta bien.

sergiold tienes mucha razon cuando sale el echo de firefox o explorer sale tambien el de navegador desconocido...jeje

venga a ver quien me ayuda a solucionar esas dos cositas, que yo ya he echo bastante, aparte teneis mencion en el codigo

ahi va

getfirefox.php Version 5.0beta
Código PHP:
<?php
///////////////////////////////////////////////////
/*               Get Firefox 5.0beta             */
/*           Por Alexis Carrasco Muñoz           */
/*       Y la gente de www.forosdelweb.com       */
/* 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 ("firefox"$_SERVER['HTTP_USER_AGENT']))
{
echo (
"<div>
  <p align='center'>Veo que utilizas<em> Mozilla Firefox</em></p>
  <p 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>?</p>
  <p align='center'>&iexcl;Nosotros tambien utilizamos <a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a>!</p>
  <p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://sfx-images.mozilla.org/affiliates/Buttons/80x15/blue_1.gif' alt='' border='0'></p>
</div>"
);
}
/*Si el usuario usa Microsoft Internet Explorer*/

if (eregi ("MSIE"$_SERVER['HTTP_USER_AGENT']))
{
echo (
"<div>
<p align='center'>Veo que utilizas<em> Microsoft Internet Explorer</em></p>
<p align='center'>¿Sab&iacute;as de la inseguridad de este navegador?</p>
<p align='center'>Nosotros utilizamos <a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a> ¡Pru&eacute;balo!</p>
<p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://sfx-images.mozilla.org/affiliates/Buttons/80x15/blue_1.gif' alt='' border='0'></a></p>
</div>"
);
}

/*Si el usuario usa Opera*/

if (eregi ("opera"$_SERVER['HTTP_USER_AGENT']))
{
echo (
"<div>
<p align='center'>Sabemos que utilizas Opera</p>
<p align='center'>Pero...<em></em></p>
<p align='center'>¿Conoces las ventajas de un navegador de codigo abierto?</p>
<p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a> es de codigo abierto ¡Pru&eacute;balo!</p>
<p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://sfx-images.mozilla.org/affiliates/Buttons/80x15/blue_1.gif' alt='' border='0'></a></p>
</div>"
);

/*Si el usuario usa Netscape*/

if (eregi ("netscape"$_SERVER['HTTP_USER_AGENT']))
{
echo (
"<div>
<p align='center'>Sabemos que utilizas Netscape</p>
<p align='center'>Pero...<em></em></p>
<p align='center'>¿Conoces las ventajas de un navegador de codigo abierto?</p>
<p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><strong>Mozilla Firefox</strong></a> es de codigo abierto ¡Pru&eacute;balo!</p>
<p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://sfx-images.mozilla.org/affiliates/Buttons/80x15/blue_1.gif' alt='' border='0'></a></p>
</div>"
);
}

/*Si el usuario usa un navegador distinto*/

} else {

echo (
"<div>
<p align='center'>No sabemos que navegador usas</p>
<p align='center'>Pero...</p>
<p align='center'>¿Tiene navegaci&oacute;n con pesta&ntilde;as?</p>
<p align='center'>&iquest;Es de c&oacute;digo abierto? </p>
<p 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!</p>
<p align='center'><a href='http://www.mozilla-europe.org/es/products/firefox/'><img src='http://sfx-images.mozilla.org/affiliates/Buttons/80x15/blue_1.gif' alt='' border='0'></a></p>
</div>" 
);
}

?>
bueno venga a probar y a colaborar