i am not sure if you understand
all my functions are called as
PHP Code:
function blockAccess
these are the badcookies
PHP Code:
global $forbidbad, $badcookie
this is the full code
PHP Code:
function blockAccess($message) {
global $forbidbad, $badcookie, $myredir;
if ($forbidbad == true) {
writeCookie($badcookie, $message, $myredir);
}
echo
<<<HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>403 Forbidden</title>
<meta name="robots" content="noindex" />
</head>
<BODY>
<H1>! Forbidden !</H1>
<BR>
<P>You have been taken to this page for a reason :
<P>A) your a bad bot.
<P>B) you maybe a spammer.
<P>C) You may of been blacklisted
</BODY>
</html>
HTML;
die();
}
i want to remove
PHP Code:
echo
<<<HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>403 Forbidden</title>
<meta name="robots" content="noindex" />
</head>
<BODY>
<H1>! Forbidden !</H1>
<BR>
<P>You have been taken to this page for a reason :
<P>A) your a bad bot.
<P>B) you maybe a spammer.
<P>C) You may of been blacklisted
</BODY>
</html>
HTML;
die();
}
so that i can create a redirect using my current function
PHP Code:
function blockAccess
i need it to actually redirect to a chosen URL thats in this variable
PHP Code:
$myredir = $vbulletin->options['redirecturl'];