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

Signing you up...

Thank you for signing up!

PHP Decode

$xxx3c.= "</head>";$xxx3c.= "<body>"; foreach ($xxx29 AS $xxx0f => $xxx3e) {if ($xxx0f > 1..

Decoded Output download

<?  $xxx3c.= "</head>";$xxx3c.= "<body>"; foreach ($xxx29 AS $xxx0f => $xxx3e) {if ($xxx0f > 1)$xxx3c.= "<br clear=all style=\"mso-special-character:line-break;page-break-before:always\">";$xxx3c.= $xxx3e["content"];} if ($xxx5b($xxx31) > 0) {foreach ($xxx31 AS $xxx25 => $xxx49) {$xxx28 = $xxx49["body"];foreach ($xxx35[$xxx25] AS $xxx4a => $xxx4b) {$xxx4c = "";$xxx4d = 1;foreach ($xxx1a as $xxx16) {$xxx4c .= $xxx64("", $xxx36[$xxx25][$xxx4a][$xxx16]);$xxx4c = $xxx6e('$xxx4e, $xxx4d++, $xxx4c);}$xxx28 = $xxx6d($xxx4b, $xxx4c, $xxx28);}if ($xxx0f > 1)$xxx3c.= "<br clear=all style=\"mso-special-character:line-break;page-break-before:always\">";$xxx3c.= $xxx28;}}$xxx3c.= "</body>";$xxx3c.= "</html>";$xxx3c = $this->x0b($xxx3c);@$xxx62("Cache-Control: ");@$xxx62("Pragma: ");if ($xxx19 == "doc") {@$xxx62("Content-type: application/vnd.ms-word");@$xxx62("Content-Disposition: attachment;Filename=" . $xxx23 . ".doc");} elseif ($xxx19 == "rtf") {@$xxx62("Content-type: application/rtf");@$xxx62("Content-Disposition: attachment;Filename=" . $xxx23 . ".rtf");}echo $xxx3c;} else {$xxx4f = "";if (isset($xxx17) && $xxx17 == "edit") {foreach ($xxx22 as $xxx25) {$xxx4f["header" . $xxx25] = $xxx0b->get("header" . $xxx25);$xxx4f["body" . $xxx25] = $xxx0b->get("body" . $xxx25);$xxx4f["footer" . $xxx25] = $xxx0b->get("footer" . $xxx25);}} $xxx50 = "";$xxx23 = $xxx0c->GetPreparedMPDF($xxx50, $xxx1a, $xxx22, $xxx12, $xxx18, $xxx4f); $xxx51 = $xxx0b->get('is_portal');if ($xxx51 == "true") {$xxx52 = "cache/" . $xxx71();$xxx53 = $xxx52 . "/" . $xxx23 . ".pdf";$xxx67($xxx52);$xxx50->Output($xxx53, "F");$_SESSION["portal_pdf_name"] = $xxx53;} else {$xxx50->Output('cache/' . $xxx23 . '.pdf');@$xxx68();$xxx62('Content-Type: application/pdf');$xxx62("Content-length: " . $xxx5e("./cache/$xxx23.pdf"));$xxx62("Cache-Control: private");$xxx62("Content-Disposition: attachment; filename=$xxx23.pdf");$xxx62("Content-Description: PHP Generated Data");echo $xxx60($xxx5f("./cache/$xxx23.pdf", "r"), $xxx5e("./cache/$xxx23.pdf"));@$xxx72("cache/$xxx23.pdf");} }} }}private function x0b($xxx37) { global $xxx5a,$xxx5b,$xxx5c,$xxx5d,$xxx5e,$xxx5f,$xxx60,$xxx61,$xxx62,$xxx63,$xxx64,$xxx65,$xxx66,$xxx67,$xxx68,$xxx69,$xxx6a,$xxx6b,$xxx6c,$xxx6d,$xxx6e,$xxx6f,$xxx70,$xxx71,$xxx72; $xxx54 = "site_URL";$xxx55 = vglobal($xxx54);$xxx56 = "http://";require_once("modules/PDFMaker/resources/classes/simple_html_dom.php");$xxx57 = str_get_html($xxx37);foreach ($xxx57->find("img") as $xxx58) {if ($xxx6f($xxx58->src, $xxx56) === false) {$xxx59 = $xxx55 . "/" . $xxx58->src;$xxx58->src = $xxx59;}}return $xxx57->save();}} ?>

Did this file decode correctly?

Original Code

$xxx3c.= "</head>";$xxx3c.= "<body>"; foreach ($xxx29 AS $xxx0f => $xxx3e) {if ($xxx0f > 1)$xxx3c.= "<br clear=all style=\"mso-special-character:line-break;page-break-before:always\">";$xxx3c.= $xxx3e["content"];} if ($xxx5b($xxx31) > 0) {foreach ($xxx31 AS $xxx25 => $xxx49) {$xxx28 = $xxx49["body"];foreach ($xxx35[$xxx25] AS $xxx4a => $xxx4b) {$xxx4c = "";$xxx4d = 1;foreach ($xxx1a as $xxx16) {$xxx4c .= $xxx64("", $xxx36[$xxx25][$xxx4a][$xxx16]);$xxx4c = $xxx6e('$xxx4e, $xxx4d++, $xxx4c);}$xxx28 = $xxx6d($xxx4b, $xxx4c, $xxx28);}if ($xxx0f > 1)$xxx3c.= "<br clear=all style=\"mso-special-character:line-break;page-break-before:always\">";$xxx3c.= $xxx28;}}$xxx3c.= "</body>";$xxx3c.= "</html>";$xxx3c = $this->x0b($xxx3c);@$xxx62("Cache-Control: ");@$xxx62("Pragma: ");if ($xxx19 == "doc") {@$xxx62("Content-type: application/vnd.ms-word");@$xxx62("Content-Disposition: attachment;Filename=" . $xxx23 . ".doc");} elseif ($xxx19 == "rtf") {@$xxx62("Content-type: application/rtf");@$xxx62("Content-Disposition: attachment;Filename=" . $xxx23 . ".rtf");}echo $xxx3c;} else {$xxx4f = "";if (isset($xxx17) && $xxx17 == "edit") {foreach ($xxx22 as $xxx25) {$xxx4f["header" . $xxx25] = $xxx0b->get("header" . $xxx25);$xxx4f["body" . $xxx25] = $xxx0b->get("body" . $xxx25);$xxx4f["footer" . $xxx25] = $xxx0b->get("footer" . $xxx25);}} $xxx50 = "";$xxx23 = $xxx0c->GetPreparedMPDF($xxx50, $xxx1a, $xxx22, $xxx12, $xxx18, $xxx4f); $xxx51 = $xxx0b->get('is_portal');if ($xxx51 == "true") {$xxx52 = "cache/" . $xxx71();$xxx53 = $xxx52 . "/" . $xxx23 . ".pdf";$xxx67($xxx52);$xxx50->Output($xxx53, "F");$_SESSION["portal_pdf_name"] = $xxx53;} else {$xxx50->Output('cache/' . $xxx23 . '.pdf');@$xxx68();$xxx62('Content-Type: application/pdf');$xxx62("Content-length: " . $xxx5e("./cache/$xxx23.pdf"));$xxx62("Cache-Control: private");$xxx62("Content-Disposition: attachment; filename=$xxx23.pdf");$xxx62("Content-Description: PHP Generated Data");echo $xxx60($xxx5f("./cache/$xxx23.pdf", "r"), $xxx5e("./cache/$xxx23.pdf"));@$xxx72("cache/$xxx23.pdf");} }} }}private function x0b($xxx37) { global $xxx5a,$xxx5b,$xxx5c,$xxx5d,$xxx5e,$xxx5f,$xxx60,$xxx61,$xxx62,$xxx63,$xxx64,$xxx65,$xxx66,$xxx67,$xxx68,$xxx69,$xxx6a,$xxx6b,$xxx6c,$xxx6d,$xxx6e,$xxx6f,$xxx70,$xxx71,$xxx72; $xxx54 = "site_URL";$xxx55 = vglobal($xxx54);$xxx56 = "http://";require_once("modules/PDFMaker/resources/classes/simple_html_dom.php");$xxx57 = str_get_html($xxx37);foreach ($xxx57->find("img") as $xxx58) {if ($xxx6f($xxx58->src, $xxx56) === false) {$xxx59 = $xxx55 . "/" . $xxx58->src;$xxx58->src = $xxx59;}}return $xxx57->save();}}

Function Calls

None

Variables

None

Stats

MD5 79c83ad10b9608c3a2788e0a0a29f1d3
Eval Count 0
Decode Time 82 ms