From 503eced32793e984540a90a30ccd140558780442 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 8 Sep 2002 16:13:10 +0000 Subject: [PATCH] Added height and width to smiley icons, to make emails look better in circumstances where external images are blocked (eg some webmail programs like squirrelmail). --- lib/weblib.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index a77e40f0ff..26c8542594 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -290,16 +290,16 @@ function text_to_html($text, $smiley=true, $para=true) { // Turn smileys into images. if ($smiley) { - $text = ereg_replace(":)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); - $text = ereg_replace(":-)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); - $text = ereg_replace(":-D", "\"{grin}\"wwwroot/pix/s/biggrin.gif\">", $text); - $text = ereg_replace(";-)", "\"{wink}\"wwwroot/pix/s/wink.gif\">", $text); - $text = ereg_replace("8-)", "\"{wide-eyed}\"wwwroot/pix/s/wideeyes.gif\">", $text); - $text = ereg_replace(":-\(","\"{sad}\"wwwroot/pix/s/sad.gif\">", $text); - $text = ereg_replace(":-P", "\"{tongue-out}\"wwwroot/pix/s/tongueout.gif\">", $text); - $text = ereg_replace(":-/", "\"{mixed}\"wwwroot/pix/s/mixed.gif\">", $text); - $text = ereg_replace(":-o", "\"{surprised}\"wwwroot/pix/s/surprise.gif\">", $text); - $text = ereg_replace("B-)", "\"{cool}\"wwwroot/pix/s/cool.gif\">", $text); + $text = ereg_replace(":)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); + $text = ereg_replace(":-)", "\"{smile}\"wwwroot/pix/s/smiley.gif\">", $text); + $text = ereg_replace(":-D", "\"{grin}\"wwwroot/pix/s/biggrin.gif\">", $text); + $text = ereg_replace(";-)", "\"{wink}\"wwwroot/pix/s/wink.gif\">", $text); + $text = ereg_replace("8-)", "\"{wide-eyed}\"wwwroot/pix/s/wideeyes.gif\">", $text); + $text = ereg_replace(":-\(","\"{sad}\"wwwroot/pix/s/sad.gif\">", $text); + $text = ereg_replace(":-P", "\"{tongue-out}\"wwwroot/pix/s/tongueout.gif\">", $text); + $text = ereg_replace(":-/", "\"{mixed}\"wwwroot/pix/s/mixed.gif\">", $text); + $text = ereg_replace(":-o", "\"{surprised}\"wwwroot/pix/s/surprise.gif\">", $text); + $text = ereg_replace("B-)", "\"{cool}\"wwwroot/pix/s/cool.gif\">", $text); } if ($para) { -- 2.39.5