The function check_porn_terms
below checks to see if a variable contains terms that are not family friendly, and it it does, then re-directs the user back to the main page.
As listed below, it checks to see if the variable $title
has non-family friendly terms. I would like to perform this check on another variable, $cleanurl
. Could I just replace check_porn_terms($title)
below with check_porn_terms($title, $cleanurl)
or something like that? If not, how should I do it?
Thanks in advance,
John
if(!check_porn_terms($title))
{
session_write_close();
header("Location:http://www.domain.com/index.php");
exit;
}