????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.80.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/./pontiacques.org/wp-content/plugins/give/src/DonationForms/V2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/./pontiacques.org/wp-content/plugins/give/src/DonationForms/V2//ServiceProvider.php
<?php

namespace Give\DonationForms\V2;

use Give\DonationForms\V2\ListTable\DonationFormsListTable;
use Give\DonationForms\V2\Repositories\DonationFormsRepository;
use Give\Helpers\Hooks;
use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;

/**
 * @since 2.19.0
 */
class ServiceProvider implements ServiceProviderInterface
{
    /**
     * @inheritDoc
     */
    public function register()
    {
        give()->singleton('donationForms', DonationFormsRepository::class);
        give()->singleton(DonationFormsListTable::class, function () {
            $listTable = new DonationFormsListTable();
            Hooks::doAction('givewp_donation_forms_list_table', $listTable);

            return $listTable;
        });
    }

    /**
     * @inheritDoc
     */
    public function boot()
    {
        $userId = get_current_user_id();
        $showLegacy = get_user_meta($userId, '_give_donation_forms_archive_show_legacy', true);

        Hooks::addAction('admin_menu', DonationFormsAdminPage::class, 'register', 0);

        if (empty($showLegacy)) {
            if (DonationFormsAdminPage::isShowing()) {
                Hooks::addAction('admin_enqueue_scripts', DonationFormsAdminPage::class, 'loadScripts');
            }
        } elseif (DonationFormsAdminPage::isShowingLegacyPage()) {
            Hooks::addAction('admin_head', DonationFormsAdminPage::class, 'renderReactSwitch');
        }

        // Onboarding
        Hooks::addAction('submitpost_box', DonationFormsAdminPage::class, 'renderMigrationGuideBox');
        Hooks::addAction('admin_enqueue_scripts', DonationFormsAdminPage::class, 'loadMigrationScripts');

        // Dismiss notices
        $noticeActions = [
            'givewp_show_onboarding_banner' => 'show-onboarding-banner',
            'givewp_show_upgraded_tooltip' => 'show-upgraded-tooltip',
            'givewp_show_default_form_tooltip' => 'show-default-form-tooltip',
        ];

        foreach ($noticeActions as $action => $metaKey) {
            add_action("wp_ajax_{$action}", static function () use ($metaKey) {
                add_user_meta(get_current_user_id(), "givewp-{$metaKey}", time(), true);
            });
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit