looks like i was wrong.
Try this. Put following code after DO NOT CHANGE section, so it will look like this (strpos_array function was copied from php.net)
####################################################################
### DO NOT CHANGE BELOW
####################################################################
function strpos_array($haystack, $needles) {
if ( is_array($needles) ) {
foreach ($needles as $str) {
if ( is_array($str) ) {
$pos = strpos_array($haystack, $str);
} else {
$pos = strpos($haystack, strtoupper($str));
}
}
} else {
return strpos($haystack, strtoupper($needles));
}
}
define your domains as follows (instead of
define('ALLOWED_REFERRER'...) )
$ALLOWED_REFERRER = array('mydomain.com','yourdomain.net');
replace this:
strpos(strtoupper($_SERVER['HTTP_REFERER']),strtoupper(ALLOWED_REFERRER)) === false)
with this:
strpos_array(strtoupper($_SERVER['HTTP_REFERER']),$ALLOWED_REFERRER) === false)
and find all entries of text ALLOWED_REFERRER (there are 3 entries in the file) and make sure each of them have dollar $ before them (no spaces)