!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\cumbreclima\wp-content\plugins\wcp-contact-form\agp-core\classes\   drwxrwxrwx
Free 4.13 GB of 39.52 GB (10.44%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Agp_Autoloader.class.php (4.35 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Webcodin\WCPContactForm\Core;

class 
Agp_Autoloader {

    
/**
     * Class map
     * 
     * @var array 
     */
    
private $classMap = array(
        
__DIR__ => array(''),
    );
    
    
/**
     * The single instance of the class 
     * 
     * @var object 
     */
    
protected static $_instance null;  
    
    
/**
     * Main Instance
     *
     * @return object
     */
    
public static function instance() {
        if ( 
is_nullself::$_instance ) ) {
            
self::$_instance = new self();
        }
        return 
self::$_instance;
    }    
    
    
/**
     * Cloning is forbidden.
     */
    
public function __clone() {
    }

    
/**
     * Unserializing instances of this class is forbidden.
     */
    
public function __wakeup() {
    }        
    
    
/**
     * Constructor
     */
    
public function __construct() {
        
spl_autoload_register(array( $this'autoload' ));
    }
    
    
/**
     * Class autoload
     * 
     * @param string $class
     */
    
private function autoload($class) {
        if (!
class_exists($class) && !empty($this->classMap)) {

            if (
array_key_exists('namespaces'$this->classMap)) {
                
$parts explode('\\'$class);
                
$className array_pop($parts);

                if (!empty(
$parts)) {
                    
$namespace implode('\\'$parts);
                    if (!empty(
$this->classMap['namespaces'][$namespace])) {
                        foreach (
$this->classMap['namespaces'][$namespace] as $path => $value) {
                            
$maps = array();
                            if (
is_array($value)) {
                                
$maps $value;
                            } else {
                                
$maps[] = $value;
                            }
                            
                            foreach (
$maps as $map) {
                                if (!
is_array($map)) {
                                    
$file $path '/' $map .'/' $className '.class.php';
                                    
$file str_replace('//''/'$file);
                                    
$files $this->rglob($file) ;
                                    if (!empty(
$files) && is_array($files) && file_exists($files[0]) && is_file($files[0])) {
                                        require_once 
$files[0];
                                        return;
                                    }                                                            
                                }
                            }
                        }
                    }
                }
            }
            
            foreach (
$this->classMap as $path => $value) {
                
$maps = array();
                if (
is_array($value)) {
                    
$maps $value;
                } else {
                    
$maps[] = $value;
                }
                foreach (
$maps as $map) {
                    if (!
is_array($map)) {
                        
$file $path '/' $map .'/' $class '.class.php';
                        
$file str_replace('//''/'$file);
                        
$files $this->rglob($file) ;
                        if (!empty(
$files) && is_array($files) && file_exists($files[0]) && is_file($files[0])) {
                            require_once 
$files[0];
                            return;
                        }                                    
                    }
                }
            }        
        }
    }
    
    
/**
     * Recursive file search
     * 
     * @param string $pattern
     * @param int $flags
     * @return array
     */
    
private function rglob($pattern$flags 0) {
        
$files glob($pattern$flags); 
        
$glob_files glob(dirname($pattern).'/*'GLOB_ONLYDIR|GLOB_NOSORT);
        if (
$files === FALSE) {
            
$files = array();
        }
        if (
$glob_files === FALSE) {
            
$glob_files = array();
        }        

        foreach (
$glob_files as $dir) {
            
$files array_merge($files$this->rglob($dir.'/'.basename($pattern), $flags));
        }
        return 
$files;
    }      

    public function 
getClassMap() {
        return 
$this->classMap;
    }

    public function 
setClassMap($classMap) {
        if (
is_array($classMap)) {
            
$this->classMap array_merge_recursive($this->classMap$classMap);
        }
        
        return 
$this;
    }


}

Agp_Autoloader::instance();

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--