1){ $nav = "
"; } else{ $nav = " "; } include "./form.inc"; if(file_exists("footer_$TableName.inc")){ include "./footer_$TableName.inc"; } else{ include "./footer.inc"; } exit(); } if(file_exists("censor_$TableName.inc")){ include "./censor_$TableName.inc"; } else{ include "./censor.inc"; } $blurb = "@!#$"; $cnt = count($profan); if ( $cnt > 0 ){ $a=0; While($a<$cnt){ $sWord = $profan[$a]; if(strstr(strtoupper($author), strtoupper($sWord))){ if(strtoupper($author)==strtoupper($sWord)) $author=$blurb; $author = eregi_replace("^$sWord([^a-zA-Z])", "$blurb\\1", $author); $author = eregi_replace("([^a-zA-Z])$sWord$", "\\1$blurb", $author); while(eregi("([^a-zA-Z])($sWord)([^a-zA-Z])", $author)){ $author = eregi_replace("([^a-zA-Z])($sWord)([^a-zA-Z])", "\\1$blurb\\3", $author); } } if(strstr(strtoupper($subject), strtoupper($sWord))){ if(strtoupper($subject)==strtoupper($sWord)) $subject=$blurb; $subject = eregi_replace("^$sWord([^a-zA-Z])", "$blurb\\1", $subject); $subject = eregi_replace("([^a-zA-Z])$sWord$", "\\1$blurb", $subject); while(eregi("([^a-zA-Z])($sWord)([^a-zA-Z])", $subject)){ $subject = eregi_replace("([^a-zA-Z])($sWord)([^a-zA-Z])", "\\1$blurb\\3", $subject); } } if(strstr(strtoupper($email), strtoupper($sWord))){ if(strtoupper($email)==strtoupper($sWord)) $email=""; $email = eregi_replace("^$sWord([^a-zA-Z])", "$blurb\\1", $email); $email = eregi_replace("([^a-zA-Z])$sWord$", "\\1$blurb", $email); while(eregi("([^a-zA-Z])($sWord)([^a-zA-Z])", $email)){ $email = eregi_replace("([^a-zA-Z])($sWord)([^a-zA-Z])", "\\1$blurb\\3", $email); } } if(strstr(strtoupper($body), strtoupper($sWord))){ if(strtoupper($body)==strtoupper($sWord)) $body=$blurb; $body = eregi_replace("^$sWord([^a-zA-Z])", "$blurb\\1", $body); $body = eregi_replace("([^a-zA-Z])$sWord$", "\\1$blurb", $body); while(eregi("([^a-zA-Z])($sWord)([^a-zA-Z])", $body)){ $body = eregi_replace("([^a-zA-Z])($sWord)([^a-zA-Z])", "\\1$blurb\\3", $body); } } $a++; } } if($UseCookies){ $name_cookie="phorum_name_$TableName"; $email_cookie="phorum_email_$TableName"; if((!IsSet($$name_cookie)) || ($$name_cookie != $author)) { SetCookie("phorum_name_$TableName",$author,time()+ 31536000); } if((!IsSet($$email_cookie)) || ($$email_cookie != $email)) { SetCookie("phorum_email_$TableName",$email,time()+ 31536000); } } $author = stripslashes($author); $email = stripslashes($email); $subject = stripslashes($subject); $body = stripslashes($body); $author = str_replace("'", "\\'", $author); $email = str_replace("'", "\\'", $email); $subject = str_replace("'", "\\'", $subject); $body = str_replace("'", "\\'", $body); $datestamp = date("Y-m-d H:i:s"); $author = htmlspecialchars($author); $email = htmlspecialchars($email); $subject = htmlspecialchars($subject); if(($email==$ModPass && $ModPass!="") || ($email==$Password && $Password!="")){ $email=$Mod; $author = "$author"; $subject = "$subject"; $body="$body"; $host="$StaffHost"; } else{ $body=eregi_replace("*HTML>", "", $body); if($AllowHtml){ $body="$body"; } } $id=$DB->nextid($TableName); if($id==0){ echo "Error getting nextval."; exit(); } if($thread==0){ $thread=$id; } else{ $more = $thread+1; $more = "&action=-1&thread=$more"; } $sSQL = "Insert Into $BodiesTable values ($id, '$body', '$thread')"; $q->query($DB, $sSQL); if(!$q->result){ echo $q->error()."