Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv2985/phpslash-ft/class
Modified Files:
functions.inc Comment.class
Log Message:
censor -> psl_censor
Index: functions.inc
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v
retrieving revision 1.98
retrieving revision 1.99
diff -C2 -d -r1.98 -r1.99
*** functions.inc 13 Mar 2002 22:11:03 -0000 1.98
--- functions.inc 10 Apr 2002 03:03:42 -0000 1.99
***************
*** 742,746 ****
/**
! * function censor - returns a "censored" string
*
* The string is matched against an array of words not accepted.
--- 742,746 ----
/**
! * function psl_censor - returns a "censored" string
*
* The string is matched against an array of words not accepted.
***************
*** 771,775 ****
*/
! function censor( $string, $replacement="", $censorfile="") {
global $_PSL;
--- 771,775 ----
*/
! function psl_censor( $string, $replacement="", $censorfile="") {
global $_PSL;
Index: Comment.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/Comment.class,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** Comment.class 3 Feb 2002 02:49:39 -0000 1.23
--- Comment.class 10 Apr 2002 03:03:43 -0000 1.24
***************
*** 581,588 ****
if ( $this->psl["censorfile"]) {
! $ary['name'] = censor($ary['name']);
! $ary['email'] = censor($ary['email']);
! $ary['subject'] = censor($ary['subject']);
! $ary['comment_text'] = censor($ary['comment_text']);
}
return $ary;
--- 581,588 ----
if ( $this->psl["censorfile"]) {
! $ary['name'] = psl_censor($ary['name']);
! $ary['email'] = psl_censor($ary['email']);
! $ary['subject'] = psl_censor($ary['subject']);
! $ary['comment_text'] = psl_censor($ary['comment_text']);
}
return $ary;
|