'; $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_adsused']) , ENT_COMPAT); update_option('wp_letsfxad_adsused', $tmpCode1); $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_hide']) , ENT_COMPAT); update_option('wp_letsfxad_hide', $tmpCode1); $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_top']) , ENT_COMPAT); update_option('wp_letsfxad_top', $tmpCode1); $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_bottom']) , ENT_COMPAT); update_option('wp_letsfxad_bottom', $tmpCode1); $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_other1']) , ENT_COMPAT); update_option('wp_letsfxad_other1', $tmpCode1); $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_other2']) , ENT_COMPAT); update_option('wp_letsfxad_other2', $tmpCode1); $tmpCode1 = htmlentities(stripslashes($_POST['wp_letsfxad_other3']) , ENT_COMPAT); update_option('wp_letsfxad_other3', $tmpCode1); echo 'Options Updated!'; echo '
'; } ?> user_level>=$letsfxad_hide) return(true); } return(false); } function wp_letsfxad_process($content) { if(!is_single()) return($content); if(letsfxad_hide()) return($content); if(strpos($content,'')!==false) return($content); global $letsfxad_adsused_c; $content.= ''; $letsfxad_adsused = letsfx_fix_content(get_option('wp_letsfxad_adsused')); if($letsfxad_adsused_c>$letsfxad_adsused)return($content) ; $top = letsfx_fix_content(get_option('wp_letsfxad_top')); if(strlen($top)>2) $letsfxad_adsused_c++; //if($letsfxad_adsused_c>=$letsfxad_adsused)return(($top).$content) ; $bottom = letsfx_fix_content(get_option('wp_letsfxad_bottom')); if(strlen($bottom)>2) $letsfxad_adsused_c++; $more = ''; if($morep=strpos($content,$more)!==false){ $content = str_replace($more, $more.$top, $content); $top=''; } return $top.$content.($bottom);//.''.$morep;//.$_SERVER["HTTP_CF_IPCOUNTRY"]; } function bb_letsfxad_before_directory( ) { if(letsfxad_hide()) return; global $letsfxad_adsused_c; $letsfxad_adsused = letsfx_fix_content(get_option('wp_letsfxad_adsused')); if($letsfxad_adsused_c>=$letsfxad_adsused)return('') ; $other1 = letsfx_fix_content(get_option('wp_letsfxad_other1')); if(strlen($other1)<2) return(''); $letsfxad_adsused_c++; echo ($other1.''); } function bb_letsfxad_topic_footer( $content ) { if(letsfxad_hide()) return($content); global $letsfxad_adsused_c; $letsfxad_adsused = letsfx_fix_content(get_option('wp_letsfxad_adsused')); if($letsfxad_adsused_c>=$letsfxad_adsused)return($content) ; $other2 = letsfx_fix_content(get_option('wp_letsfxad_other2')); if(strlen($other2)<2) return($content); $letsfxad_adsused_c++; return $content.($other2); } function bb_letsfxad_activity( ) { if(letsfxad_hide()) return; global $letsfxad_adsused_c; $letsfxad_adsused = (get_option('wp_letsfxad_adsused')); if($letsfxad_adsused_c>=$letsfxad_adsused)return ; $other2 = letsfx_fix_content(get_option('wp_letsfxad_other2')); if(strlen($other2)<2) return; $letsfxad_adsused_c++; echo $other2; } function bb_letsfxad_float( ) { if(wp_is_mobile()) return; if(letsfxad_hide()) return; global $letsfxad_adsused_c; ?> '; $letsfxad_adsused = letsfx_fix_content(get_option('wp_letsfxad_adsused')); if($letsfxad_adsused_c>=$letsfxad_adsused)return ; $other3 = letsfx_fix_content(get_option('wp_letsfxad_other3')); if(strlen($other3)<2) return; $letsfxad_adsused_c++; ?>