function myadvertisements_postbit_disable(&$post){global $mybb,$templates;$cachetemps=array();if(!$templates->cache['postbit'])$cachetemps[]='postbit';if(!$templates->cache['postbit_classic'])$cachetemps[]='postbit_classic';if(!empty($cachetemps))$templates->cache(implode(',',$cachetemps));if(!isset($mypostcounter))$mypostcounter=0;static $postbit_backup='';static $postbit_classic_backup='';static $restore_postbit=null;if(empty($postbit_backup)||$restore_postbit){$viewmode=($mybb->settings['postlayout']=='classic'?'_classic':'');$restore_postbit=(!isset($restore_postbit)&&isset($templates->cache['postbit_first'.$viewmode])&&$templates->cache['postbit_first'.$viewmode]==$templates->cache['postbit'.$viewmode]);$postbit_backup=$templates->cache['postbit'];$postbit_classic_backup=$templates->cache['postbit_classic']}$templates->cache['postbit']=str_replace('{myadvertisements[zone_3]}','',$postbit_backup);$templates->cache['postbit_classic']=str_replace('{myadvertisements[zone_3]}','',$postbit_classic_backup)}
