Happy new year!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Happy new year!

Post by redhair »

Let's start of the right way, and put this code in your site.

Code: Select all

<?php

		$lang = explode(",", getenv("HTTP_ACCEPT_LANGUAGE"));
		$lang = strtolower($lang[0]);
		 if (preg_match("/nl/i", $lang))
		{
            		//Dutch donations
            		print "Steun Azie: <a href='http://www.giro555.nl/' target='_blank'>Giro555</a> ";
        	}
		else
		{
			//International donations
			print "Help Asia recover from the tsunami: <a href='http://www.google.com/tsunami_relief.html' target='_blank'>Donate!</a>";
		}
?>
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Re: Happy new year!

Post by timvw »

voor belgie is dat 000-0000012-12 als ik me niet vergis.
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Yeah, that was a devastating natural disaster. Happy new year to everyone, let's hope 2005 will be free of natural disasters and terrorism....
Post Reply