403Webshell
Server IP : 172.67.71.254  /  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/customizer/packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/customizer/packages/autoload.php
<?php
/**
 * Lightweight PSR-4 autoloader for Kirki packages.
 *
 * This replaces the per-package Composer vendor folders so we only keep
 * one shared autoloader and source files to reduce build size.
 */

defined( 'ABSPATH' ) || exit;

// Prevent registering multiple times.
if ( defined( 'KIRKI_AUTOLOAD_REGISTERED' ) ) {
	return;
}

define( 'KIRKI_AUTOLOAD_REGISTERED', true );

$packages = array(
	'headline-divider' => 'HeadlineDivider',
	'input-slider'     => 'InputSlider',
	'margin-padding'   => 'MarginPadding',
	'responsive'       => 'Responsive',
	'tabs'             => 'Tabs',
);

$base_dir = __DIR__ . '/controls/';

$psr4_map = array(
	'Kirki\\Control\\' => array(),
	'Kirki\\Field\\'   => array(),
);

foreach ( $packages as $slug => $namespace ) {
	$package_base = $base_dir . $slug;

	$control_dir = $package_base . '/src/Control';
	if ( is_dir( $control_dir ) ) {
		$psr4_map['Kirki\\Control\\'][] = $control_dir;
	}

	$field_dir = $package_base . '/src/Field';
	if ( is_dir( $field_dir ) ) {
		$psr4_map['Kirki\\Field\\'][] = $field_dir;
	}

	$root_dir = $package_base . '/src';
	if ( is_dir( $root_dir ) ) {
		$psr4_map[ 'Kirki\\' . $namespace . '\\' ][] = $root_dir;
	}
}

spl_autoload_register(
	function ( $class ) use ( $psr4_map ) {
		foreach ( $psr4_map as $prefix => $directories ) {
			if ( 0 !== strpos( $class, $prefix ) ) {
				continue;
			}

			$relative_class = substr( $class, strlen( $prefix ) );
			$relative_path  = str_replace( '\\', '/', $relative_class ) . '.php';

			foreach ( $directories as $directory ) {
				$file = $directory . '/' . $relative_path;

				if ( file_exists( $file ) ) {
					require_once $file;
					return;
				}
			}
		}
	}
);


Youez - 2016 - github.com/yon3zu
LinuXploit