Download Now
Show Your Support
$pagetext=$postinfo[pagetext]; $pagetext = trim(preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $pagetext)); if ($postinfo[visible]) { eval("\$message = \"".gettemplate("quotereply",1,0)."\";"); }
$s = $postinfo[pagetext]; $i = strpos(" " . $s, "/me "); if ($i > 0) { $j = strpos(" " . $s, "<br", $i + 1); $j = ($j == 0) ? strpos(" " . $s, "<", $i + 1) : $j; if ($j != 0) $s = substr($s, 0, $i - 1) . "[color=red]* " . $postinfo[username] . substr($s, $i + 2, $j - $i - 3) . "[/color]" . substr($s, $j - 1, strlen($s)); else $s = substr($s, 0, $i - 1) . "[color=red]* " . $postinfo[username] . substr($s, $i + 2, strlen($s)) . "[/color]"; } $postinfo[pagetext] = $s;