summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-21 00:13:51 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-21 00:13:51 +0000
commit1f312f39c9dd0b87d5a7f6eee68ca357a844fd00 (patch)
tree90ac9f4d306d8534a67ce6235e9f101be8bb80c1 /www-ssl
parent1820b5c14d13e54867084da5b188155fc0956997 (diff)
smilies werden wieder angezeigt
git-svn-id: svn://svn.cccv.de/engel-system@74 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl')
-rwxr-xr-xwww-ssl/inc/funktion_user.php8
-rwxr-xr-xwww-ssl/nonpublic/news_output.php4
2 files changed, 2 insertions, 10 deletions
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("&","&amp;",$neueckig);
- $neueckig = str_replace("<","&lt;",$neueckig);
- $neueckig = str_replace(">","&gt;",$neueckig);
-
- // replace smilies
-
$neueckig = str_replace(";o))","<img src=\"./inc/smiles/icon_redface.gif\">",$neueckig);
$neueckig = str_replace(":-))","<img src=\"./inc/smiles/icon_redface.gif\">",$neueckig);
$neueckig = str_replace(";o)","<img src=\"./inc/smiles/icon_wind.gif\">",$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 "</p>\n";
- echo "<p class='answer'>". nl2br(mysql_result($Erg, $n, "Text"))."</p>\n";
+ echo "<p class='answer'>". ReplaceSmilies(nl2br(mysql_result($Erg, $n, "Text"))) ."</p>\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 "<p class='comment' align='right'><a href=\"./news_comments.php?nid=$RefID\">$countcom comments</a></p>\n\n";
-
-
}
echo "<div align=\"center\">\n\n";