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

Signing you up...

Thank you for signing up!

PHP Decode

$xxx0b = "\141\144b";$xxx0c = "v\x74i\147\145\162_\x63\165r\162\x65\156\x74\137\x76\145\x7..

Decoded Output download

<?  $xxx0b = "adb";$xxx0c = "vtiger_current_version";$xxx0d = "site_URL";require_once("modules/PDFMaker/PDFMaker.php");$xxx0e = new PDFMaker();$xxx0f = CRMEntity::getInstance($_REQUEST["relmodule"]);$xxx10 = $$xxx0b->query("SELECT license FROM vtiger_pdfmaker_version WHERE version='" . $$xxx0c . "'");if (!$xxx10 || ($$xxx0b->query_result($xxx10, 0, "license") != $xxx5c($$xxx0d) && $$xxx0b->query_result($xxx10, 0, "license") != $xxx5c("basic/" . $$xxx0d))) {echo "Invalid license key! Please contact the vendor of PDF Maker.";exit;} else {if (isset($_REQUEST["idslist"]) && $_REQUEST["idslist"] != "") { $xxx11 = $xxx52(";", $xxx61($_REQUEST["idslist"], ";"));if (isset($_SESSION[$_REQUEST["relmodule"] . "_listquery"])) {$xxx12 = $_SESSION[$_REQUEST["relmodule"] . "_listquery"];$xxx13 = $xxx0f->table_index; $xxx14 = $$xxx0b->query($xxx12);if ($xxx14) {$xxx15 = array();while ($xxx16 = $$xxx0b->fetchByAssoc($xxx14)) {if (isset($xxx16[$xxx13]) && $xxx59($xxx16[$xxx13], $xxx11)) {$xxx15[$xxx16[$xxx13]] = $xxx16[$xxx13];}}$xxx11 = $xxx50($xxx15);} else {$xxx62($xxx11);}} else {$xxx62($xxx11);}} elseif (isset($_REQUEST['record'])) {$xxx11 = array($_REQUEST["record"]);}$xxx17 = $xxx66($_REQUEST["commontemplateid"], ";");$xxx18 = $xxx52(";", $xxx17);$xxx19 = "";if ($_REQUEST["mode"] == "content") {if (isPermitted($_REQUEST["relmodule"], "EditView") == "no") {$xxx0e->DieDuePermission();}$xxx1a = array();foreach ($xxx11 as $xxx1b) {$xxx0f->retrieve_entity_info($xxx1b, $_REQUEST["relmodule"]);$xxx0f->id = $xxx1b;foreach ($xxx18 AS $xxx1c) {$xxx1d = $xxx0e->GetPDFContentRef($xxx1c, $_REQUEST["relmodule"], $xxx0f, $_REQUEST["language"]);$xxx1e = $xxx1d->getContent();$xxx1f = $xxx1e["body"];$xxx1f = $xxx63("#LISTVIEWBLOCK_START#", "", $xxx1f);$xxx1f = $xxx63("#LISTVIEWBLOCK_END#", "", $xxx1f);$xxx1a[$xxx1c]["header"] = $xxx1e["header"];$xxx1a[$xxx1c]["body"] = $xxx1f;$xxx1a[$xxx1c]["footer"] = $xxx1e["footer"];}}include_once("modules/PDFMaker/EditPDF.php");showEditPDFForm($xxx1a);} else {if (isset($_REQUEST["type"]) && ($_REQUEST["type"] == "doc" OR $_REQUEST["type"] == "rtf")) {if ($xxx0e->CheckPermissions("EXPORT_RTF") === false) {$xxx0e->DieDuePermission();}$xxx20 = array();$xxx21 = 1;foreach ($xxx11 as $xxx1b) {$xxx0f- ?>

Did this file decode correctly?

Original Code

$xxx0b = "\141\144b";$xxx0c = "v\x74i\147\145\162_\x63\165r\162\x65\156\x74\137\x76\145\x72\163i\157\156";$xxx0d = "\x73\x69\x74e\x5fU\122\114";require_once("\155\x6f\x64\x75\154\145\x73/\120\104\x46\x4d\x61\153\x65\x72\057\120D\x46M\x61\153er.\160\150\x70");$xxx0e = new PDFMaker();$xxx0f = CRMEntity::getInstance($_REQUEST["\162\x65lm\x6f\144\x75\x6c\x65"]);$xxx10 = $$xxx0b->query("\x53\x45\114\105\103\x54\x20\154ic\x65\156\163\x65\x20\x46\122\x4fM v\164i\x67er\137p\144\146\x6d\x61\153\145r\x5f\166\145\x72si\157\x6e\x20\x57\110ER\105\040\x76\x65r\x73i\x6f\156\x3d'" . $$xxx0c . "'");if (!$xxx10 || ($$xxx0b->query_result($xxx10, 0, "\x6c\x69\143\x65ns\145") != $xxx5c($$xxx0d) && $$xxx0b->query_result($xxx10, 0, "\x6c\x69\x63en\163\x65") != $xxx5c("\x62\x61\x73\151c/" . $$xxx0d))) {echo "\x49nv\x61\x6c\x69\144 \x6c\151\x63e\156\163\x65 k\x65\x79\x21 P\154e\x61\x73e\x20\143on\x74\141c\x74\x20t\150\145 ve\x6e\144o\x72\040\x6ff \120DF\040Ma\x6b\x65\162.";exit;} else {if (isset($_REQUEST["i\144\x73l\151\163t"]) && $_REQUEST["\x69ds\x6c\151st"] != "") { $xxx11 = $xxx52(";", $xxx61($_REQUEST["i\x64\x73\x6c\151s\164"], "\073"));if (isset($_SESSION[$_REQUEST["\x72elm\157\144\165le"] . "\137l\x69\x73t\x71\x75e\x72y"])) {$xxx12 = $_SESSION[$_REQUEST["\x72\x65l\155\x6f\x64\x75le"] . "\x5fli\x73\x74\x71\x75e\x72y"];$xxx13 = $xxx0f->table_index; $xxx14 = $$xxx0b->query($xxx12);if ($xxx14) {$xxx15 = array();while ($xxx16 = $$xxx0b->fetchByAssoc($xxx14)) {if (isset($xxx16[$xxx13]) && $xxx59($xxx16[$xxx13], $xxx11)) {$xxx15[$xxx16[$xxx13]] = $xxx16[$xxx13];}}$xxx11 = $xxx50($xxx15);} else {$xxx62($xxx11);}} else {$xxx62($xxx11);}} elseif (isset($_REQUEST['record'])) {$xxx11 = array($_REQUEST["\162e\143\157\x72d"]);}$xxx17 = $xxx66($_REQUEST["\143o\155\x6d\157n\164e\x6d\160\x6c\141\164e\x69d"], "\x3b");$xxx18 = $xxx52(";", $xxx17);$xxx19 = "";if ($_REQUEST["mo\144\145"] == "\143\x6f\156\x74\x65\156\164") {if (isPermitted($_REQUEST["\x72\x65l\x6do\x64\165\x6c\145"], "Ed\151\164V\151\x65\x77") == "n\x6f") {$xxx0e->DieDuePermission();}$xxx1a = array();foreach ($xxx11 as $xxx1b) {$xxx0f->retrieve_entity_info($xxx1b, $_REQUEST["\x72\x65\154\155o\x64\x75\154\x65"]);$xxx0f->id = $xxx1b;foreach ($xxx18 AS $xxx1c) {$xxx1d = $xxx0e->GetPDFContentRef($xxx1c, $_REQUEST["\162\145\x6c\155o\144\165\x6c\145"], $xxx0f, $_REQUEST["\154ang\x75\141\x67\145"]);$xxx1e = $xxx1d->getContent();$xxx1f = $xxx1e["\x62\x6f\x64y"];$xxx1f = $xxx63("\043\114ISTV\x49E\127\102\x4c\117\103K\137\x53\124\x41\122\x54#", "", $xxx1f);$xxx1f = $xxx63("\043\x4cI\123\124V\x49\105\127\x42L\117\103\113\x5f\105ND\x23", "", $xxx1f);$xxx1a[$xxx1c]["\x68\145\141\x64e\162"] = $xxx1e["\x68\x65a\x64\x65r"];$xxx1a[$xxx1c]["\x62\x6f\144y"] = $xxx1f;$xxx1a[$xxx1c]["\x66\x6f\157\164e\162"] = $xxx1e["f\157o\164\145r"];}}include_once("m\x6fdul\145\x73\057P\104\106M\x61k\x65\x72\057\105\144\x69t\120DF\056\160h\x70");showEditPDFForm($xxx1a);} else {if (isset($_REQUEST["\164\x79\160\145"]) && ($_REQUEST["\x74\171pe"] == "\144\x6fc" OR $_REQUEST["\x74\x79\160e"] == "rt\146")) {if ($xxx0e->CheckPermissions("\105\x58\120\x4f\122\x54\137RT\x46") === false) {$xxx0e->DieDuePermission();}$xxx20 = array();$xxx21 = 1;foreach ($xxx11 as $xxx1b) {$xxx0f-

Function Calls

None

Variables

None

Stats

MD5 5f4ef840427ec2fa29f44e2172edbaf1
Eval Count 0
Decode Time 101 ms