/*
+---------------------------------------------------------------------------+
|META-Tags (ml=Meta-Language) in HTML konvertieren. |
+---------------------------------------------------------------------------+
|Folgende ml-Tags werden nach HTML konvertiert
|URL:
| von: [URL=http://www.google.de]Google[/URL]
| nach: <a href=[url]http://www.google.de>Google</a>[/url]
| von: [URL=http://www.google.de]Google[/URL]
| nach: <a href=[url]http://www.google.de>Google</a>[/url]
|IMAGES:
| von: [img]
| nach: <img src=image/star.bmp alt=image/star.bmp>
| von: [img]image/star.bmp[/IMG]
| nach: <img src=image/star.bmp alt=image/star.bmp>
|BOLD:
| von: [B]
| nach: <b>
| von: [/B]
| nach: </b>
|ITALIC:
| von: [I]
| nach: <i>
| von: [/I]
| nach: </i>
|UNDERLINDED:
| von: [U]
| nach: <u>
| von: [/U]
| nach: </u>
|COLOR:
| von: [COLOR=red]
| nach: <font color=red>
| von: [COLOR=red]
| nach: <font color=red>
| von: [/COLOR]
| nach: </font>
|SIZE:
| von: [SIZE=2]
| nach: <font size=2>
| von: [SIZE=2]
| nach: <font size=2>
| von: [/SIZE]
| nach: </font>
|QUOTE
| von: [QUOTE=name]
| nach: <blockquote><font face=arial size=2><b>name</b></font>&nbsp;
| <font face=arial size=1>schrieb:</font><hr><br />
| von: [quote][/QUOTE]
| nach <hr></blockquote><br />
+---------------------------------------------------------------------------+
*/
function META_HTML() {
global $CONFIGURE;
// URL
$this->text = $this->yv_preg_replace('/\[URL\=\([^\]*)\\]([^\[]*)\[\/URL\]/i' ,'<a href=$1>$2</a>',$this->text);
$this->text = $this->yv_preg_replace('/\[URL\=([^\]]*)\]([^\[]*)\[\/URL\]/i' ,'<a href=$1>$2</a>',$this->text);
// IMG
$this->text = $this->yv_preg_replace('/\[img]([^]]*)\[\/IMG\]/i','<img src=$1 alt=$1>',$this->text);
$this->text = $this->yv_preg_replace('/\[img]*)\]/i','<img src=$1 alt=$1>',$this->text);
// Bold
$this->text = $this->yv_preg_replace('/\[B\]/i',-><b>' ,$this->text);
$this->text = $this->yv_preg_replace('/\[\/B\]/i',-></b>' ,$this->text);
// Italic
$this->text = $this->yv_preg_replace('/\[I\]/i',-><i>' ,$this->text);
$this->text = $this->yv_preg_replace('/\[\/I\]/i',-></i>' ,$this->text);
// Underlined
$this->text = $this->yv_preg_replace('/\[U\]/i',-><u>' ,$this->text);
$this->text = $this->yv_preg_replace('/\[\/U\]/i',-></u>' ,$this->text);
// Font-Color
$this->text = $this->yv_preg_replace('/\[COLOR\=\([^\]*)\\]/i',-><font color=$1>',$this->text);
$this->text = $this->yv_preg_replace('/\[\/COLOR]/i',-></font>',$this->text);
$this->text = $this->yv_preg_replace('/\[COLOR\=([^\]]*)\]/i',-><font color=$1>',$this->text);
// Font-Size
$this->text = $this->yv_preg_replace('/\[SIZE\=\([^\]*)\\]/i',-><font size=$1>',$this->text);
$this->text = $this->yv_preg_replace('/\[\/SIZE]/i',-></font>',$this->text);
$this->text = $this->yv_preg_replace('/\[SIZE\=([^\]]*)\]/i',-><font color=$1>',$this->text);
// Quote
$this->text = $this->yv_preg_replace('/\[QUOTE\=([^\]]*)\]/i',
-><blockquote><font face='.$CONFIGURE['font'].' size=2><b>$1</b></font>&nbsp;'
.'<font face='.$CONFIGURE['font'].' size=1>'.$CONFIGURE['quote'].'</font><hr><br />',
$this->text);
$this->text = $this->yv_preg_replace('/\[QUOTE\]/i',
-><blockquote><font face='.$CONFIGURE['font'].' size=2>'
.'<b>'.$CONFIGURE['quote-unknown'].'</b></font><hr><br />',
$this->text);
$this->text = preg_replace('/\[\/QUOTE\]/i','<hr></blockquote><br />',$this->text);
return $this->text;
}