Re: Checking abuses
| From: | Kelvin | Date: | Fri, 11 May 2001 18:38:53 +0000 |
| Subject: | Re: Checking abuses | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9259@lists.php.net to get a copy of this message | ||
Hi Vipin,
Don't want to explain to much , I have my code here , you can look at
it and put it into your coding.
P.S ---- don't worry, the code is working fine.
----------------------------------------------------------------------------
---
<html>
<head>
<title>Post Board</title>
</head>
<body>
<div align="center">
<form action="filename.php" method="POST">
<font face="Arial, Helvetica, sans-serif" size="3"
color="#ff6600">
<textarea name="comment" cols="45" rows="9"></textarea>
</font>
<br><br>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
--------------------------------------Save as
yourfilename.php-----------------------------------OK
And than,
<?
include("newvetting.inc");
keywordMatch($comment,$keyword,"yourfilename.php");
////// if everything is ok----- put your script at below, otherwise it will
return back to yourfilename.php...
.............
..............
.............
?>
-----------------------------------Save as
filename.php----------------------------OK
<?
$keyword=array(".com",---- put all the words
here............"wop","www.","xxx");
function keywordMatch($left, $keyword,$notpassurl)
{
$left=strtolower($left);
for($index1=0;$index1<count($keyword);$index1++)
{
$strvalkeyword=strval($keyword[$index1]);
$strmatch=strstr($left, $strvalkeyword);
if ($strmatch!="")
{
Header("location:$notpassurl\n");
exit();
}/*end if*/
}/*end inner for*/
}/*end function*/
?>
----------------------------------------Save as
newvetting.inc--------------------OK
"vipin chandran" <whoosh_vc@postmark.net> wrote in message
news:20010511185250.16447.qmail@venus.postmark.net...
> Hi,
> I am presently develepong a message board system. Can anyone tell me
> how to prevent abuses in the messages posted in the message board,
> from getting displayed?.
>
> thanx,
> vipin.
>
> vipin chandran
> whoosh_vc@postmark.net
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>