"; $thread_post=str_replace($rs[code],$img_src,$thread_post); } return $thread_post; } function unhtmlentities ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip ($trans_tbl); return strtr ($string, $trans_tbl); } function templates($file_name){ global $csr, $sn, $sid; //global $site_title,$base_url,$medium_font,$base_font,$base_font_color,$x_large_font,$table_title_text_color,$base_link_color,$hover_link_color,$hover_link_bg_color,$small_font,$tb_image_types; global $alt2_bgcolor,$alt1_bgcolor,$site_title,$base_url,$medium_font,$base_font,$base_font_color,$x_large_font,$table_title_text_color,$base_link_color,$hover_link_color,$hover_link_bg_color,$small_font,$large_font,$error_font_color,$tb_image_types,$pending_user_count,$active_user_count,$inactive_user_count,$total_user_count,$pts_pd_count,$ra_pd_count,$cm_pd_count,$su_pd_count,$pts_pw_count,$ra_pw_count,$cm_pw_count,$su_pw_count,$pts_pm_count,$ra_pm_count,$cm_pm_count,$su_pm_count; if($file_name=="image_rules"){ $image_rules1=""; $ssql = "select * from $tb_image_types"; $squery = mysql_query($ssql) or die(mysql_error()); while($sarray = mysql_fetch_array($squery)) $image_rules1 .= "