Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/blueversion/wp-content/plugins/give/src/Promotions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/blueversion/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