403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.21.105.119
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/blog.diixadigital.com/wp-content/plugins/rubik-sidebar-generator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/rubik-sidebar-generator/condition.php
<?php
abstract class Smk_Sidebar_Generator_Condition{
	public $type;
	public $name;

	public function __construct(){
		$this->name = get_class( $this );
	}

	// Return key => value options
	public function prepareMainData(){
		return array();
	}

	// Return key => value options
	public function prepareSecondaryData( $main_value ){
		$array = array( 'all' => __('All', 'smk_sbg') );
		return $array;
	}

	public function getMainData(){
		$dataif = $this->prepareMainData();
		$newdata = array();
		if( !empty($dataif) && is_array($dataif) ){
			foreach ($dataif as $key => $value) {
				$newdata[ $this->type . '::' . $key ] = $value;
			}
			return array(
				'label' => $this->name,
				'options' => $newdata,
			);
		}
		else{
			return array();
		}
	}

	public function selected( $main_value ){
		$the_type = explode('::', $main_value);
		if( !empty( $the_type[0] ) && !empty( $the_type[1] ) ){
			return $the_type[1];
		}
		else{
			return false;
		}
	}

	public function getSecondaryData( $main_value ){
		return $this->prepareSecondaryData( $main_value );
	}

	// $first_selection = type::this_selection
	// $second_selection = equalto
	// Should return true or false
	public function canReplace( $first_selection, $second_selection ){
		$can = false;
		return $can;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit