© Сделано на LiveStreet
Дизайн - ©2009 MODx RED Group

$this->config["badwords"]["enabled"] = !is_null($this->Get("badwords")) ? 1 : 0;
$this->config["badwords"]["type"] = !is_null($this->Get("bw")) ? intval($this->Get("bw")) : 1;
if($this->config["badwords"]["enabled"]) {
$badwords = $this->Get("badwords");
$badwords = preg_replace("~([\n\r\t\s]+)~","",$badwords);
$this->config["badwords"]["words"] = explode(",",$badwords);
$this->config["badwords"]["regexp"] = "~" . implode("|",$this->config["badwords"]["words"])."~i";
} Подскажите решение, плз :)