Hi,
I have this code which is placed in class_bbcode.php in Vb forum which will redirect every user who click on a link in a thread to this website www.domain.com however if any link match domainname it will not be redirected. I want to add more exception websites like domain1, domain2 .com so which one is the right coding:
Orignal code:
$exception = 'domainname.com'; //NOT USE www. here and http:// prefix! it's important
if(preg_match('#'.$exception.'#si', $rightlink)) {
return "<a href=\"$rightlink\">$text</a>";
} else {
$rightlink='http://www.domain.com?GO*'.bin2hex($rightlink);
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
}
Is it this one:
$exception = 'domainname.com','domain1',domain2';
or this one:
$exception = ''domainname.com'',"domain1","domain2";
Or this :
$exception = 'domainname.com,domain1,domain2';
If all of these are wrong can anybody provide me with the correct one plz.
Thank you