punbb-1.2.18/upload/include/parser.php |
punbb-1.2.19/upload/include/parser.php |
102: message($lang_prof_reg['Signature quote/code']); | 102: message($lang_prof_reg['Signature quote/code']); |
103: } | 103: } |
104: | 104: |
105: if (preg_match('#\[url\](.*?)([\[]+?)(.*?)\[/url\]#', $text) || preg_match('#\[url=(.*?)([\[]+?)(.*?)\](.*?)\[/url\]#', $text) || preg_match('#\[url=(.*?)\](.*?)([\[]+?)(.*?)\[/url\]#', $text)) | |
106: message('BBCode can not be nested within [url] tags.'); | |
107: if (preg_match('#\[email\](.*?)([\[]+?)(.*?)\[/email\]#', $text) || preg_match('#\[email=(.*?)([\[]+?)(.*?)\](.*?)\[/email\]#', $text) || preg_match('#\[email=(.*?)\](.*?)([\[]+?)(.*?)\[/email\]#', $text)) | |
108: message('BBCode can not be nested within [email] tags.'); | |
109: | |
110: return trim($text); | 105: return trim($text); |
111: } | 106: } |
112: | 107: |
321: $pattern = array('#\[b\](.*?)\[/b\]#s', | 316: $pattern = array('#\[b\](.*?)\[/b\]#s', |
322: '#\[i\](.*?)\[/i\]#s', | 317: '#\[i\](.*?)\[/i\]#s', |
323: '#\[u\](.*?)\[/u\]#s', | 318: '#\[u\](.*?)\[/u\]#s', |
324: '#\[url\]([^\[]*?)\[/url\]#e', | 319: '#\[url\]([^\[<]*?)\[/url\]#e', |
325: '#\[url=([^\[]*?)\](.*?)\[/url\]#e', | 320: '#\[url=([^\[<]*?)\](.*?)\[/url\]#e', |
326: '#\[email\]([^\[]*?)\[/email\]#', | 321: '#\[email\]([^\[<]*?)\[/email\]#', |
327: '#\[email=([^\[]*?)\](.*?)\[/email\]#', | 322: '#\[email=([^\[<]*?)\](.*?)\[/email\]#', |
328: '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s'); | 323: '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s'); |
329: | 324: |
330: $replace = array('<strong>$1</strong>', | 325: $replace = array('<strong>$1</strong>', |