No más internet explorer 6 (php)

Posted: July 28th, 2009 | Author: montes | Filed under: programacion | No Comments »

En apoyo a la campaña IE6 Must Die dejo un código en PHP para que añadáis a vuestros proyectos y juntos consigamos que de una vez nadie use Internet Explorer 6.

if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') != FALSE)
{
	echo "<h2>Estás usando Internet Explorer 6, un navegador totalmente desfasado, por favor actualízalo y ayudanos a conseguir un internet mejor.</h2>";
	echo "<h2>You are using Internet Explorer 6, a totally outdated browser, please update it and help us get a better internet.</h2>";
	echo "<br />";
	echo "<center>";
	echo "<h3>Descárgate uno de estos - Download one of these</h3>";
	echo "<br />";
	echo "<a href='http://www.mozilla.com/firefox/'>Mozilla Firefox</a><br />";
	echo "<a href='http://www.microsoft.com/windows/internet-explorer/'>Internet Explorer</a><br />";
	echo "<a href='http://www.opera.com/'>Opera</a><br />";
	echo "<a href='http://www.google.com/chrome/'>Google Chrome</a><br />";
	echo "<a href='http://www.apple.com/safari/'>Apple Safari</a><br />";
	echo "</center>";
	return;
}


Leave a Reply