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

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/home/mnnews/public_html/login/phpmyadmin/libraries/di/   drwxr-xr-x
Free 4.49 GB of 27.03 GB (16.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Container.class.php (3.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Holds the PMA\DI\Container class
*
* @package PMA
*/

namespace PMADI;

require_once
'libraries/di/Item.int.php';
require_once
'libraries/di/AliasItem.class.php';
require_once
'libraries/di/ValueItem.class.php';
require_once
'libraries/di/ServiceItem.class.php';
require_once
'libraries/di/FactoryItem.class.php';

/**
* Class Container
*
* @package PMA\DI
*/
class Container
{

    
/**
     * @var Item[] $content
     */
    
protected $content = array();

    
/**
     * @var Container
     */
    
protected static $defaultContainer;

    
/**
     * Create a dependency injection container
     *
     * @param Container $base Container
     */
    
public function __construct(Container $base = null)
    {
        if (isset(
$base)) {
            
$this->content = $base->content;
        } else {
            
$this->alias('container', 'Container');
        }
        
$this->set('Container', $this);
    }

    
/**
     * Get an object with given name and parameters
     *
     * @param string $name   Name
     * @param array  $params Paramters
     *
     * @return mixed
     */
    
public function get($name, $params = array())
    {
        if (isset(
$this->content[$name])) {
            return
$this->content[$name]->get($params);
        }

        if (isset(
$GLOBALS[$name])) {
            return
$GLOBALS[$name];
        }

        return
null;
    }

    
/**
     * Remove an object from container
     *
     * @param string $name Name
     *
     * @return void
     */
    
public function remove($name)
    {
        unset(
$this->content[$name]);
    }

    
/**
     * Rename an object in container
     *
     * @param string $name    Name
     * @param string $newName New name
     *
     * @return void
     */
    
public function rename($name, $newName)
    {
        
$this->content[$newName] = $this->content[$name];
        
$this->remove($name);
    }

    
/**
     * Set values in the container
     *
     * @param string|array $name  Name
     * @param mixed        $value Value
     *
     * @return void
     */
    
public function set($name, $value = null)
    {
        if (
is_array($name)) {
            foreach (
$name as $key => $val) {
                
$this->set($key, $val);
            }
            return;
        }
        
$this->content[$name] = new ValueItem($value);
    }

    
/**
     * Register a service in the container
     *
     * @param string $name    Name
     * @param mixed  $service Service
     *
     * @return void
     */
    
public function service($name, $service = null)
    {
        if (!isset(
$service)) {
            
$service = $name;
        }
        
$this->content[$name] = new ServiceItem($this, $service);
    }

    
/**
     * Register a factory in the container
     *
     * @param string $name    Name
     * @param mixed  $factory Factory
     *
     * @return void
     */
    
public function factory($name, $factory = null)
    {
        if (!isset(
$factory)) {
            
$factory = $name;
        }
        
$this->content[$name] = new FactoryItem($this, $factory);
    }

    
/**
     * Register an alias in the container
     *
     * @param string $name   Name
     * @param string $target Target
     *
     * @return void
     */
    
public function alias($name, $target)
    {
        
// The target may be not defined yet
        
$this->content[$name] = new AliasItem($this, $target);
    }

    
/**
     * Get the global default container
     *
     * @return Container
     */
    
public static function getDefaultContainer()
    {
        if (!isset(static::
$defaultContainer)) {
            static::
$defaultContainer = new Container();
        }
        return static::
$defaultContainer;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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