✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.224
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/tdtravelandlogistics.com/wp-content/plugins/sendwp/includes/api//class.request.php
<?php

namespace SendWP\API;

class Request
{
    protected $server_url;
    protected $endpoint;
    protected $client_name;
    protected $client_secret;

    public static function create( $endpoint )
    {
        $server_url = sendwp_get_server_url();
        $client_name = sendwp_get_client_name();
        $client_secret = sendwp_get_client_secret();
        return new self( $server_url, $endpoint, $client_name, $client_secret );
    }

    public function __construct( $server_url, $endpoint, $client_name, $client_secret )
    {
        $this->server_url = $server_url;
        $this->set_endpoint( $endpoint );
        $this->client_name = $client_name;
        $this->client_secret = $client_secret;
    }

    public function set_endpoint( $target )
    {
        $this->endpoint = 'wp-json/sendwp/' . $target;
    }

    public function request_url()
    {
        return $this->server_url . $this->endpoint;
    }

    public function post( $args )
    {
        return $this->request( 'POST', $args );
    }

    public function request( $method, $args )
    {
        $args[ 'method' ] = $method;
        $args['reject_unsafe_urls'] = false; // Whitelist requests to the service.
        $args[ 'headers' ][ 'x-sendwp-client-auth' ] = $this->get_auth_headers();

        if (! empty($_SERVER['HTTP_CLIENT_IP'])) {
            $args['headers']['x-forwarded-for'] = $_SERVER['HTTP_CLIENT_IP'];
        } elseif (! empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
            $args['headers']['x-forwarded-for'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
        } else {
            $args['headers']['x-forwarded-for'] = $_SERVER['REMOTE_ADDR'];
        }

        return wp_remote_request( $this->request_url(), $args );
    }

    protected function get_auth_headers()
    {
        return 'Basic ' . base64_encode( $this->client_name . ':' . $this->client_secret );
    }
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
19 Dec 2023 9.08 AM
tdhomesa / tdhomesa
0755
class.request.php
1.836 KB
31 May 2022 8.57 PM
tdhomesa / tdhomesa
0644
load.php
0.04 KB
22 Nov 2019 8.03 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF