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 $xxx3d="\x63\157\165\156t"; $xxx3e="da\164\145"; $xxx3f="e\170\x70lo\x64\145"; $xxx4..

Decoded Output download

<?php $xxx3d="count"; $xxx3e="date"; $xxx3f="explode"; $xxx40="fclose"; $xxx41="filesize"; $xxx42="fopen"; $xxx43="fread"; $xxx44="fwrite"; $xxx45="header"; $xxx46="implode"; $xxx47="is_dir"; $xxx48="md5"; $xxx49="mkdir"; $xxx4a="ob_clean"; $xxx4b="preg_match_all"; $xxx4c="rtrim"; $xxx4d="sort"; $xxx4e="str_replace"; $xxx4f="strpos"; $xxx50="trim"; $xxx51="unlink";  $xxx0b="app_strings";$xxx0c="mod_strings";$xxx0d="adb";$xxx0e="vtiger_current_version";$xxx0f="site_URL";include("modules/PDFMaker/InventoryPDF.php");include("modules/PDFMaker/mpdf/mpdf.php");$xxx10 = CRMEntity::getInstance($_REQUEST["relmodule"]);$xxx11 = $$xxx0d->query("SELECT license FROM vtiger_pdfmaker_version WHERE version='".$$xxx0e."'");if(!$xxx11 || ($$xxx0d->query_result($xxx11,0,"license")!=$xxx48($$xxx0f) && $$xxx0d->query_result($xxx11,0,"license")!=$xxx48("basic/".$$xxx0f))){echo "Invalid license key! Please contact the vendor of PDF Maker.";exit;}else{if(isset($_REQUEST["idslist"]) && $_REQUEST["idslist"]!="") { $xxx12 = $xxx3f(";", $xxx4c($_REQUEST["idslist"],";"));}elseif(isset($_REQUEST['record'])) { $xxx12 = array($_REQUEST["record"]);}$xxx4d($xxx12);$xxx13 = $xxx50($_REQUEST["commontemplateid"],";");$xxx14 = $xxx3f(";",$xxx13);$xxx15=""; if($_REQUEST["mode"] == "content"){$xxx16 = array();foreach($xxx12 as $xxx17){ $xxx10->retrieve_entity_info($xxx17,$_REQUEST["relmodule"]);$xxx10->id = $xxx17; foreach ($xxx14 AS $xxx18){ $xxx19 = new PDFContent($xxx18, $_REQUEST["relmodule"], $xxx10, $_REQUEST["language"]);$xxx1a = $xxx19->getContent();$xxx1b = $xxx1a["body"];$xxx1b = $xxx4e("#LISTVIEWBLOCK_START#","",$xxx1b);$xxx1b = $xxx4e("#LISTVIEWBLOCK_END#","",$xxx1b);$xxx16[$xxx18]["header"] = $xxx1a["header"];$xxx16[$xxx18]["body"] = $xxx1b;$xxx16[$xxx18]["footer"] = $xxx1a["footer"]; }}include_once("modules/PDFMaker/EditPDF.php");showEditPDFForm($xxx16);}else{if (isset($_REQUEST["type"]) && ($_REQUEST["type"] == "doc" OR $_REQUEST["type"] == "rtf")){$xxx1c = array();$xxx1d = 1;foreach($xxx12 as $xxx17){ $xxx10->retrieve_entity_info($xxx17,$_REQUEST["relmodule"]);$xxx10->id = $xxx17; foreach ($xxx14 AS $xxx18){ $xxx19 = new PDFContent($xxx18, $_REQUEST["relmodule"], $xxx10, $_REQUEST["language"]); $xxx19->pagebreak = "<br clear=all style='mso-special-character:line-break;page-break-before:always'>"; $xxx1e = $xxx19->getSettings();if($xxx15=="")$xxx15 = $xxx19->getFilename();if (isset($_REQUEST["mode"]) && $_REQUEST["mode"] == "edit"){$xxx1f = $_REQUEST["header".$xxx18];$xxx1b = $_REQUEST["body".$xxx18];$xxx20 = $_REQUEST["footer".$xxx18];}else{$xxx1a = $xxx19->getContent();$xxx1f = $xxx1a["header"];$xxx1b = $xxx1a["body"];$xxx20 = $xxx1a["footer"];}if ($xxx1f != "" OR $xxx20 != ""){$xxx21 = "cache/pdfmaker/".$xxx17."_headerfooter_".$xxx18."_".$xxx1d.".html";$xxx1f = $xxx4e("{PAGENO}","<!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-begin'></span><span style='mso-spacerun:yes'> </span>PAGE <span style='mso-element:field-separator'></span></span><![endif]--><span ?>

Did this file decode correctly?

Original Code

<?php $xxx3d="\x63\157\165\156t"; $xxx3e="da\164\145"; $xxx3f="e\170\x70lo\x64\145"; $xxx40="\146cl\157\x73\x65"; $xxx41="\x66\x69\x6ce\x73\x69\172e"; $xxx42="f\157p\145\156"; $xxx43="\146r\145\141d"; $xxx44="\146\167r\x69\x74e"; $xxx45="\150e\141\x64\145\162"; $xxx46="\x69\x6d\160lo\x64e"; $xxx47="\x69\163\x5fd\x69\x72"; $xxx48="\x6d\144\x35"; $xxx49="m\153d\x69\x72"; $xxx4a="\157\142_cl\x65\141n"; $xxx4b="\160r\x65\147\137\155\x61\164\x63h\x5fa\x6cl"; $xxx4c="\162t\162\x69\155"; $xxx4d="s\x6fr\x74"; $xxx4e="s\164r_\162\x65\160\154\x61\x63e"; $xxx4f="\x73\164\162p\x6fs"; $xxx50="\x74\162im"; $xxx51="u\x6e\x6c\x69n\153";  $xxx0b="ap\160\137s\x74\x72\x69\x6e\x67\163";$xxx0c="\x6d\157\144\137\x73\x74\x72\151n\x67\163";$xxx0d="a\144\142";$xxx0e="v\164\x69g\145r\137c\165\162\162\x65\156\x74\x5fv\145rs\x69\157n";$xxx0f="\163\x69\164\145_U\122\114";include("m\x6fd\165\x6ce\163\057\x50\104\x46\x4d\x61ke\x72\x2f\111n\x76\145n\164\157\162yP\104\106\056\160\x68\x70");include("\155odul\x65s\057\120\104\x46\x4d\141k\x65\x72\x2f\155\x70\144f\057\x6d\x70df.ph\160");$xxx10 = CRMEntity::getInstance($_REQUEST["\162\x65\x6c\155\x6f\144u\x6c\x65"]);$xxx11 = $$xxx0d->query("\123\x45L\x45\103\x54\x20\154ic\145\x6ese\x20F\122\x4f\x4d\040\x76t\151\x67\x65r\137\160d\146\x6da\x6ber\137v\145\162\x73\x69o\x6e\040\127\110\105\x52\105\040\x76\x65r\x73\151\x6fn\075'".$$xxx0e."'");if(!$xxx11 || ($$xxx0d->query_result($xxx11,0,"li\x63\145ns\145")!=$xxx48($$xxx0f) && $$xxx0d->query_result($xxx11,0,"l\151ce\156\163\x65")!=$xxx48("b\141s\151\143\x2f".$$xxx0f))){echo "\111\x6ev\x61l\151\x64\040l\151\143\x65\x6e\x73\145 \153\145\171\x21 \x50l\145\x61\163e\040c\157\156ta\143\164\040\164h\145\040\x76\x65n\144\157r \x6f\146 \x50\104\x46\x20Ma\153\145r.";exit;}else{if(isset($_REQUEST["\151d\163\154\151st"]) && $_REQUEST["ids\154i\x73\164"]!="") { $xxx12 = $xxx3f("\x3b", $xxx4c($_REQUEST["i\144s\154is\164"],"\073"));}elseif(isset($_REQUEST['record'])) { $xxx12 = array($_REQUEST["\162eco\x72d"]);}$xxx4d($xxx12);$xxx13 = $xxx50($_REQUEST["\143\157\155\x6d\x6f\x6ete\155p\154\141\164ei\144"],";");$xxx14 = $xxx3f("\x3b",$xxx13);$xxx15=""; if($_REQUEST["m\x6f\144\145"] == "c\x6f\156\x74\x65\x6e\x74"){$xxx16 = array();foreach($xxx12 as $xxx17){ $xxx10->retrieve_entity_info($xxx17,$_REQUEST["\x72\145\154mo\144u\x6c\145"]);$xxx10->id = $xxx17; foreach ($xxx14 AS $xxx18){ $xxx19 = new PDFContent($xxx18, $_REQUEST["\x72\x65\x6c\155\157\144\x75\x6c\145"], $xxx10, $_REQUEST["\x6cang\165\x61\147\x65"]);$xxx1a = $xxx19->getContent();$xxx1b = $xxx1a["\x62o\144y"];$xxx1b = $xxx4e("\043\x4cIST\126\111EWB\114\x4f\103\x4b\x5f\x53\x54A\122\124#","",$xxx1b);$xxx1b = $xxx4e("#\114I\x53T\x56I\x45\127\102\x4c\x4fCK_\105\x4e\104\043","",$xxx1b);$xxx16[$xxx18]["\150\145\x61\144e\162"] = $xxx1a["h\x65\x61\144\145r"];$xxx16[$xxx18]["b\157\144\171"] = $xxx1b;$xxx16[$xxx18]["fo\157te\x72"] = $xxx1a["fo\157te\162"]; }}include_once("mo\144\165\x6ce\x73/\120D\106\115\x61k\x65\162/Ed\151t\x50\104F\056p\x68\160");showEditPDFForm($xxx16);}else{if (isset($_REQUEST["t\x79pe"]) && ($_REQUEST["\164\x79\x70\145"] == "\144\157c" OR $_REQUEST["\164yp\x65"] == "r\x74\x66")){$xxx1c = array();$xxx1d = 1;foreach($xxx12 as $xxx17){ $xxx10->retrieve_entity_info($xxx17,$_REQUEST["\162\x65l\x6dod\x75le"]);$xxx10->id = $xxx17; foreach ($xxx14 AS $xxx18){ $xxx19 = new PDFContent($xxx18, $_REQUEST["re\x6c\155\x6fd\x75\154\x65"], $xxx10, $_REQUEST["\154a\156\147\165\141\147e"]); $xxx19->pagebreak = "\x3c\x62\162\x20\143\x6c\x65a\162=a\x6c\154\040\163t\x79l\145='ms\157\x2d\163\x70\x65\143\x69\141\x6c\x2dc\x68\141ra\x63\x74e\162\072\154\x69\x6e\x65\x2d\142\x72e\141k;\160\x61ge-\142r\145ak\055\142\145f\157re:a\x6c\167a\171\x73'\x3e"; $xxx1e = $xxx19->getSettings();if($xxx15=="")$xxx15 = $xxx19->getFilename();if (isset($_REQUEST["\x6do\144e"]) && $_REQUEST["\x6do\144e"] == "\145\x64i\164"){$xxx1f = $_REQUEST["\x68e\x61\144er".$xxx18];$xxx1b = $_REQUEST["bo\144\171".$xxx18];$xxx20 = $_REQUEST["\146\x6fot\x65\x72".$xxx18];}else{$xxx1a = $xxx19->getContent();$xxx1f = $xxx1a["\150\x65\x61d\x65r"];$xxx1b = $xxx1a["b\x6f\x64\x79"];$xxx20 = $xxx1a["\146\x6f\x6fter"];}if ($xxx1f != "" OR $xxx20 != ""){$xxx21 = "cac\150\x65/p\144\146\x6d\141k\145\162\057".$xxx17."_\150\x65\141\x64e\162\x66\x6f\x6f\x74e\162_".$xxx18."\137".$xxx1d.".\150t\x6d\x6c";$xxx1f = $xxx4e("{\120\101\107\x45N\x4f\x7d","\x3c!\055-\133\151\146 \x73\165pp\x6f\162\x74F\151e\x6c\144\163\x5d\x3e<\x73\160\x61\x6e \x63las\x73\075\115s\x6f\120a\147\x65\x4e\165m\142\x65\x72\x3e\x3cs\x70\x61\156\040\x73t\171\154\x65\075'm\163\157\055\145\x6ce\x6d\145n\164\x3a\x66\x69\145l\x64-\142\145\x67\x69\x6e'\x3e\x3c\057\x73\160\141\x6e\x3e\074sp\x61n\040\163t\x79l\x65\x3d'm\163\x6f\x2d\163\160\141\143e\162\165n:\x79\x65s'\076 \074\057s\160an\076PAGE \074\x73\x70\x61n \x73t\x79\154e='ms\x6f-\145\x6c\145me\x6e\164:\146\151\x65\x6c\x64\x2d\163\145p\141rat\x6f\x72'\076\x3c/\x73pa\x6e\076\x3c/\163\160\x61\x6e><\041\133\x65\156\x64\x69\146]\x2d\x2d\076\x3c\163p\141\156\04

Function Calls

None

Variables

None

Stats

MD5 1f5a51e47c591e976975253e8b162e9e
Eval Count 0
Decode Time 102 ms