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 class Trans{private $utf8_gb2312; private $utf8_big5; public function __construct()..

Decoded Output download

<?php 
class Trans{private $utf8_gb2312; private $utf8_big5; public function __construct(){$this->utf8_gb2312=""; $this->utf8_big5=""; } public function c2t($str){$str_t=''; $len=strlen($str); $a=0; while ($a < $len){if (ord($str{$a}) >= 224 && ord($str{$a}) <= 239){if (($temp=strpos($this->utf8_gb2312, $str{$a} . $str{$a+1} . $str{$a+2})) !== false){$str_t.=$this->utf8_big5{$temp} . $this->utf8_big5{$temp + 1} . $this->utf8_big5{$temp + 2} ; $a += 3; continue; } } $str_t.=$str{$a}; $a += 1; } return $str_t; } public function t2c($str){$str_t=''; $len=strlen($str); $a=0; while ($a < $len){if (ord($str{$a}) >= 224 && ord($str{$a}) <= 239){if (($temp=strpos($this->utf8_big5, $str{$a} . $str{$a+1} . $str{$a+2})) !== false){$str_t.=$this->utf8_gb2312{$temp} . $this->utf8_gb2312{$temp + 1} . $this->utf8_gb2312{$temp + 2} ; $a += 3; continue; } } $str_t.=$str{$a}; $a += 1; } return $str_t; } }  ?>

Did this file decode correctly?

Original Code

<?php
class Trans{private $utf8_gb2312; private $utf8_big5; public function __construct(){$this->utf8_gb2312=""; $this->utf8_big5=""; } public function c2t($str){$str_t=''; $len=strlen($str); $a=0; while ($a < $len){if (ord($str{$a}) >= 224 && ord($str{$a}) <= 239){if (($temp=strpos($this->utf8_gb2312, $str{$a} . $str{$a+1} . $str{$a+2})) !== false){$str_t.=$this->utf8_big5{$temp} . $this->utf8_big5{$temp + 1} . $this->utf8_big5{$temp + 2} ; $a += 3; continue; } } $str_t.=$str{$a}; $a += 1; } return $str_t; } public function t2c($str){$str_t=''; $len=strlen($str); $a=0; while ($a < $len){if (ord($str{$a}) >= 224 && ord($str{$a}) <= 239){if (($temp=strpos($this->utf8_big5, $str{$a} . $str{$a+1} . $str{$a+2})) !== false){$str_t.=$this->utf8_gb2312{$temp} . $this->utf8_gb2312{$temp + 1} . $this->utf8_gb2312{$temp + 2} ; $a += 3; continue; } } $str_t.=$str{$a}; $a += 1; } return $str_t; } } 

Function Calls

None

Variables

None

Stats

MD5 9be3669e51e3571bc411fbc2ee241218
Eval Count 0
Decode Time 128 ms