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.221.248.140
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

if ( ! function_exists( 'TotalContest' ) ):
	/**
	 * TotalContest global function.
	 *
	 * @param null  $component
	 * @param array $args
	 *
	 * @return \TotalContestVendors\TotalCore\Application|mixed
	 */
	function TotalContest( $component = null, $args = array() ) {
		$instance = $GLOBALS['TotalContestApplication'];

		if ( $component !== null ):
			$instance = $instance->container( $component, $args );
		endif;

		return $instance;
	}
endif;

if ( ! class_exists( 'TotalContestSetup' ) ):
	/**
	 * Class TotalContestSetup
	 */
	class TotalContestSetup {
		protected $environment = array();
		protected $loader;
		protected static $loaded = false;

		/**
		 * TotalContestSetup constructor.
		 *
		 * @param $env
		 */
		public function __construct( $env ) {
			$this->environment = $env;

			$phpCompatible = version_compare( $this->environment['versions']['php'], $this->environment['requirements']['php'], '>=' );
			$wpCompatible  = version_compare( $this->environment['versions']['wp'], $this->environment['requirements']['wp'], '>=' );
			// Check version requirements
			if ( $phpCompatible && $wpCompatible ):
				$this->load();
			else:
				$this->disable();
			endif;
		}

		/**
		 * Load autoloader and bootstrap plugin.
		 */
		public function load() {
			if ( self::$loaded ):
				return;
			endif;

			$this->loader = require $this->environment['autoload']['loader'];
			foreach ( $this->environment['autoload']['psr4'] as $namespace => $paths ):
				$this->loader->addPsr4( $namespace, $paths );
			endforeach;

			// Quick workaround for php 5.2 syntax error
			$application = "{$this->environment['namespace']}Vendors\\TotalCore\\Application";

			// Initiate
			$GLOBALS["{$this->environment['namespace']}Application"] = new $application( $this->environment );

			// Let's bootstrap plugin (Quirky code to avoid php 5.2 syntax error)
			$plugin = "\\{$this->environment['namespace']}\\Plugin";
			$GLOBALS["{$this->environment['namespace']}Application"]->bootstrap( new $plugin() );

			self::$loaded = true;
		}

		/**
		 * Disable the plugin.
		 */
		public function disable() {
			// Attach to appropriate hooks.
			add_action( 'admin_init', array( $this, '_deactivate' ) );
			add_action( 'admin_notices', array( $this, '_warning' ) );
		}

		// Self deactivation (to prevent any unwanted behaviors).
		public function _deactivate() {
			deactivate_plugins( $this->environment['basename'] );
		}

		// Warning message.
		public function _warning() {
			$message = sprintf(
				__( '%1$s requires PHP %2$s+ and WordPress %3$s+ to function properly. Please contact your host to upgrade PHP and WordPress. %1$s has been auto-deactivated.', $this->environment['textdomain'] ),
				$this->environment['name'],
				$this->environment['requirements']['php'],
				$this->environment['requirements']['wp']
			);
			printf( '<div class="error"><p>%s</p></div>', $message );
		}
	}
endif;

Youez - 2016 - github.com/yon3zu
LinuXploit