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 eval(gzinflate(base64_decode('DZZHsoRatkOHU+8FDbyLimok3kPiofMDm/iDd6P/dwAKNaS9tqozG/..

Decoded Output download


 class DisplayImage extends AbstractDisplay { public function __construct() { parent::__construct(); } public function __destruct() { parent::__destruct(); } public function drawView($obj) { $tt = new TraceTimer(); $tt->start(); for (; true;) { if (!isset($obj) || $obj == null || get_class($obj) != "stdClass" || !isset($obj->filepath)) { $tmpFilePath = Utill::getParamString("filepath", "", false, null, false);; $tmpFilename = Utill::getParamString("filename", "", false, null, false); if (!Utill::isNullorEmpty($tmpFilePath)) { $obj = new stdClass(); $path = defined("__PATH_CUSTOM_UPLOAD_SITE__") ? __PATH_CUSTOM_UPLOAD_SITE__ : __PATH_UPLOAD__; $obj->filepath = $path.Utill::Decode64($tmpFilePath); if (!Utill::isNullorEmpty($tmpFilename)) { $obj->filename = Utill::Decode64($tmpFilename); } } else { $this->logger->error("check arguments(argument is stdClass ex) obj->filepath, obj->filename)[
".print_r($obj, true)."]"); break; } } $filepath = $obj->filepath; $filepath = str_replace("../", "/", $filepath); $filepath = str_replace("..\", "/", $filepath); $filepath = Utill::getUploadEncodingStr($filepath); if (!is_file($filepath)) { $this->logger->error("not found image[".$filepath."]"); header("HTTP/1.0 404 Not Found"); exit; } $finfo = pathinfo($filepath); if (isset($obj->filename)) { $filename = $obj->filename; } else { $filename = $finfo["basename"]; } $imgInfo = getimagesize($filepath); if (gettype($imgInfo) != "array" || count($imgInfo) <= 0 || !isset($imgInfo["mime"])) { $this->logger->error("no image file [".$filepath."][".print_r($imgInfo, true)."]"); break; } $filesize = filesize($filepath); if (Utill::IsIE()) { $filename = Utill::getUploadEncodingStr($filename); } else if (Utill::isFirefox()) { $filename = rawurlencode($filename); } $ftime = filemtime($filepath); $ltime = gmdate("D, d M Y H:i:s", $ftime)." GMT"; ob_start('ob_gzhandler'); header("Content-Type: ".$imgInfo['mime']."
"); header("Last-Modified: ".$ltime); header("Content-Control: max-age=".(60 * 60 * 24 * 30).", must-revalidate
"); header("Expires:".substr(gmdate("r", time() + 60 * 60 * 24 * 30), 0, -5)."GMT"); header("Content-Disposition: inline;filename='".$filename."'
"); header("Content-Length: ".$filesize."
"); if (strtoLower($_SERVER["SERVER_SOFTWARE"]) == "apache") { $headers = getallheaders(); $isCached = isset($headers['If-Modified-Since']) && $ltime == $headers['If-Modified-Since'] ? true : false; } else { $isCached = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $ltime == $_SERVER['HTTP_IF_MODIFIED_SINCE'] ? true : false; } if ($isCached) { header('HTTP/1.1 304 Not Modified'); break; } $content = file_get_contents($filepath); print $content; break; } flush(); ob_end_flush(); } } 

Did this file decode correctly?

Original Code

<?php eval(gzinflate(base64_decode('DZZHsoRatkOHU+8FDbyLimok3kPiofMDm/iDd6P/dwAKNaS9tqozG/75ve1UD9le/ZNnW0UR/1dWBSirf/5TpwkunH7ySWyHQDEQiMS1D4JtJ09/D58qTbAHPyZWokj2o2qbMxvokLDwnvH5+IowtUJ6rTMz0bFh7JEhXFbwvbYPh6yxxhUcv2DAP3ks1xh4GOq7WWsxY4h01gdWDAhH/oXEG4T+JdhOJVCjZNLZxNwKFiSPpS2MbJ68GoGkUqNsmNCPqZL4Iigp4f8uhbH9UW5xY07TWn4UPmdpZHdNvCSNupOxTnw+kVlA6qfLloVhWT1L1vRYbhSeZ+xwCMkzJra2w9E5mWmypUKHFamRyzJWqiFORo/MbsjXZPueEOvzrqrFTLzYouuyVdDQukFAZ1VPDGy5TLdyybcCIZfSxOA4WpyWBW7u4CdkLoqERlFTnC6skaQJ3MloYxNkcxnA85cOPb4SKfVyUfR9VAWBTtcTNK2oUwYRYfqQbYjozZQOe63yI8/QXjX/JbvXnekud3rKC/FrusSB27/Z7M578bpfg1Ozyn5o3ILDS3VzNhwr9Cu+ouIknzgBXzNMzc4oVu6L9x//E82UFVJ+hYt5VVC6k8Bq+fI/WFlwMy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
base64_decode 5

Variables

$__DgUISj6XKf class DisplayImage extends AbstractDisplay { public funct..

Stats

MD5 e6df8e3889bf3b841e08af7d0a00a50b
Eval Count 5
Decode Time 53 ms