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.117.151.198
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/ServiceProviders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace Give\ServiceProviders;

use Give\Framework\Migrations\MigrationsRegister;
use Give\Helpers\Hooks;
use Give\Onboarding\DefaultFormFactory;
use Give\Onboarding\FormRepository;
use Give\Onboarding\LocaleCollection;
use Give\Onboarding\Migrations\SetFormDonationLevelsToStrings;
use Give\Onboarding\Routes\AddonsRoute;
use Give\Onboarding\Routes\CurrencyRoute;
use Give\Onboarding\Routes\FeaturesRoute;
use Give\Onboarding\Routes\FormRoute;
use Give\Onboarding\Routes\LocationRoute;
use Give\Onboarding\Routes\SettingsRoute;
use Give\Onboarding\SettingsRepositoryFactory;
use Give\Onboarding\Setup\Handlers\AdminNoticeHandler;
use Give\Onboarding\Setup\Handlers\TopLevelMenuRedirect;
use Give\Onboarding\Setup\Page as SetupPage;
use Give\Onboarding\Setup\PageView as SetupPageView;
use Give\Onboarding\Wizard\FormPreview;
use Give\Onboarding\Wizard\Page as WizardPage;

class Onboarding implements ServiceProvider
{

    /**
     * @inheritDoc
     */
    public function register()
    {
        // Onboarding Wizard and Setup page require WP v5.0.x or greater
        if (version_compare(get_bloginfo('version'), '5.0', '<=')) {
            return;
        }

        give()->singleton(SetupPage::class);
        give()->singleton(WizardPage::class);
        give()->singleton(FormPreview::class);
        give()->bind(SettingsRoute::class);
        give()->bind(CurrencyRoute::class);
        give()->bind(AddonsRoute::class);
        give()->bind(FeaturesRoute::class);
        give()->bind(FormRoute::class);
        give()->bind(FormRepository::class);
        give()->bind(DefaultFormFactory::class);
        give()->bind(SettingsRepositoryFactory::class);
        give()->bind(LocaleCollection::class);
        give()->singleton(SetupPageView::class);
    }

    /**
     * @inheritDoc
     */
    public function boot()
    {
        $this->registerMigrations();

        // Onboarding Wizard and Setup page require WP v5.0.x or greater
        if (version_compare(get_bloginfo('version'), '5.0', '<=')) {
            return;
        }

        // Load Wizard Page
        Hooks::addAction('admin_menu', WizardPage::class, 'add_page');
        Hooks::addAction('admin_init', WizardPage::class, 'redirect');
        Hooks::addAction('admin_init', WizardPage::class, 'setup_wizard');
        Hooks::addAction('admin_enqueue_scripts', WizardPage::class, 'enqueue_scripts');

        // Load Form Preview
        Hooks::addAction('admin_menu', FormPreview::class, 'add_page');
        Hooks::addAction('admin_init', FormPreview::class, 'setup_form_preview');

        Hooks::addAction('rest_api_init', FormRoute::class, 'registerRoute');
        Hooks::addAction('rest_api_init', LocationRoute::class, 'registerRoute');
        Hooks::addAction(
            'rest_api_init',
            AddonsRoute::class,
            'registerRoute',
            10
        ); // Static route, onboarding/settings/addons
        Hooks::addAction(
            'rest_api_init',
            CurrencyRoute::class,
            'registerRoute',
            10
        ); // Static route, onboarding/settings/currency
        Hooks::addAction(
            'rest_api_init',
            FeaturesRoute::class,
            'registerRoute',
            10
        ); // Static route, onboarding/settings/features
        Hooks::addAction(
            'rest_api_init',
            SettingsRoute::class,
            'registerRoute',
            11
        ); // Dynamic route, onboarding/settings/{setting}

        // Maybe load Setup Page
        if (give_is_setting_enabled(SetupPage::getSetupPageEnabledOrDisabled())) {
            Hooks::addAction('admin_init', AdminNoticeHandler::class, 'maybeHandle');
            Hooks::addAction('admin_init', TopLevelMenuRedirect::class, 'maybeHandle');
            Hooks::addAction('admin_menu', SetupPage::class, 'add_page', 80);
            Hooks::addAction('admin_enqueue_scripts', SetupPage::class, 'enqueue_scripts');
            Hooks::addAction('admin_post_dismiss_setup_page', SetupPage::class, 'dismissSetupPage');
        }
    }

    /**
     * Registers migrations
     *
     * @since 2.13.3
     */
    private function registerMigrations()
    {
        give(MigrationsRegister::class)->addMigrations([
            SetFormDonationLevelsToStrings::class,
        ]);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit