$MessageTyp";
$MessageHeadline = "
$MessageHeadline
";
$MessageText = "$MessageText
";
echo "
" . $MessageTyp.$MessageHeadline.$MessageText . "
";
}
function parseMessageText($MessageText)
{
$return = linkText(colorText(boldText($MessageText)));
return $return;
}
function boldText($text)
{
$pattern = "/\{bold\}([^{]*)\{endbold\}/";
$replace = "\\1";
$return = preg_replace($pattern,$replace,$text);
return $return;
}
function colorText($text)
{
$pattern = "/\{color=([0-9,a,b,c,d,e,f,A,B,C,D,F]{6})\}([^{]*)\{endcolor\}/";
$replace = "\\2";
$return = preg_replace($pattern,$replace,$text);
return $return;
}
function linkText($text)
{
$pattern = "/\{link=([^}]*)\}([^{]*)\{endlink\}/";
$replace = "\\2";
$return = preg_replace($pattern,$replace,$text);
return $return;
}
?>