First thought... you are just BEGGING to get hacked! You do not validate any of your data!
VALIDATE you DATA!
Anyways you can tweak your code to grab the website from the referrer inside a switch statment:
[php]
<?
function find_redirect($referrer){
if($preg_match('/^myspace^/',$referrer){
return(*);
}else if($preg_match('/^facebook^/',$referrer){
return(2);
}
}
switch(find_redirect($_SERVER["HTTP_REFERER"])){
case *:
// DO THIS FOR MYSPACE
break;
case 2:
// DO THIS FOR FACEBOOK
break
}
?>
[/php]
[url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
[url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
[url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
--------------------------------
[URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
[URL=http://www.syntax******.info]Comming Soon[/URL]