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.220.194.29
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/misswavenigeria.com/wp-content/plugins/totalcontest-lite/src/Admin/Ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/totalcontest-lite/src/Admin/Ajax/Modules.php
<?php

namespace TotalContest\Admin\Ajax;

use TotalContestVendors\TotalCore\Contracts\Http\Request;
use TotalContestVendors\TotalCore\Contracts\Modules\Manager;

/**
 * Class Modules
 * @package TotalContest\Admin\Ajax
 */
class Modules {
	/**
	 * @var array
	 */
	protected $module = [ 'id' => null, 'type' => null ];
	/**
	 * @var Request
	 */
	protected $request;
	/**
	 * @var Manager
	 */
	protected $manager;

	/**
	 * Modules constructor.
	 *
	 * @param Request $request
	 * @param Manager $manager
	 */
	public function __construct( Request $request, Manager $manager ) {
		$this->request = $request;
		$this->manager = $manager;

		$this->module['id']   = $this->request->post( 'id' );
		$this->module['type'] = $this->request->post( 'type' );

		if ( $this->module['id'] && $this->module['type'] && ! in_array( $this->module['type'], [ 'extension', 'template' ] ) ):
			status_header( 406 );
			wp_send_json_error( new \WP_Error( 'unknown_module_type', 'Unknown module type.' ) );
		endif;
	}

	/**
	 * Install from file.
	 */
	public function installFromFile() {
		$result = $this->manager->install( $this->request->file( 'module' ) );

		if ( $result instanceof \WP_Error ):
			status_header( 406 );
			wp_send_json_error( $result->get_error_message() );
		else:
			wp_send_json_success( esc_html__( 'Module installed.', 'totalcontest' ) );
		endif;
	}

	/**
	 * Install from store.
	 */
	public function installFromStore() {
		$result = $this->manager->installFromStore( $this->module['id'] );

		if ( $result instanceof \WP_Error ):
			status_header( 406 );
			wp_send_json_error( $result->get_error_message() );
		else:
			wp_send_json_success( esc_html__( 'Module downloaded and installed.', 'totalcontest' ) );
		endif;
	}

	/**
	 * Fetch modules.
	 */
	public function fetch() {
		$hard = $this->request->request( 'hard', false );
		if ( ! empty( $hard ) ):
			TotalContest( 'utils.purge.store' );
		endif;

		$modules = array_values( $this->manager->fetch() );

		/**
		 * Filters modules sent to modules manager interface.
		 *
		 * @param \TotalContestVendors\TotalCore\Modules\Module[] $modules Array of modules.
		 * @param Manager                                         $manager Modules manager.
		 * @param Request                                         $request HTTP Request.
		 *
		 * @since 4.0.2
		 * @return array
		 */
		$modules = apply_filters( 'totalcontest/filters/admin/modules/fetch', $modules, $this->manager, $this->request );

		wp_send_json( $modules );
	}

	/**
	 * Update module.
	 */
	public function update() {
		$result = $this->manager->update( $this->module['id'] );

		if ( $result instanceof \WP_Error ):
			status_header( 406 );
			wp_send_json_error( $result->get_error_message() );
		else:
			wp_send_json_success( esc_html__( 'Module updated.', 'totalcontest' ) );
		endif;
	}

	/**
	 * Uninstall module.
	 */
	public function uninstall() {
		$uninstalled = $this->manager->uninstall( $this->module['id'] );

		if ( $uninstalled instanceof \WP_Error ):
			status_header( 406 );
			wp_send_json_error( $uninstalled->get_error_message() );
		else:
			wp_send_json_success( esc_html__( 'Module uninstalled.', 'totalcontest' ) );
		endif;
	}

	/**
	 * Activate module.
	 */
	public function activate() {
		$activated = $this->manager->activate( $this->module['id'] );

		if ( $activated instanceof \WP_Error ):
			status_header( 406 );
			wp_send_json_error( $activated->get_error_message() );
		else:
			wp_send_json_success( esc_html__( 'Module activated.', 'totalcontest' ) );
		endif;
	}

	/**
	 * Deactivate module.
	 */
	public function deactivate() {
		$deactivated = $this->manager->deactivate( $this->module['id'] );

		if ( $deactivated instanceof \WP_Error ):
			status_header( 406 );
			wp_send_json_error( $deactivated->get_error_message() );
		else:
			wp_send_json_success( esc_html__( 'Module deactivated.', 'totalcontest' ) );
		endif;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit