Und zwar völlig unabhängig ob HTML aktiviert ist oder nicht und ohne jegliche Einschränkung der HTML-Tags!
- Code: Alles auswählen
#
#-----[ OPEN ]----------------------------------------------------------------
#
functions_post.php
#
#-----[ FIND ]----------------------------------------------------------------
#
global $board_config, $html_entities_match, $html_entities_replace;
#
#-----[ IN-LINE FIND ]--------------------------------------------------------
#
$html_entities_replace
#
#-----[ IN-LINE AFTER, ADD ]--------------------------------------------------
#
, $userdata
#
#-----[ FIND ]----------------------------------------------------------------
#
if ($html_on)
#
#-----[ REPLACE WITH ]--------------------------------------------------------
#
if ($html_on || $userdata['user_level'] == ADMIN)
#
#-----[ FIND ]----------------------------------------------------------------
#
$allowed_html_tags = split(',', $board_config['allow_html_tags']);
#
#-----[ BEFORE, ADD ]---------------------------------------------------------
#
if ( $userdata['user_level'] == ADMIN )
{
#
#-----[ FIND ]----------------------------------------------------------------
#
}
else
{
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
}
#
#-----[ BEFORE, ADD ]---------------------------------------------------------
#
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------
#
# EoM
[center]Achtung!!!
Dieses Snippet ist "quick and dirty".
Es öffnet usern mit Adminrechten Tür und Tor![/center]