" . $MessageTyp . ""; // Format $MessageTyp
$MessageTyp = "";
$MessageHeadline = "
" . $MessageHeadline . "
"; // Format $MessageHeadline
$MessageText = "" . $MessageText . "
"; // Format $MessageText
$format = "" . $MessageTyp . " | " . $MessageHeadline . $MessageText . " |
";
for($i=0;$i and HTML-Tags. */
function boldText($text) {
$pattern = "/\{bold\}([^{]*)\{endbold\}/"; // Regular expression matching {bold}[Text]{endbold}
$replace = "\\1"; // Replace pattern
return preg_replace($pattern,$replace,$text);
}
/* Replace {color=#[HEX-Value]} or {color=[HEX-Value]} and {endcolor} with and HTML-Tags. */
function colorText($text) {
$pattern = "/\{color=#?([0-9,a-f,A-F]{6})\}([^{]*)\{endcolor\}/"; // Regular expression matching {color=#[HEX-Value]}[Text]{endcolor} or {color=[HEX-Value]}[Text]{endcolor}
$replace = "\\2"; // Replace pattern
return preg_replace($pattern,$replace,$text);
}
/* Replace {link=[Link-Target]} and {endlink} with and HTML-Tags. */
function linkText($text) {
$pattern = "/\{link=([^}]*)\}([^{]*)\{endlink\}/"; // Regular expression matching {link=[Link-Target]}[Text]{endlink}
$replace = "\\2"; //Replace pattern
return preg_replace($pattern,$replace,$text);
}
?>