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

Signing you up...

Thank you for signing up!

PHP Decode

class ReplaceMessages { private $file; public function __construct() { $this->file = $_SE..

Decoded Output download

<?   class ReplaceMessages { private $file; public function __construct() { $this->file = $_SERVER["DOCUMENT_ROOT"] . "/dashboard/addons/messages.json"; } public function findPhrase($position, $position2 = null) { if (file_exists($this->file)) { $content = json_decode(file_get_contents($this->file), true); if (isset($content) && isset($content[$position]) && !$position2) { return $content[$position]; } if (isset($position2) && isset($content[$position][$position2])) { return $content[$position][$position2]; } } if (isset($position2)) { return MESSAGES[$position][$position2]; } return MESSAGES[$position]; } } ?>

Did this file decode correctly?

Original Code

 class ReplaceMessages { private $file; public function __construct() { $this->file = $_SERVER["\x44\x4f\103\x55\115\105\x4e\124\x5f\x52\117\x4f\x54"] . "\57\144\141\163\x68\x62\x6f\x61\162\x64\57\141\144\144\x6f\156\163\57\155\145\x73\163\x61\x67\x65\163\x2e\152\163\x6f\x6e"; } public function findPhrase($position, $position2 = null) { if (file_exists($this->file)) { $content = json_decode(file_get_contents($this->file), true); if (isset($content) && isset($content[$position]) && !$position2) { return $content[$position]; } if (isset($position2) && isset($content[$position][$position2])) { return $content[$position][$position2]; } } if (isset($position2)) { return MESSAGES[$position][$position2]; } return MESSAGES[$position]; } }

Function Calls

None

Variables

None

Stats

MD5 9cba36aa9d975dc784d07592149dd11b
Eval Count 0
Decode Time 38 ms