Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* $Id: class_parser.php 3030 2007-04-26 00:19:47Z Tikitiki $
| * $Id: class_parser.php 3139 2007-06-18 08:34:28Z chris $
|
*/
/*
| */
/*
|
Zeile 119 | Zeile 119 |
---|
{ // First we split up the contents of code and php tags to ensure they're not parsed. preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
|
{ // First we split up the contents of code and php tags to ensure they're not parsed. preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
|
$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "{{mybb-code}}\n", $message);
| $message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<mybb-code>\n", $message);
|
}
// Always fix bad Javascript in the message.
| }
// Always fix bad Javascript in the message.
|
Zeile 168 | Zeile 168 |
---|
{ $code = $this->mycode_parse_php($text[2]); }
|
{ $code = $this->mycode_parse_php($text[2]); }
|
$message = preg_replace("#\{\{mybb-code\}\}\n?#", $code, $message, 1);
| $message = preg_replace("#\<mybb-code>\n?#", $code, $message, 1);
|
} } }
| } } }
|