1
zer0fill
*RESOLVED* Specific censor replacement (making include() in "module.textsanitizer.php")
  • 2004/7/2 7:19

  • zer0fill

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/12/2


I'm trying to make my customized text replacement in an external file so there is only need to edit 1 line of code, the include() statement in the list of $patterns/$replacements but can't seem to get it working.

"module.textsanitizer.php"
$patterns[] = "/[u](.*)[/u]/sU";
$replacements[] = '\1';
$patterns[] = "/[d](.*)[/d]/sU";
$replacements[] = '\1';
include_once(
'custom_text_replacement.php');
...


"custom_text_replacement.php"
$patterns[] = "/bub/isU";
$replacements[] = 'yo[u]';
?>


If I move the contents of custom_text_replacement into the include_once() line, it'll work fine.

my file was mis-spelled

Login

Who's Online

328 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 328


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits