Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/wikimedia/less.php/lib/Less/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/wikimedia/less.php/lib/Less/Autoloader.php
<?php

/**
 * Autoloader
 */
class Less_Autoloader {

	/** @var bool */
	protected static $registered = false;

	/**
	 * Register the autoloader in the SPL autoloader
	 *
	 * @return void
	 * @throws Exception If there was an error in registration
	 */
	public static function register() {
		if ( self::$registered ) {
			return;
		}

		if ( !spl_autoload_register( [ 'Less_Autoloader', 'loadClass' ] ) ) {
			throw new Exception( 'Unable to register Less_Autoloader::loadClass as an autoloading method.' );
		}

		self::$registered = true;
	}

	/**
	 * Unregister the autoloader
	 *
	 * @return void
	 */
	public static function unregister() {
		spl_autoload_unregister( [ 'Less_Autoloader', 'loadClass' ] );
		self::$registered = false;
	}

	/**
	 * Load the class
	 *
	 * @param string $className The class to load
	 */
	public static function loadClass( $className ) {
		// handle only package classes
		if ( strpos( $className, 'Less_' ) !== 0 ) {
			return;
		}

		$className = substr( $className, 5 );
		$fileName = __DIR__ . DIRECTORY_SEPARATOR . str_replace( '_', DIRECTORY_SEPARATOR, $className ) . '.php';

		require $fileName;
		return true;
	}

}

Spamworldpro Mini