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 $xx1d = "html_entity_decode"; $xx0b = "adb"; $xx0c = "site_URL"; $xx0d = "th..

Decoded Output download

 
 
<?php 
$xx1d = "html_entity_decode"; 
$xx0b = "adb"; 
$xx0c = "site_URL"; 
$xx0d = "this"; 
$xx0e = "return_id"; 
$xx0f = "vtiger_current_version"; 
require_once ("modules/PDFMaker/InventoryPDF.php"); 
include ("modules/PDFMaker/mpdf/mpdf.php"); 
$xx10 = $_REQUEST["record"]; 
$xx11 = getSalesEntityType($xx10); 
$xx12 = CRMEntity::getInstance($xx11); 
if (isset($xx10)) { 
    $xx12->retrieve_entity_info($xx10, $xx11); 
    $xx12->id = $xx10; 
} 
if ($xx11 == "Invoice") $xx13 = "1"; 
elseif ($xx11 == "SalesOrder") $xx13 = "2"; 
elseif ($xx11 == "PurchaseOrder") $xx13 = "3"; 
elseif ($xx11 == "Quotes") $xx13 = "4"; 
else $xx13 = ""; 
if ($xx13 != "") { 
    $xx14 = $xx11 . "_" . $xx10; 
    $xx15 = new PDFContent($xx13, $xx11, $xx12, $_REQUEST["language"]); 
    $xx16 = $xx15->getContent(); 
    $xx17 = $xx15->getSettings(); 
    $xx18 = $xx1d($xx16["header"], ENT_COMPAT, "utf-8"); 
    $xx19 = $xx1d($xx16["body"], ENT_COMPAT, "utf-8"); 
    $xx1a = $xx1d($xx16["footer"], ENT_COMPAT, "utf-8"); 
    if ($xx17["orientation"] == "landscape") $xx1b = $xx17["format"] . "-L"; 
    else $xx1b = $xx17["format"]; 
    if (!isset($xx1c)) { 
        $xx1c = new mPDF('', $xx1b, '', 'Arial', $xx17["margin_left"], $xx17["margin_right"], 0, 0, $xx17["margin_top"], $xx17["margin_bottom"]); 
        $xx1c->SetAutoFont(); 
        @$xx1c->SetHTMLHeader($xx18); 
    } else { 
        @$xx1c->SetHTMLHeader($xx18); 
        @$xx1c->WriteHTML('<pagebreak sheet-size="' . $xx1b . '" margin-left="' . $xx17["margin_left"] . 'mm" margin-right="' . $xx17["margin_right"] . 'mm" margin-top="0mm" margin-bottom="0mm" margin-header="' . $xx17["margin_top"] . 'mm" margin-footer="' . $xx17["margin_bottom"] . 'mm" />'); 
    } 
    @$xx1c->SetHTMLFooter($xx1a); 
    @$xx1c->WriteHTML($xx19); 
    $xx1c->Output('storage/' . $xx14 . '.pdf'); 
} 
echo "<script>window.history.back();</script>"; 
exit(); 
?> 
 

Did this file decode correctly?

Original Code



<?php
$xx1d = "html_entity_decode";
$xx0b = "adb";
$xx0c = "site_URL";
$xx0d = "this";
$xx0e = "return_id";
$xx0f = "vtiger_current_version";
require_once ("modules/PDFMaker/InventoryPDF.php");
include ("modules/PDFMaker/mpdf/mpdf.php");
$xx10 = $_REQUEST["record"];
$xx11 = getSalesEntityType($xx10);
$xx12 = CRMEntity::getInstance($xx11);
if (isset($xx10)) {
    $xx12->retrieve_entity_info($xx10, $xx11);
    $xx12->id = $xx10;
}
if ($xx11 == "Invoice") $xx13 = "1";
elseif ($xx11 == "SalesOrder") $xx13 = "2";
elseif ($xx11 == "PurchaseOrder") $xx13 = "3";
elseif ($xx11 == "Quotes") $xx13 = "4";
else $xx13 = "";
if ($xx13 != "") {
    $xx14 = $xx11 . "_" . $xx10;
    $xx15 = new PDFContent($xx13, $xx11, $xx12, $_REQUEST["language"]);
    $xx16 = $xx15->getContent();
    $xx17 = $xx15->getSettings();
    $xx18 = $xx1d($xx16["header"], ENT_COMPAT, "utf-8");
    $xx19 = $xx1d($xx16["body"], ENT_COMPAT, "utf-8");
    $xx1a = $xx1d($xx16["footer"], ENT_COMPAT, "utf-8");
    if ($xx17["orientation"] == "landscape") $xx1b = $xx17["format"] . "-L";
    else $xx1b = $xx17["format"];
    if (!isset($xx1c)) {
        $xx1c = new mPDF('', $xx1b, '', 'Arial', $xx17["margin_left"], $xx17["margin_right"], 0, 0, $xx17["margin_top"], $xx17["margin_bottom"]);
        $xx1c->SetAutoFont();
        @$xx1c->SetHTMLHeader($xx18);
    } else {
        @$xx1c->SetHTMLHeader($xx18);
        @$xx1c->WriteHTML('<pagebreak sheet-size="' . $xx1b . '" margin-left="' . $xx17["margin_left"] . 'mm" margin-right="' . $xx17["margin_right"] . 'mm" margin-top="0mm" margin-bottom="0mm" margin-header="' . $xx17["margin_top"] . 'mm" margin-footer="' . $xx17["margin_bottom"] . 'mm" />');
    }
    @$xx1c->SetHTMLFooter($xx1a);
    @$xx1c->WriteHTML($xx19);
    $xx1c->Output('storage/' . $xx14 . '.pdf');
}
echo "<script>window.history.back();</script>";
exit();
?>

Function Calls

None

Variables

$xx0b adb
$xx0c site_URL
$xx0d this
$xx0e return_id
$xx0f vtiger_current_version
$xx1d html_entity_decode

Stats

MD5 6bb20e6658e6a868e7b6acdf6d498298
Eval Count 0
Decode Time 160 ms