if($dosmilies) { $bbcode=str_replace(">", "> )", $bbcode); $bbcode=str_replace("<", "< )", $bbcode); if(!isset($smilies)) { $smilies=$DB_site->query("SELECT smilietext,smiliepath FROM smilie" ); } else { $DB_site->data_seek(0,$smilies); } while ($smilie=$DB_site->fetch_array($smilies)) { if(trim($smilie[smilietext])!="" ) { $bbcode=str_replace(trim($smilie[smilietext]),"<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode); } } }
if($dosmilies) { $bbcode=str_replace(">", "> )", $bbcode); $bbcode=str_replace("<", "< )", $bbcode); if(!isset($smilies)) { $smilies=$DB_site->query("SELECT smilietext,smiliepath FROM smilie ORDER BY LENGTH( `smilietext` ) DESC" ); } else { $DB_site->data_seek(0,$smilies); } while ($smilie=$DB_site->fetch_array($smilies)) { if(trim($smilie[smilietext])!="" ) { $smilie[smilietext]=str_replace("<","<",$smilie[smilietext]); $smilie[smilietext]=str_replace(">",">",$smilie[smilietext]); $bbcode=str_replace(trim($smilie[smilietext]),"<img src=\"$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode); } } }
<td bgcolor="$backcolor"><a href="javascript:smilie('$smilie[text]')"><img src="$smilie[path]" border="0" alt="$smilie[title]"></a></td> <td bgcolor="$backcolor"><normalfont>$smilie[text]</normalfont></td>
Download Now
Show Your Support