miniBB ® 

miniBB

® 

Demo

A place to try it out in every way⇒ miniBB.com
 · Start · Polls · Register · Search · Statistics · Manual ·
Everything miniBB Demo / Everything /  
 

Scring Auto-Tabbing And Preformatted Text Tests

 
Author qwerty

Admin 

Photos: 1 
#1 · Posted: 13 Nov 2005 06:22 
script autotabbing..

function badWords(&$fText){     $badAr=explode("\n",str_replace("\r",'',implode('',file(     'badwords.txt'))));     $text=explode(' ',str_replace("\n",' ',str_replace("\r",     '',strtolower($fText))));     foreach($badAr as $bV){         foreach($text as $tk=>$tV){             if($bV==$tV             or(strlen($bV)>=$GLOBALS['tolerance'][0]&&stristr($tV,$b             V))             or(eregi('(['.$GLOBALS['badReg'].']|^)'.$bV.'(['.$             GLOBALS['badReg'].']|$)',$tV))             or(strlen($bV)>=$GLOBALS['tolerance'][1]&&eregi('(['.$             GLOBALS['badReg'].']|^)'.$bV.'(.*)',$tV))){                 $rep='*';                 $ln=strlen(ereg_replace('['.$GLOBALS['badReg'].']                 ','',$tV));                 for($i=1;$i<$ln;$i++) $rep.='*';                 $repSave=$text[$tk];                 $text[$tk]=ereg_replace('[^'.$GLOBALS['badReg'].'                 ].*[^'.$GLOBALS['badReg'].']',$rep,$tV);                 $fText=striReplace($repSave,$text[$tk],$fText);             }         }     } } 
The King of Admins

Author qwerty

Admin 

Photos: 1 
#2 · Posted: 13 Nov 2005 06:22 
preformatted text..

function badWords(&$fText){     $badAr=explode("\n",str_replace("\r",'',implode('',file( 'badwords.txt'))));     $text=explode(' ',str_replace("\n",' ',str_replace("\r", '',strtolower($fText))));     foreach($badAr as $bV){         foreach($text as $tk=>$tV){             if($bV==$tV             or(strlen($bV)>=$GLOBALS['tolerance'][0]&&stristr($tV,$b V))             or(eregi('(['.$GLOBALS['badReg'].']|^)'.$bV.'(['.$ GLOBALS['badReg'].']|$)',$tV))             or(strlen($bV)>=$GLOBALS['tolerance'][1]&&eregi('(['.$ GLOBALS['badReg'].']|^)'.$bV.'(.*)',$tV))){                 $rep='*';                 $ln=strlen(ereg_replace('['.$GLOBALS['badReg'].'] ','',$tV));                 for($i=1;$i<$ln;$i++) $rep.='*';                 $repSave=$text[$tk];                 $text[$tk]=ereg_replace('[^'.$GLOBALS['badReg'].' ].*[^'.$GLOBALS['badReg'].']',$rep,$tV);                 $fText=striReplace($repSave,$text[$tk],$fText);             }         }     } } 
The King of Admins

Author minibrain

Partaker Starter 

#3 · Posted: 29 Mar 2006 20:12 
This is an URL:[url=http://www.kalap.com][/url]

This is a picture:

Everything miniBB Demo / Everything /
 Scring Auto-Tabbing And Preformatted Text Tests

Your Reply Click this icon to move up to the quoted message


  ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

 

Online now: Guests - 2
Members - 0
Max. ever online: 72 [7 Sep 2023 21:51]
Guests - 72 / Members - 0
 
miniBB Demo Powered by Bulletin Board Software miniBB ® Contacts


  ⇑