Technische fiches:

", ">", $bericht); $bericht = str_replace("<", "<", $bericht); $bericht = str_replace("\n","
", $bericht); # Veranderen 'enter' $bericht = str_replace(':)','', $bericht); # Verander smilie $bericht = str_replace(';)','', $bericht); # Verander smilie $bericht = str_replace(':D','', $bericht); # Verander smilie $bericht = str_replace('8)','', $bericht); # Verander smilie $bericht = str_replace(':p','', $bericht); # Verander smilie $bericht = str_replace(':moe','', $bericht); # Verander smilie $bericht = str_replace(':zz','', $bericht); # Verander smilie $bericht = str_replace(':?','', $bericht); # Verander smilie $bericht = str_replace(':(','', $bericht); # Verander smilie # There already is a connection to the db so that part can be skipped here // BBCODE START // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
$bericht = preg_replace("/\[quote\](.*?)\[\/quote\]/si", "
Quote:
\\1

", $bericht); // [b] and [/b] for bolding text. $bericht = preg_replace("/\[b\](.*?)\[\/b\]/si", "\\1", $bericht); // [h1] and [/h1] for bolding text. $bericht = preg_replace("/\[h1\](.*?)\[\/h1\]/si", "

\\1

", $bericht); // [h2] and [/h2] for bolding text. $bericht = preg_replace("/\[h2\](.*?)\[\/h2\]/si", "

\\1

", $bericht); // [i] and [/i] for italicizing text. $bericht = preg_replace("/\[i\](.*?)\[\/i\]/si", "\\1", $bericht); // [u] and [/u] for italicizing text. $bericht = preg_replace("/\[u\](.*?)\[\/u\]/si", "\\1", $bericht); // [s] and [/s] for italicizing text. $bericht = preg_replace("/\[s\](.*?)\[\/s\]/si", "\\1", $bericht); // [ot] and [/ot] for italicizing text. $bericht = preg_replace("/\[ot\](.*?)\[\/ot\]/si", "\\1", $bericht); // [img]image_url_here[/img] code.. $bericht = preg_replace("/\[img\](.*?)\[\/img\]/si", "", $bericht); // Patterns and replacements for URL and email tags.. $patterns = array(); $replacements = array(); // [url]xxxx://www.phpbb.com[/url] code.. $patterns[0] = "#\[url\]([a-z]+?://){1}(.*?)\[/url\]#si"; $replacements[0] = '\1\2'; // [url]www.phpbb.com[/url] code.. (no xxxx:// prefix). $patterns[1] = "#\[url\](.*?)\[/url\]#si"; $replacements[1] = '\1'; // [url=xxxx://www.phpbb.com]phpBB[/url] code.. $patterns[2] = "#\[url=([a-z]+?://){1}(.*?)\](.*?)\[/url\]#si"; $replacements[2] = '\3'; // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix). $patterns[3] = "#\[url=(.*?)\](.*?)\[/url\]#si"; $replacements[3] = '\2'; // [email]user@domain.tld[/email] code.. $patterns[4] = "#\[email\](.*?)\[/email\]#si"; $replacements[4] = '\1'; // [color=colorfull]message[/color] code.. $patterns[3] = "#\[color=(.*?)\](.*?)\[/color\]#si"; $replacements[3] = '\2'; $bericht = preg_replace($patterns, $replacements, $bericht); // EINDE BBCODES return $bericht; } ?>
BASF

Erkende Construction Chemicals partner