diff --git a/www-ssl/inc/funktion_user.php b/www-ssl/inc/funktion_user.php index 573a59d8..660e55a1 100755 --- a/www-ssl/inc/funktion_user.php +++ b/www-ssl/inc/funktion_user.php @@ -29,15 +29,9 @@ function TID2Type($TID) { } -function htmlescape($eckig) { +function ReplaceSmilies($eckig) { $neueckig = $eckig; - $neueckig = str_replace("&","&",$neueckig); - $neueckig = str_replace("<","<",$neueckig); - $neueckig = str_replace(">",">",$neueckig); - - // replace smilies - $neueckig = str_replace(";o))","",$neueckig); $neueckig = str_replace(":-))","",$neueckig); $neueckig = str_replace(";o)","",$neueckig); diff --git a/www-ssl/nonpublic/news_output.php b/www-ssl/nonpublic/news_output.php index 5fde6a74..459c332f 100755 --- a/www-ssl/nonpublic/news_output.php +++ b/www-ssl/nonpublic/news_output.php @@ -42,14 +42,12 @@ for ($n = 0 ; $n < $news_rows ; $n++) { // avatar anzeigen? echo DisplayAvatar (mysql_result($Erg, $n, "UID")); echo "
\n"; - echo "". nl2br(mysql_result($Erg, $n, "Text"))."
\n"; + echo "". ReplaceSmilies(nl2br(mysql_result($Erg, $n, "Text"))) ."
\n"; $RefID=mysql_result($Erg, $n, "ID"); $countSQL="SELECT COUNT(*) from news_comments where Refid = '$RefID'"; $countErg = mysql_query($countSQL, $con); $countcom = mysql_result($countErg, 0, "COUNT(*)"); echo "\n\n"; - - } echo "