Location: PHPKode > projects > Chirp: The Microblog > chirp.v.1.1/includes/emoticon.inc.php
<?php



function smiley2emoticons($text){

	include('config.inc.php');

	

     $tags = array

     (

         ';)'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/wink.gif" align="absmiddle">',

         ':D'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/biggrin.gif" align="absmiddle">',

         ':-/' => '<img src="%URL%emoticons/'.$emoticon_pack.'/confused.gif" align="absmiddle">',

         ':p'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/razz.gif" align="absmiddle">',

         ':P'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/razz.gif" align="absmiddle">',

         ':-*' => '<img src="%URL%emoticons/'.$emoticon_pack.'/kiss.gif" align="absmiddle">',

         ':-O' => '<img src="%URL%emoticons/'.$emoticon_pack.'/surprise.gif" align="absmiddle">',

         'X('  => '<img src="%URL%emoticons/'.$emoticon_pack.'/vangry.gif" align="absmiddle">',

         'B-)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/cool.gif" align="absmiddle">',

         '&gt;:)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/evil.gif" align="absmiddle">',

         ':((' => '<img src="%URL%emoticons/'.$emoticon_pack.'/cry.gif" align="absmiddle">',

         ':))' => '<img src="%URL%emoticons/'.$emoticon_pack.'/lol.gif" align="absmiddle">',

         ':|'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/neutral.gif" align="absmiddle">',

         '=))' => '<img src="%URL%emoticons/'.$emoticon_pack.'/lol.gif" align="absmiddle">',

         '}:&gt;' => '<img src="%URL%emoticons/'.$emoticon_pack.'/evil.gif" align="absmiddle">',

		 '}:)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/evil.gif" align="absmiddle">',

         ':-?' => '<img src="%URL%emoticons/'.$emoticon_pack.'/question.gif" align="absmiddle">',

         '#o'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/exclaim.gif" align="absmiddle">',

         ':!' => '<img src="%URL%emoticons/'.$emoticon_pack.'/exclaim.gif" align="absmiddle">',

         ':)'  => '<img src="%URL%emoticons/'.$emoticon_pack.'/smile.gif" align="absmiddle">',

         ':-)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/smile.gif" align="absmiddle">',

         ':('  => '<img src="%URL%emoticons/'.$emoticon_pack.'/sad.gif" align="absmiddle">',

         ':-(' => '<img src="%URL%emoticons/'.$emoticon_pack.'/sad.gif" align="absmiddle">',

		 ';)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/wink.gif" align="absmiddle">',

		 '8)' => '<img src="%URL%emoticons/'.$emoticon_pack.'/cool.gif" align="absmiddle">',

		 '8O' => '<img src="%URL%emoticons/'.$emoticon_pack.'/shock.gif" align="absmiddle">',

		 ':x' => '<img src="%URL%emoticons/'.$emoticon_pack.'/eek.gif" align="absmiddle">',

		 ':o' => '<img src="%URL%emoticons/'.$emoticon_pack.'/eek.gif" align="absmiddle">',

		 ':?' => '<img src="%URL%emoticons/'.$emoticon_pack.'/confused.gif" align="absmiddle">',

		 ':cry:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/cry.gif" align="absmiddle">',

		 ':boo:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/down.gif" align="absmiddle">',

		 ':good:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/up.gif" align="absmiddle">',

		 ':cry:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/cry.gif" align="absmiddle">',

		 ':pirate:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/pirate.gif" align="absmiddle">',

		 ':money:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/money.gif" align="absmiddle">',

		 ':love:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/love.gif" align="absmiddle">',

		 ':green:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/mrgreen.gif" align="absmiddle">',

		 ':halo:' => '<img src="%URL%emoticons/'.$emoticon_pack.'/halo.gif" align="absmiddle">',

         ':*' => '<img src="%URL%emoticons/'.$emoticon_pack.'/kiss.gif" align="absmiddle">'

  

     );

     $new = strtr($text, $tags);

     return($new);

}



?>
Return current item: Chirp: The Microblog