Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(base64_decode('CiBjbGFzcyBDX1V0aWxpdHlfcEMgeyBwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGFkZF9zbG..
Decoded Output download
class C_Utility_pC { public static function add_slashes($str) { if (get_magic_quotes_gpc() == 1) { return $str; } else { return addslashes($str); } } public static function indent_json($json) { $result = ''; $pos = 0; $strLen = strlen($json); $indentStr = "\x20\x20"; $newLine = "\xa"; for ($i = 0; $i <= $strLen; $i++) { $char = substr($json, $i, 1); if ($char == "\175" || $char == "\x5d") { $result .= $newLine; $pos--; for ($j = 0; $j < $pos; $j++) { $result .= $indentStr; } } $result .= $char; if ($char == "\173" || $char == "\x5b") { $result .= $newLine; if ($char == "\173" || $char == "\x5b") { $pos++; } for ($j = 0; $j < $pos; $j++) { $result .= $indentStr; } } } return $result; } public static function literalBool($boolValue) { return $boolValue ? "\164\x72\x75\x65" : "\146\141\x6c\x73\x65"; } }
Did this file decode correctly?
Original Code
eval(base64_decode('CiBjbGFzcyBDX1V0aWxpdHlfcEMgeyBwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGFkZF9zbGFzaGVzKCRzdHIpIHsgaWYgKGdldF9tYWdpY19xdW90ZXNfZ3BjKCkgPT0gMSkgeyByZXR1cm4gJHN0cjsgfSBlbHNlIHsgcmV0dXJuIGFkZHNsYXNoZXMoJHN0cik7IH0gfSBwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGluZGVudF9qc29uKCRqc29uKSB7ICRyZXN1bHQgPSAnJzsgJHBvcyA9IDA7ICRzdHJMZW4gPSBzdHJsZW4oJGpzb24pOyAkaW5kZW50U3RyID0gIlx4MjBceDIwIjsgJG5ld0xpbmUgPSAiXHhhIjsgZm9yICgkaSA9IDA7ICRpIDw9ICRzdHJMZW47ICRpKyspIHsgJGNoYXIgPSBzdWJzdHIoJGpzb24sICRpLCAxKTsgaWYgKCRjaGFyID09ICJcMTc1Ii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