403Webshell
Server IP : 172.67.158.161  /  Your IP : 18.117.138.147
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/thietke365.net/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/thietke365.net/wp-content/plugins/mailpoet/vendor/woocommerce/action-scheduler/lib//WP_Async_Request.php
<?php
if (!defined('ABSPATH')) exit;
if ( ! class_exists( 'WP_Async_Request' ) ) {
 abstract class WP_Async_Request {
 protected $prefix = 'wp';
 protected $action = 'async_request';
 protected $identifier;
 protected $data = array();
 public function __construct() {
 $this->identifier = $this->prefix . '_' . $this->action;
 add_action( 'wp_ajax_' . $this->identifier, array( $this, 'maybe_handle' ) );
 add_action( 'wp_ajax_nopriv_' . $this->identifier, array( $this, 'maybe_handle' ) );
 }
 public function data( $data ) {
 $this->data = $data;
 return $this;
 }
 public function dispatch() {
 $url = add_query_arg( $this->get_query_args(), $this->get_query_url() );
 $args = $this->get_post_args();
 return wp_remote_post( esc_url_raw( $url ), $args );
 }
 protected function get_query_args() {
 if ( property_exists( $this, 'query_args' ) ) {
 return $this->query_args;
 }
 $args = array(
 'action' => $this->identifier,
 'nonce' => wp_create_nonce( $this->identifier ),
 );
 return apply_filters( $this->identifier . '_query_args', $args );
 }
 protected function get_query_url() {
 if ( property_exists( $this, 'query_url' ) ) {
 return $this->query_url;
 }
 $url = admin_url( 'admin-ajax.php' );
 return apply_filters( $this->identifier . '_query_url', $url );
 }
 protected function get_post_args() {
 if ( property_exists( $this, 'post_args' ) ) {
 return $this->post_args;
 }
 $args = array(
 'timeout' => 0.01,
 'blocking' => false,
 'body' => $this->data,
 'cookies' => $_COOKIE,
 'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
 );
 return apply_filters( $this->identifier . '_post_args', $args );
 }
 public function maybe_handle() {
 // Don't lock up other requests while processing
 session_write_close();
 check_ajax_referer( $this->identifier, 'nonce' );
 $this->handle();
 wp_die();
 }
 abstract protected function handle();
 }
}

Youez - 2016 - github.com/yon3zu
LinuXploit