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.118.28.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/totalcontest-lite/src/Contest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace TotalContest\Contest;

use TotalContest\Contracts\Contest\Repository as ContestRepository;
use TotalContestVendors\TotalCore\Contracts\Http\Request;

/**
 * Class Controller
 *
 * @package TotalContest\Contest
 */
class Controller {
	/**
	 * @var Model
	 */
	protected $contest;
	/**
	 * @var Request
	 */
	protected $request;
	/**
	 * @var ContestRepository
	 */
	protected $repository;

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

		$contestId = (int) $this->request->request( 'totalcontest.contestId', get_the_ID() );
		if ( $contestId ):
			$this->contest = $this->repository->getById( $contestId );
		endif;

		if ( $this->contest ):
			add_action( 'totalcontest/actions/request/landing', [ $this, 'landing' ] );
			add_action( 'totalcontest/actions/request/submissions', [ $this, 'submissions' ] );
			add_action( 'totalcontest/actions/request/get/participate', [ $this, 'participate' ] );
			add_action( 'totalcontest/actions/request/post/participate', [ $this, 'postParticipate' ] );
			add_action( 'totalcontest/actions/request/content', [ $this, 'content' ] );

			add_action( 'totalcontest/actions/ajax-request', function () {
				echo $this->contest->render();
				wp_die();
			} );
		endif;
	}

	/**
	 * Landing.
	 */
	public function landing() {
		$this->contest->setScreen( 'contest.landing' );
	}

	/**
	 * Content pages.
	 */
	public function content() {
		$this->contest->setScreen( 'contest.content' );
	}

	/**
	 * Submissions.
	 */
	public function submissions() {
		$this->contest->setScreen( 'contest.submissions' );
	}

	/**
	 * Upload.
	 */
	public function participate() {
		$this->contest->setScreen( 'contest.participate' );
	}

	/**
	 * Post upload.
	 */
	public function postParticipate() {
		$this->contest->setScreen( 'contest.participate' );
		if ( $this->contest->isAcceptingSubmissions() && $this->contest->getForm()->validate() ):
			$createSubmission = apply_filters( 'totalcontest/commands/contest/submission:create',
			                                   true,
			                                   $this->contest );
			$this->contest->setScreen( $createSubmission instanceof \WP_Error ? 'contest.failed' : 'contest.thankyou' );
			$this->contest->getRestrictions()->apply();
		endif;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit