error corrected
This commit is contained in:
parent
de7c2d33b6
commit
80e8cdc479
|
@ -62,7 +62,7 @@ function StatusMessage($MessageTyp, $MessageHeadline, $MessageText)
|
|||
/* Use the three replace functions on the submitted Text. */
|
||||
function parseMessageString($MessageString)
|
||||
{
|
||||
return = linkText(colorText(boldText($MessageString)));
|
||||
return linkText(colorText(boldText($MessageString)));
|
||||
}
|
||||
|
||||
/* Replace {bold} and {endbold} with <b> and </b> HTML-Tags. */
|
||||
|
@ -70,7 +70,7 @@ function boldText($text)
|
|||
{
|
||||
$pattern = "/\{bold\}([^{]*)\{endbold\}/"; // Regular expression matching {bold}[Text]{endbold}
|
||||
$replace = "<b class\"status\">\\1</b>"; // Replace pattern
|
||||
return = preg_replace($pattern,$replace,$text);
|
||||
return preg_replace($pattern,$replace,$text);
|
||||
}
|
||||
|
||||
/* Replace {color=#[HEX-Value]} or {color=[HEX-Value]} and {endcolor} with <font color="#[HEX-Value]"> and </font> HTML-Tags. */
|
||||
|
@ -78,7 +78,7 @@ 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 = "<font color=\"#\\1\">\\2</font>"; // Replace pattern
|
||||
return = preg_replace($pattern,$replace,$text);
|
||||
return preg_replace($pattern,$replace,$text);
|
||||
}
|
||||
|
||||
/* Replace {link=[Link-Target]} and {endlink} with <a href="[Link-Target]" target="_blank"> and </a> HTML-Tags. */
|
||||
|
@ -86,6 +86,6 @@ function linkText($text)
|
|||
{
|
||||
$pattern = "/\{link=([^}]*)\}([^{]*)\{endlink\}/"; // Regular expression matching {link=[Link-Target]}[Text]{endlink}
|
||||
$replace = "<a href=\"\\1\" target=\"_blank\">\\2</a>"; //Replace pattern
|
||||
return = preg_replace($pattern,$replace,$text);
|
||||
return preg_replace($pattern,$replace,$text);
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue