[PHP-DB] Checking abuses

2001-05-11 Thread vipin chandran

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
[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Checking abuses

2001-05-11 Thread Kelvin

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
 titlePost 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
brbr
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.phpOK

?
$keyword=array(.com, put all the words
herewop,www.,xxx);

function keywordMatch($left, $keyword,$notpassurl)
{
$left=strtolower($left);
for($index1=0;$index1count($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.incOK


vipin chandran [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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
 [EMAIL PROTECTED]


 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]