der code
function doparse($post, $allowsmilies, $allowhtml, $allowbbcode, $allowimages) {
// censorship
if ($this->docensor == 1) $post = $this->censor($post);
// cache code
if ($this->usecode == 1 && $allowbbcode == 1) {
$this->tempsave['php'] = array();
$this->tempsave['code'] = array();
$this->index['php'] = -1;
$this->index['code'] = -1;
$post = preg_replace("/(\[(php|code)\])(.*)(\[\/\\2\])/seiU", "\$this->cachecode('\\3','\\2')", $post);
}
// avoid bbcode wrapping
if ($allowbbcode == 1) {
if ($this->done['bbcode'] != 1) $this->getbbcode();
$post = preg_replace($this->search, $this->replace2, $post);
if ($allowimages != 0) $post = preg_replace($this->imgsearch2, $this->imgreplace2, $post);
}
// cache smilies
$allowsmilies = 0; // das nur damit die fehlermeldung nicht mehr erscheint. aber jz gehen keine smilies
if ($allowsmilies == 1) {
if ($this->done['smilies'] != 1) $this->getsmilies();
////// DIESE ZEILE IST WIRFT DIE FEHLERMELDUNG
$post = preg_replace($this->smilie_search, $this->smilie_replace, $post);
}
// wrap text
$post = $this->textwrap($post);
// remove break chars
if ($allowbbcode == 1) {
$post = str_replace($this->breakChar, '', $post);
}
// remove tab
$post = str_replace("\t", " ", $post);
// html
if ($allowhtml == 0) {
$post = htmlconverter($post);
$post = nl2br($post);
}
else $post = preg_replace("/<([\/]?)script([^>]*)>/i", "<\\1script\\2>", $post);
// bbcodes
if ($allowbbcode == 1) {
if ($this->done['bbcode'] != 1) $this->getbbcode();
$post = preg_replace($this->search, $this->replace, $post);
}
else {
$post = preg_replace("/javascript:/i", "java script:", $post);
$post = preg_replace("/vbscript:/i", "vb script:", $post);
}
// images
if ($allowimages != 0) $post = preg_replace($this->imgsearch, $this->imgreplace, $post);
// replace smilies
if ($allowsmilies == 1) $post = preg_replace($this->smilie_search2, $this->smilie_replace2, $post);
// insert code
if ($this->usecode == 1 && $allowbbcode == 1 && ($this->index['php'] != -1 || $this->index['code'] != -1)) $post = $this->replacecode($post);
return $post;
}
danke im vorraus