Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/presto-player-pro/inc/Libraries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/presto-player-pro/inc/Libraries/MailChimpRequest.php
<?php

namespace PrestoPlayer\Pro\Libraries;

use PrestoPlayer\Models\Setting;
use PrestoPlayer\Pro\Support\ApiRequest;

class MailChimpRequest extends ApiRequest
{
    protected $base_url = 'https://<dc>.api.mailchimp.com/3.0/';
    protected $key = 'mailchimp';

    public function __construct($api_key = '')
    {
        parent::__construct($api_key);

        // set base url depending on api key
        if ($api_key) {
            if (strpos($api_key, '-') === false) {
                throw new \Exception(__("This API key is not valid. Please double check it and try again.", 'presto-player'));
            }
            list(, $data_center) = explode('-', $api_key);
            $this->base_url = str_replace('<dc>', $data_center, $this->base_url);
        }
    }

    public function request($endpoint, $args = [])
    {
        // this is how we pass the api key
        $args['headers']['Accept'] = 'application/vnd.api+json';
        $args['headers']['Content-Type'] = 'application/vnd.api+json';
        $args['headers']['Authorization'] = 'apikey ' . $this->api_key;

        return parent::request($endpoint, $args);
    }

    public static function getClient()
    {
        return new static(Setting::get('mailchimp', 'api_key'));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit