[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 require_once ("../../../../class2.php"); 3 if(!USER || check_class($pref['post_html']) == FALSE){ 4 exit; 5 } 6 $HEADER = ""; 7 require_once(HEADERF); 8 9 10 $emotes = $sysprefs->getArray("emote_".$pref['emotepack']); 11 $str = "<div class='spacer' style='white-space:wrap;width:130px;text-align:center'>"; 12 foreach($emotes as $key => $value){ 13 $key = str_replace("!", ".", $key); 14 $key = preg_replace("#_(\w{3})$#", ".\\1", $key); 15 $value2 = substr($value, 0, strpos($value, " ")); 16 $value = ($value2 ? $value2 : $value); 17 $str .= "\n<a href='javascript:void(0);' onmousedown=\"javascript:insertEmotion('$key')\"><img src=\"".e_IMAGE_ABS."emotes/" . $pref['emotepack'] . "/$key\" style=\"border:0; padding-top:2px;\" alt=\"\" /></a> "; 18 } 19 20 $str .= "</div>"; 21 22 echo $str; 23 24 function headerjs(){ 25 global $pref; 26 $js = "<script type='text/javascript' src='../../tiny_mce_popup.js'></script>"; 27 $js .= " <script type='text/javascript'> 28 29 function init() { 30 tinyMCEPopup.resizeToInnerSize(); 31 } 32 33 function insertEmotion(file_name, title) { 34 var html = '<img src=\'".e_IMAGE_ABS."emotes/".$pref['emotepack']."/' + file_name + '\' style=\'border:0px\' alt=\'' + file_name + '\' />'; 35 tinyMCE.execCommand('mceInsertContent', false, html); 36 tinyMCEPopup.close(); 37 } 38 "; 39 40 $js .= "</script>"; 41 return $js; 42 43 } 44 45 echo "</body></html>"; 46 47 48 ?>
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 |