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 : 52.14.49.59
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/Promotions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace Give\Promotions;

use Give\Helpers\Hooks;
use Give\Promotions\FreeAddonModal\Controllers\CompleteRestApiEndpoint;
use Give\Promotions\InPluginUpsells\AddonsAdminPage;
use Give\Promotions\InPluginUpsells\Endpoints\HideSaleBannerRoute;
use Give\Promotions\InPluginUpsells\Endpoints\ProductRecommendationsRoute;
use Give\Promotions\InPluginUpsells\LegacyFormEditor;
use Give\Promotions\InPluginUpsells\PaymentGateways;
use Give\Promotions\InPluginUpsells\SaleBanners;
use Give\Promotions\InPluginUpsells\StellarSaleBanners;
use Give\Promotions\ReportsWidgetBanner\ReportsWidgetBanner;
use Give\Promotions\WelcomeBanner\Endpoints\DismissWelcomeBannerRoute;
use Give\Promotions\WelcomeBanner\WelcomeBanner;
use Give\ServiceProviders\ServiceProvider as ServiceProviderContract;

class ServiceProvider implements ServiceProviderContract
{
    /**
     * @since 2.19.0
     *
     * @inheritDoc
     */
    public function register()
    {
    }

    /**
     * @since 2.19.0
     *
     * @inheritDoc
     */
    public function boot()
    {
        $this->bootPluginUpsells();
        $this->bootFreeAddonModal();
    }

    /**
     * @since 3.13.0 add Stellar banner.
     * @since      2.27.1 Removed Recurring donations tab app.
     * @since      2.19.0
     *
     * Boots the Plugin Upsell promotional page
     *
     */
    private function bootPluginUpsells()
    {
        Hooks::addAction('admin_menu', AddonsAdminPage::class, 'register', 70);
        Hooks::addAction('rest_api_init', HideSaleBannerRoute::class, 'registerRoute');
        Hooks::addAction('rest_api_init', ProductRecommendationsRoute::class, 'registerRoute');
        Hooks::addAction('rest_api_init', DismissWelcomeBannerRoute::class, 'registerRoute');

        if (AddonsAdminPage::isShowing()) {
            Hooks::addAction('admin_enqueue_scripts', AddonsAdminPage::class, 'loadScripts');
        }

        if (ReportsWidgetBanner::isShowing()) {
            Hooks::addAction('admin_enqueue_scripts', ReportsWidgetBanner::class, 'loadScripts');
        }

        if (PaymentGateways::isShowing()) {
            Hooks::addAction('admin_enqueue_scripts', PaymentGateways::class, 'loadScripts');
            Hooks::addAction(
                'give_admin_field_enabled_gateways',
                PaymentGateways::class,
                'renderPaymentGatewayRecommendation'
            );
        }

        if (LegacyFormEditor::isShowing()) {
            Hooks::addAction('admin_enqueue_scripts', LegacyFormEditor::class, 'loadScripts');
            Hooks::addAction(
                'give_post_form_field_options_settings',
                LegacyFormEditor::class,
                'renderDonationOptionsRecurringRecommendation'
            );
        }

        if (WelcomeBanner::isShowing()) {
            Hooks::addAction('admin_notices', WelcomeBanner::class, 'render');
            Hooks::addAction('admin_enqueue_scripts', WelcomeBanner::class, 'loadScripts');
        }
    }

    /**
     * Boots the free addon modal promotion
     *
     * @since 2.19.0
     */
    private function bootFreeAddonModal()
    {
        if (is_admin()) {
            Hooks::addAction('rest_api_init', CompleteRestApiEndpoint::class);
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit