Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php // +---------------------------------------------------------------------- // | TOPT..

Decoded Output download

<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://topthink.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------

// 
class Storage {

    /**
     * 
     * @var string
     * @access protected
     */
    static protected $handler    ;

    /**
     * 
     * @access public
     * @param string $type 
     * @param array $options  
     * @return void
     */
    static public function connect($type='File',$options=array()) {
        $class  =   'Storage_'.ucwords($type);
        self::$handler = new $class($options);
    }

    static public function __callstatic($method,$args){
        //
        if(method_exists(self::$handler, $method)){
           return call_user_func_array(array(self::$handler,$method), $args);
        }
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://topthink.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------

// 
class Storage {

    /**
     * 
     * @var string
     * @access protected
     */
    static protected $handler    ;

    /**
     * 
     * @access public
     * @param string $type 
     * @param array $options  
     * @return void
     */
    static public function connect($type='File',$options=array()) {
        $class  =   'Storage_'.ucwords($type);
        self::$handler = new $class($options);
    }

    static public function __callstatic($method,$args){
        //
        if(method_exists(self::$handler, $method)){
           return call_user_func_array(array(self::$handler,$method), $args);
        }
    }
}

Function Calls

None

Variables

None

Stats

MD5 d07b3945d8ee638390872e2cef3f3b4a
Eval Count 0
Decode Time 103 ms