[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_handlers/emote.php,v $ 14 | $Revision: 1.16 $ 15 | $Date: 2006/12/19 20:25:23 $ 16 | $Author: e107steved $ 17 +----------------------------------------------------------------------------+ 18 */ 19 if (!defined('e107_INIT')) { exit; } 20 21 function r_emote() 22 { 23 global $sysprefs, $pref, $tp; 24 25 if (!is_object($tp->e_emote)) 26 { 27 require_once(e_HANDLER.'emote_filter.php'); 28 $tp->e_emote = new e_emoteFilter; 29 } 30 31 foreach($tp->e_emote->emotes as $key => $value) 32 { 33 $key = str_replace("!", "_", $key); 34 $key = preg_replace("#_(\w{3})$#", ".\\1", $key); 35 $key = e_IMAGE."emotes/" . $pref['emotepack'] . "/" .$key; 36 37 $value2 = substr($value, 0, strpos($value, " ")); 38 $value = ($value2 ? $value2 : $value); 39 $value = ($value == '&|') ? ':((' : $value; 40 $str .= "\n<a href=\"javascript:addtext('$value',true)\"><img src='$key' style='border:0; padding-top:2px;' alt='' /></a> "; 41 } 42 43 return "<div class='spacer'>".$str."</div>"; 44 } 45 46 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |