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 $xxx50="\x61r\162\x61y\137\166\x61\x6c\x75e\163"; $xxx51="c\157\165n\164"; $xxx52="..

Decoded Output download

<?php 
$xxx50="array_values"; $xxx51="count"; $xxx52="explode"; $xxx53="fclose"; $xxx54="filesize"; $xxx55="fopen"; $xxx56="fread"; $xxx57="fwrite"; $xxx58="header"; $xxx59="in_array"; $xxx5a="implode"; $xxx5b="is_dir"; $xxx5c="md5"; $xxx5d="mkdir"; $xxx5e="ob_clean"; $xxx5f="preg_match_all"; $xxx60="round"; $xxx61="rtrim"; $xxx62="sort"; $xxx63="str_replace"; $xxx64="str_ireplace"; $xxx65="strpos"; $xxx66="trim"; $xxx67="time"; $xxx68="unlink";  
$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->retrieve_entity_info($xxx1b, $_REQUEST["relmodule"]);$xxx0f->id = $xxx1b;foreach ($xxx18 AS $xxx1c) {$xxx1d = $xxx0e->GetPDFContentRef($xxx1c, $_REQUEST["relmodule"], $xxx0f, $_REQUEST["language"]);$xxx1d->pagebreak = "<br clear=all style='mso-special-character:line-break;page-break-before:always'>";$xxx22 = $xxx1d->getSettings();if ($xxx19 == "")$xxx19 = $xxx1d->getFilename();if (isset($_REQUEST["mode"]) && $_REQUEST["mode"] == "edit") {$xxx23 = $_REQUEST["header" . $xxx1c];$xxx1f = $_REQUEST["body" . $xxx1c];$xxx24 = $_REQUEST["footer" . $xxx1c];} else {$xxx1e = $xxx1d->getContent();$xxx23 = $xxx1e["header"];$xxx1f = $xxx1e["body"];$xxx24 = $xxx1e["footer"];}if ($xxx23 != "" OR $xxx24 != "") {$xxx25 = "cache/pdfmaker/" . $xxx1b . "_headerfooter_" . $xxx1c . "_" . $xxx21 . ".html";$xxx23 = $xxx63("{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 class=MsoPageNumber><span style='mso-no-proof:yes'>1</span></span><!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-end'></span></span><![endif]-->", $xxx23);$xxx24 = $xxx63("{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 class=MsoPageNumber><span style='mso-no-proof:yes'>1</span></span><!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-end'></span></span><![endif]-->", $xxx24); $xxx23 = $xxx63("{nb}", "<!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-begin'></span><span style='mso-spacerun:yes'> </span>NUMPAGES <span style='mso-element:field-separator'></span></span><![endif]--><span class=MsoPageNumber><span style='mso-no-proof:yes'>1</span></span><!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-end'></span></span><![endif]-->", $xxx23);$xxx24 = $xxx63("{nb}", "<!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-begin'></span><span style='mso-spacerun:yes'> </span>NUMPAGES <span style='mso-element:field-separator'></span></span><![endif]--><span class=MsoPageNumber><span style='mso-no-proof:yes'>1</span></span><!--[if supportFields]><span class=MsoPageNumber><span style='mso-element:field-end'></span></span><![endif]-->", $xxx24);$xxx26 = '<!--[if supportFields]>';$xxx26 .= '<div style="mso-element:header;" id=h' . $xxx21 . '><p class=MsoHeader>' . $xxx23 . '</p></div>';$xxx26 .= '<div style="mso-element:footer;" id=f' . $xxx21 . '><p class=MsoFooter>' . $xxx24 . '</p></div>';$xxx26 .= '<![endif]-->';} else {$xxx25 = "";$xxx26 = "";} $xxx27 = array();if ($xxx65($xxx1f, "#LISTVIEWBLOCK_START#") !== false && $xxx65($xxx1f, "#LISTVIEWBLOCK_END#") !== false)$xxx5f("|#LISTVIEWBLOCK_START#(.*)#LISTVIEWBLOCK_END#|sU", $xxx1f, $xxx27, PREG_PATTERN_ORDER);if ($xxx51($xxx27) > 0) {$xxx28[$xxx1c] = $xxx1e;$xxx29[$xxx1c] = $xxx22;$xxx2a = $xxx51($xxx27[0]);for ($xxx2b = 0; $xxx2b < $xxx2a; $xxx2b++) {$xxx2c[$xxx1c][$xxx2b] = $xxx27[0][$xxx2b];$xxx2d[$xxx1c][$xxx2b][$xxx1b][] = $xxx27[1][$xxx2b];}} else {$xxx2e = "<div class=\"Section" . $xxx21 . "\">";$xxx2e .= $xxx1f;$xxx2e .= "</div>";$xxx2f[$xxx1c][] = $xxx21;$xxx20[$xxx21] = array("settings" => $xxx22, "content" => $xxx2e, "headerfooterurl" => $xxx25, "headerfooter" => $xxx26);$xxx21++;}}} if ($xxx51($xxx28) > 0 && isset($xxx20[1]) == false) {$xxx30 = $xxx50($xxx29);$xxx31 = $xxx50($xxx28);$xxx2e = "<div class=\"Section1\">";$xxx2e .= $xxx31[0]["body"];$xxx2e .= "</div>";$xxx32 = array("settings" => $xxx30[0], "content" => $xxx2e, "headerfooterurl" => $xxx25, "headerfooter" => $xxx26);} else {$xxx32 = $xxx20[1];}if ($xxx19 == "") {$xxx19 = $xxx0e->GenerateName($xxx11, $xxx18, $_REQUEST["relmodule"]);}$xxx33 = "<html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'>";$xxx33.= "<head>";$xxx33.= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";$xxx33.= "<link rel=File-List href=\"cache/filelist.xml\">";$xxx33.= "<title></title>
        			<!--[if gte mso 9]><xml>
        			 <w:WordDocument>
        			  <w:View>Print</w:View>
        			  <w:DoNotHyphenateCaps/> 
        			  <w:PunctuationKerning/> 
        			  <w:DrawingGridHorizontalSpacing>9.35 pt</w:DrawingGridHorizontalSpacing>
 
        			  <w:DrawingGridVerticalSpacing>9.35 pt</w:DrawingGridVerticalSpacing> 
        			 </w:WordDocument>
 
        			</xml><![endif]-->
 
        			<style> 

        			<!--
 
        			 /* Font Definitions */
        			@font-face 

        				{font-family:Verdana; 
        				panose-1:2 11 6 4 3 5 4 4 2 4; 

        				mso-font-charset:0;
 
        				mso-generic-font-family:swiss;
        				mso-font-pitch:variable; 

        				mso-font-signature:536871559 0 0 0 415 0;}
        			 /* Style Definitions */ 

        			p.MsoNormal, li.MsoNormal, div.MsoNormal
 
        				{mso-style-parent:\"\"; 

        				margin:0in;
 
        				padding:0in;
 
        				margin-bottom:.0001pt;
        				mso-pagination:widow-orphan; 
        				font-size:7.5pt;
 
        			        mso-bidi-font-size:8.0pt; 

        				font-family:\"Verdana\";
        				mso-fareast-font-family:\"Verdana\";}
        			p.small
 
        				{mso-style-parent:\"\";
        				margin:0in; 
        				margin-bottom:.0001pt; 

        				mso-pagination:widow-orphan;
 
        				font-size:1.0pt;
        			  mso-bidi-font-size:1.0pt;
 
        				font-family:\"Verdana\";
 
        				mso-fareast-font-family:\"Verdana\";}";$xxx34['A3'] = array(29.7, 42, "cm");$xxx34['A4'] = array(21, 29.7, "cm");$xxx34['A5'] = array(14.8, 21, "cm");$xxx34['A6'] = array(10.5, 14.8, "cm");$xxx34['Letter'] = array(21.59, 27.94, "cm");$xxx34['Legal'] = array(21.59, 35.56, "cm");$xxx35 = $xxx32;$xxx36 = "1";$xxx37 = $xxx35["settings"]["format"]; if ($xxx65($xxx37, ";") > 0) {$xxx38 = $xxx52(";", $xxx37);$xxx37 = "Custom";$xxx34["Custom"] = array($xxx60(($xxx38[0] / 10), 2), $xxx60(($xxx38[1] / 10), 2), "cm");} $xxx39 = $xxx35["settings"]["orientation"];if ($xxx39 == "portrait")$xxx3a = $xxx34[$xxx37][0] . $xxx34[$xxx37][2] . " " . $xxx34[$xxx37][1] . $xxx34[$xxx37][2] . "; ";else$xxx3a = $xxx34[$xxx37][1] . $xxx34[$xxx37][2] . " " . $xxx34[$xxx37][0] . $xxx34[$xxx37][2] . "; ";$xxx3b = $xxx35["settings"]["margin_left"];$xxx3c = $xxx35["settings"]["margin_right"];$xxx3d = $xxx35["settings"]["margin_top"];$xxx3e = $xxx35["settings"]["margin_bottom"];$xxx33.= "@page Section" . $xxx36 . "
			{
			size: " . $xxx3a . ";
			margin: " . $xxx3d . "mm " . $xxx3c . "mm " . $xxx3e . "mm " . $xxx3b . "mm; 

			mso-page-orientation: " . $xxx39 . ";
			padding: 0cm 0cm 0cm 0cm; ";if ($xxx35["headerfooterurl"] != "") {$xxx33.= "mso-footer: url(\"" . $$xxx0d . "/" . $xxx35["headerfooterurl"] . "\") f" . $xxx36 . " ; ";$xxx33.= "mso-header: url(\"" . $$xxx0d . "/" . $xxx35["headerfooterurl"] . "\") h" . $xxx36 . "; ";if (!$xxx5b('cache/pdfmaker'))$xxx5d('cache/pdfmaker');$xxx3f = $xxx55($xxx35["headerfooterurl"], 'w');$xxx40 = '<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"= xmlns="http://www.w3.org/TR/REC-html40">';$xxx40 .= '<body>';$xxx40 .= $xxx35["headerfooter"];$xxx40 .= '</body>';$xxx40 .= '</html>';$xxx57($xxx3f, $xxx40);$xxx53($xxx3f);}$xxx33.= "} 
			div.Section" . $xxx36 . "
			{page:Section" . $xxx36 . ";}";$xxx33.= "p.MsoHeader, li.MsoHeader, div.MsoHeader
 
			  	{margin:0in;
			  	margin-bottom:.0001pt;
			  	mso-pagination:widow-orphan; 
			  	tab-stops:center 3.0in right 6.0in;}
			  p.MsoFooter, li.MsoFooter, div.MsoFooter
 
			  { mso-pagination:widow-orphan;
 
			    tab-stops:center 216.0pt right 432.0pt;
			    font-family:\"Arial\"; 

			    font-size:1.0pt; 

			  } 

				-->
				</style>
				<!--[if gte mso 9]><xml> 
				<o:shapedefaults v:ext=\"edit\" spidmax=\"1032\">
				<o:colormenu v:ext=\"edit\" strokecolor=\"none\"/>
				</o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml>
				<o:shapelayout v:ext=\"edit\">
 
				<o:idmap v:ext=\"edit\" data=\"1\"/> 

				</o:shapelayout></xml><![endif]-->";$xxx33.= "</head>";$xxx33.= "<body>"; foreach ($xxx20 AS $xxx36 => $xxx35) {if ($xxx36 > 1)$xxx33.= "<br clear=all style=\"mso-special-character:line-break;page-break-before:always\">";$xxx33.= $xxx35["content"];} if ($xxx51($xxx28) > 0) {foreach ($xxx28 AS $xxx1c => $xxx41) {$xxx1f = $xxx41["body"];foreach ($xxx2c[$xxx1c] AS $xxx42 => $xxx43) {$xxx44 = "";$xxx45 = 1;foreach ($xxx11 as $xxx1b) {$xxx44 .= $xxx5a("", $xxx2d[$xxx1c][$xxx42][$xxx1b]);$xxx44 = $xxx64('$xxx46$', $xxx45++, $xxx44);}$xxx1f = $xxx63($xxx43, $xxx44, $xxx1f);}if ($xxx36 > 1)$xxx33.= "<br clear=all style=\"mso-special-character:line-break;page-break-before:always\">";$xxx33.= $xxx1f;}}$xxx33.= "</body>";$xxx33.= "</html>";$xxx33 = x0b($xxx33);@$xxx58("Cache-Control: ");@$xxx58("Pragma: ");if ($_REQUEST["type"] == "doc") {@$xxx58("Content-type: application/vnd.ms-word");@$xxx58("Content-Disposition: attachment;Filename=" . $xxx19 . ".doc");} elseif ($_REQUEST["type"] == "rtf") {@$xxx58("Content-type: application/rtf");@$xxx58("Content-Disposition: attachment;Filename=" . $xxx19 . ".rtf");}echo $xxx33;} else {$xxx47 = "";if (isset($_REQUEST["mode"]) && $_REQUEST["mode"] == "edit") {foreach ($xxx18 as $xxx1c) {$xxx47["header" . $xxx1c] = $_REQUEST["header" . $xxx1c];$xxx47["body" . $xxx1c] = $_REQUEST["body" . $xxx1c];$xxx47["footer" . $xxx1c] = $_REQUEST["footer" . $xxx1c];}} $xxx48 = "";$xxx19 = $xxx0e->GetPreparedMPDF($xxx48, $xxx11, $xxx18, $_REQUEST["relmodule"], $_REQUEST["language"], $xxx47); if ($_REQUEST['is_portal'] == "true") {$xxx49 = "cache/" . $xxx67();$xxx4a = $xxx49 . "/" . $xxx19 . ".pdf";$xxx5d($xxx49);$xxx48->Output($xxx4a, "F");$_SESSION["portal_pdf_name"] = $xxx4a;} else {$xxx48->Output('cache/' . $xxx19 . '.pdf');@$xxx5e();$xxx58('Content-Type: application/pdf');$xxx58("Content-length: " . $xxx54("./cache/$xxx19.pdf"));$xxx58("Cache-Control: private");$xxx58("Content-Disposition: attachment; filename=$xxx19.pdf");$xxx58("Content-Description: PHP Generated Data");echo $xxx56($xxx55("./cache/$xxx19.pdf", "r"), $xxx54("./cache/$xxx19.pdf"));@$xxx68("cache/$xxx19.pdf");} }} }function x0b($xxx2e) { global $xxx50,$xxx51,$xxx52,$xxx53,$xxx54,$xxx55,$xxx56,$xxx57,$xxx58,$xxx59,$xxx5a,$xxx5b,$xxx5c,$xxx5d,$xxx5e,$xxx5f,$xxx60,$xxx61,$xxx62,$xxx63,$xxx64,$xxx65,$xxx66,$xxx67,$xxx68; $xxx0d = "site_URL";global $$xxx0d;$xxx4b = $$xxx0d;$xxx4c = "http://";require_once("classes/simple_html_dom.php");$xxx4d = str_get_html($xxx2e);foreach ($xxx4d->find("img") as $xxx4e) {if ($xxx65($xxx4e->src, $xxx4c) === false) {$xxx4f = $xxx4b . "/" . $xxx4e->src;$xxx4e->src = $xxx4f;}}return $xxx4d->save();}?> 

Did this file decode correctly?

Original Code

<?php
$xxx50="\x61r\162\x61y\137\166\x61\x6c\x75e\163"; $xxx51="c\157\165n\164"; $xxx52="e\170\x70\x6co\144\145"; $xxx53="\146c\x6c\x6fs\x65"; $xxx54="\146\x69\x6ce\163i\172e"; $xxx55="f\x6f\160en"; $xxx56="fr\145ad"; $xxx57="f\x77\x72i\x74e"; $xxx58="\x68\x65a\144\x65\162"; $xxx59="\x69\156_a\162r\x61\171"; $xxx5a="i\x6dp\x6co\144e"; $xxx5b="i\x73\137d\x69\x72"; $xxx5c="\x6d\x64\x35"; $xxx5d="m\x6b\x64i\x72"; $xxx5e="\x6fb\137cl\x65\x61n"; $xxx5f="\x70\x72e\x67_\155\x61tc\x68\x5f\141l\154"; $xxx60="round"; $xxx61="r\164\x72\151\155"; $xxx62="\x73\157\x72\164"; $xxx63="\163t\x72\137r\145\x70\x6c\141\x63\x65"; $xxx64="\163t\x72\x5fi\x72\145\x70\x6cace"; $xxx65="st\162\160\x6f\x73"; $xxx66="\x74r\x69m"; $xxx67="t\x69\x6de"; $xxx68="\165n\x6ci\x6e\x6b"; 
$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->retrieve_entity_info($xxx1b, $_REQUEST["\162e\x6c\x6do\x64u\x6ce"]);$xxx0f->id = $xxx1b;foreach ($xxx18 AS $xxx1c) {$xxx1d = $xxx0e->GetPDFContentRef($xxx1c, $_REQUEST["\x72\145\x6cm\x6fdul\145"], $xxx0f, $_REQUEST["la\x6e\x67u\141g\145"]);$xxx1d->pagebreak = "\x3c\142r c\154e\x61\162\075\141ll\x20\163t\171\154e='\155\163o-\163\x70\x65\143\151\141\x6c\055\x63har\x61\143\164\x65\x72\x3a\x6c\x69\156\145\x2d\142r\x65a\153\x3b\160a\x67\x65\x2d\142\x72\x65\141\153-\x62\145\x66\157\162\x65\072\141\154\x77ays'\x3e";$xxx22 = $xxx1d->getSettings();if ($xxx19 == "")$xxx19 = $xxx1d->getFilename();if (isset($_REQUEST["mo\x64\x65"]) && $_REQUEST["\155\x6f\144\x65"] == "e\x64\x69t") {$xxx23 = $_REQUEST["\x68e\x61\x64\145r" . $xxx1c];$xxx1f = $_REQUEST["b\157\144\x79" . $xxx1c];$xxx24 = $_REQUEST["f\x6fo\164\x65\162" . $xxx1c];} else {$xxx1e = $xxx1d->getContent();$xxx23 = $xxx1e["h\x65ad\145\x72"];$xxx1f = $xxx1e["\142\x6f\144y"];$xxx24 = $xxx1e["f\x6fo\164e\x72"];}if ($xxx23 != "" OR $xxx24 != "") {$xxx25 = "c\141\x63\x68\x65\057\x70\x64f\x6da\153\145\162\057" . $xxx1b . "\x5f\150\x65a\x64\x65rfo\157\x74\145\x72\x5f" . $xxx1c . "\137" . $xxx21 . "\x2e\x68\164\155\154";$xxx23 = $xxx63("{\120\x41\107\105\116\117\x7d", "\x3c\041\x2d-[\151\146\x20\x73up\x70\157\x72t\106\151\x65\x6c\144\x73\x5d\076\074\x73\x70a\x6e\040\x63\x6c\x61\163s\075\x4dso\x50\141\147\145\x4eu\155\142\145r\076\074\163pa\x6e\x20\x73\164\171\154\145\x3d'\155\x73\157\055e\x6cem\145\x6et:\x66\x69\145\x6c\x64\055b\145\147i\x6e'\076\x3c\x2fs\160\x61n\x3e\x3csp\141n\040\163t\x79\x6c\x65\x3d'mso\x2ds\x70\x61cer\x75n\x3a\x79es'>\x20\x3c\x2fsp\141n\076PA\107E \x3cs\x70\141\156 s\x74\x79\154e\x3d'mso-ele\x6d\x65\156t:\146ie\154d-\x73\145\x70ar\x61\x74\x6f\162'\x3e\074\057\x73\160a\156\076</\x73pa\156><![\145\156\144\x69\146\135-\055><\x73\160a\156\x20cl\x61\163\163\075\x4d\x73oP\x61\x67\x65\x4e\x75m\x62\x65\162>\x3c\x73\160\x61n\x20st\x79\154\x65\x3d'\155so-\156\x6f\x2d\160\x72\x6fo\x66\x3a\x79es'>\061\x3c/\163pa\156\076\074\057\163\160\x61\156>\x3c!\x2d\x2d\x5b\x69\x66 \163u\x70portF\x69\x65\154\x64s]><\163\160\141\156 \143las\163=\115\163\157\120\x61\147\x65Nu\x6d\x62e\x72\076\074\x73p\x61\x6e st\171\154\145='ms\157-\145l\x65\x6d\x65n\164\072f\151\x65l\144-\x65nd'>\074/s\x70\141\x6e\x3e\x3c\057\x73p\141n\x3e\x3c\041\x5b\145\x6e\144\151\x66\135\055-\076", $xxx23);$xxx24 = $xxx63("\x7b\x50\101G\105NO\x7d", "\x3c\041\055\x2d\x5bi\x66 \x73\x75p\x70\x6f\x72\x74\x46\151\145\x6c\x64s\x5d\x3e<\163p\141\x6e\040\143las\163\x3d\x4d\163\x6f\120\x61g\x65\x4eu\155b\145\162\076\x3cs\160\x61n \x73t\171\x6c\145\075'\x6d\x73o\055elem\145\x6et\072\x66\151e\154d-\x62\145\147\x69\156'\076<\057spa\156\076\x3c\x73p\x61\x6e\x20sty\154\x65\075'\155\x73\x6f\055\x73pa\x63er\165\x6e\072y\x65s'>\x20\074/\x73\160\141n\x3eP\101GE <\163\x70\x61\156\040\x73\164\x79\154\145\x3d'ms\x6f\x2d\145\154em\x65nt\072fi\145\x6c\144\055\x73\145\160ara\x74o\x72'\x3e</\x73p\141\156\076\x3c\057\163p\141\x6e><!\133en\x64\151\x66\x5d\055\055\x3e\x3c\163\x70an\x20\x63\x6ca\x73\x73=\x4d\x73o\120\x61\x67\x65\x4e\165mber\x3e\x3c\163p\141\x6e \163\x74\x79l\145\075'\x6ds\157\x2d\x6eo-\160ro\157\x66\x3ay\145\x73'>\061\074\057s\160a\x6e\076\074\057\x73pa\156>\x3c\x21-\055\x5b\x69\146\x20\x73\x75\160p\157\x72\164Fi\145\154\144\163\x5d><\x73pan \x63\x6c\x61\163\x73\x3dM\163\157P\141\147\x65\116u\x6d\142\x65r\x3e<\163p\x61n\040s\x74y\x6c\145\075'\x6d\163o-\145\154emen\x74\072\146\151\x65\154\x64\055e\156\x64'\x3e\074\x2fspa\x6e><\057\x73\x70\x61n\076<\041\x5be\x6e\x64if\x5d\055-\x3e", $xxx24); $xxx23 = $xxx63("\x7b\156b}", "\x3c\x21\055\055[\x69\146\040su\160p\x6fr\x74\106\x69e\x6cd\x73\135>\074\x73\x70a\156\040\x63\154\141\x73s=\115s\x6fP\141g\145N\165m\x62er>\x3c\x73\160\x61n\x20\163\164y\154\x65\x3d'm\x73o\055e\x6c\x65men\164:\x66\x69eld\x2d\142\x65g\151\x6e'\076\074\057\163pa\x6e\076\074\163\x70\141n \x73\x74\x79l\x65='\x6ds\157-\x73\160\x61\x63\145\x72\x75\x6e\x3a\x79e\x73'>\040\x3c/\163\x70\141n>NUM\x50\x41\x47E\x53\x20<sp\x61\156\040st\x79le\x3d'mso\x2d\145le\155en\164\x3af\x69\145\154\144\x2d\x73ep\141\162\x61\x74\157\162'>\x3c/s\x70a\x6e\076\x3c\057s\x70a\156\x3e<!\x5be\156\x64i\146]\055->\x3c\163\160\x61\x6e\x20\143\154a\x73\163\075Ms\157\120ag\x65\x4e\165\155\x62e\162\x3e\x3c\x73\x70a\x6e s\x74\171l\x65\075'm\x73\x6f\055\x6e\157-\160r\x6f\x6f\146\x3ay\145\x73'>\061\x3c\x2f\163p\141n><\057\x73p\x61n>\074\041-\x2d[i\146 \163\x75\160po\162\x74\106i\145\x6c\144\x73\x5d\x3e<\163\160\141n\040c\x6c\141ss\x3d\115\x73\x6fP\141\147\x65N\165\x6d\x62\x65\x72\x3e\x3c\x73p\141\x6e s\164\171\154\x65\075'\155\x73\x6f\055\145\154\x65m\x65\156\x74\072\146\151\x65l\144\055e\x6e\144'><\057\x73pa\156\x3e\074/\x73pa\156\076\074\x21\133en\144\151\146\135\x2d\055>", $xxx23);$xxx24 = $xxx63("\173n\x62\175", "\074\x21--\133\151f\x20\x73\x75\160\160\157\x72\x74\106\x69\x65\154\144s\x5d\076<\x73p\x61n\x20\143\154\x61\x73\163\x3d\115so\x50\141g\145\116\165\155b\x65r><\x73p\141\x6e \x73\164\171l\145\x3d'\155s\x6f\055\x65\154em\145\x6e\164\072\146\x69e\x6cd\055b\145\x67\x69\x6e'\x3e<\x2f\163\160\141n><\x73\x70a\156\040\x73\x74\x79l\145='\155\x73\157\x2d\163\x70\141\x63\145\162un:\171\x65\163'>\x20\074/s\160\x61\x6e>N\125MP\101\107\105S \x3c\163pan \163\164yl\145\x3d'\155\x73o\055\145\x6cemen\164\x3a\146\x69\x65\154\144\x2d\x73\145\x70a\162\x61\164\157r'\x3e\x3c\x2f\163\160an>\x3c\057\x73\160\x61n\076<\041[e\156\144\x69\146\135\x2d\x2d\x3e\x3cs\x70\141n cl\141\163\163\075\115\x73o\120ageN\165\x6d\142\145\x72><\163p\x61n \163\x74\x79\154\145\075'\155so\055\156\x6f\x2d\160r\157\x6f\146\072\x79\x65\163'\x3e1\074\x2f\x73\160\141\x6e\x3e\x3c/\163p\141n><\x21\x2d\x2d\133\151\146\x20\163\165p\160\x6f\x72\164\106ie\154d\163]>\074\x73\x70a\156\040\143l\141\163\163\075\115\x73o\x50\141\x67\145N\x75\x6db\145r>\074s\160a\x6e\040\163t\171l\145\x3d'm\x73o\x2de\x6c\x65me\x6et\x3a\x66\151\145ld\x2de\x6e\x64'\076</sp\141n\x3e\x3c\x2f\163pa\x6e\076<\041[\x65ndi\x66\135-->", $xxx24);$xxx26 = '<!--[if supportFields]>';$xxx26 .= '<div style="mso-element:header;" id=h' . $xxx21 . '><p class=MsoHeader>' . $xxx23 . '</p></div>';$xxx26 .= '<div style="mso-element:footer;" id=f' . $xxx21 . '><p class=MsoFooter>' . $xxx24 . '</p></div>';$xxx26 .= '<![endif]-->';} else {$xxx25 = "";$xxx26 = "";} $xxx27 = array();if ($xxx65($xxx1f, "\043L\111\123T\x56\x49\x45WB\x4c\117\103\113\137\123\x54\101R\124#") !== false && $xxx65($xxx1f, "\043\114\111\x53\124VI\x45\x57\x42LO\103K\x5f\105\x4e\104\043") !== false)$xxx5f("|\x23LIS\x54\x56I\105WB\x4c\x4f\103\113\x5f\123\x54\x41\x52T\043\x28.\052\051\043\x4c\111\123\124\126I\x45W\102\x4c\x4fC\113_E\x4e\x44#|\163U", $xxx1f, $xxx27, PREG_PATTERN_ORDER);if ($xxx51($xxx27) > 0) {$xxx28[$xxx1c] = $xxx1e;$xxx29[$xxx1c] = $xxx22;$xxx2a = $xxx51($xxx27[0]);for ($xxx2b = 0; $xxx2b < $xxx2a; $xxx2b++) {$xxx2c[$xxx1c][$xxx2b] = $xxx27[0][$xxx2b];$xxx2d[$xxx1c][$xxx2b][$xxx1b][] = $xxx27[1][$xxx2b];}} else {$xxx2e = "<di\166 \143\154a\163s=\"\123\145ct\x69\157\156" . $xxx21 . "\"\x3e";$xxx2e .= $xxx1f;$xxx2e .= "</div>";$xxx2f[$xxx1c][] = $xxx21;$xxx20[$xxx21] = array("\x73etti\x6e\x67\163" => $xxx22, "\x63\157nt\145\x6e\164" => $xxx2e, "\150ea\x64\145\x72f\157\x6f\x74\145\x72\x75r\154" => $xxx25, "\x68\x65ad\x65r\146\x6f\157t\145\x72" => $xxx26);$xxx21++;}}} if ($xxx51($xxx28) > 0 && isset($xxx20[1]) == false) {$xxx30 = $xxx50($xxx29);$xxx31 = $xxx50($xxx28);$xxx2e = "<\x64\x69v \x63\x6c\x61s\163\075\"\x53\x65\x63t\x69\x6f\x6e\x31\">";$xxx2e .= $xxx31[0]["bod\x79"];$xxx2e .= "\x3c/\x64i\166>";$xxx32 = array("\163et\x74\x69\x6e\x67s" => $xxx30[0], "\x63\x6f\x6e\164\x65\x6e\x74" => $xxx2e, "\150\145a\144\145r\146\157o\164\x65\162ur\154" => $xxx25, "\150\145a\x64\145\x72\146\157ot\x65\162" => $xxx26);} else {$xxx32 = $xxx20[1];}if ($xxx19 == "") {$xxx19 = $xxx0e->GenerateName($xxx11, $xxx18, $_REQUEST["\x72e\154\155\x6fdul\145"]);}$xxx33 = "\074\150t\155\154 \x78\155\154\156\163:\x6f\075'\x75\162n\072\163\x63\150\145\155\141s\055mic\x72o\163\x6f\x66t\055\143\157\155\x3a\157\x66f\x69c\x65\x3ao\146\x66ic\x65'\040x\x6dl\156\163\x3aw\x3d'\x75\162\x6e:\163\x63\150\145\x6d\x61\x73-\x6d\151c\162\x6fs\x6f\146t\x2d\143\x6fm\x3a\x6f\x66\146\x69\143\145\x3aw\x6fr\144'\x20xm\x6c\x6e\163\x3d'\150\x74\164\160:\057/\167ww.w\063\x2e\157\x72g\x2f\124R\x2fR\x45\x43\055\x68\164\155\x6c\x34\060'\076";$xxx33.= "<\150\x65\x61d\x3e";$xxx33.= "<\155\x65\x74a \150\164\x74p\055equ\151v=\"Co\156te\156\x74\055\124\x79pe\"\x20c\x6f\156\x74\145\156\x74=\"te\170\x74\057htm\154;\040\x63h\x61\x72set=U\x54\x46-\070\"\076";$xxx33.= "<\x6c\x69n\x6b\x20re\154=\106i\154e\x2dLi\163\x74\x20\x68\x72e\146=\"\x63\x61\x63\150\x65\x2f\146\x69\x6cel\x69st\056\x78\155\x6c\"\076";$xxx33.= "<\164\151\x74le>\074\x2f\164it\x6c\x65>\x0d\012 \040  \x20\040 \x20\x09\011\011<!\x2d\x2d\133i\146 gt\x65 \x6d\163\157\0409\x5d\x3e\074xml\076\015\x0a   \x20\040\x20 \040\x09\011\x09\x20\074w:W\x6f\162\x64\x44\x6f\x63\x75m\x65\x6e\x74\076\x0d\012\x20\040\x20\x20\x20\x20\040\040\x09\x09\011\x20\040\074\x77:V\x69e\x77\x3e\120\x72\x69\156\x74\x3c\057\167:Vi\145\167\x3e\x0d\x0a\040\x20\040 \x20\040\040\x20\011\x09\x09\040 \x3c\167:\x44\x6f\116\x6f\x74Hy\160\x68\145n\x61\164\x65\103\x61ps/\x3e
    \040 \x20 \x09\011\011\x20\x20\074\167\072\x50\x75\156\143\x74\165\x61t\x69\x6fnK\145\162\x6e\x69\x6e\x67/>
\x20\040\040\x20\x20 \040\x20	\x09\x09  \074w\x3aD\x72\x61w\x69n\x67\x47rid\110o\x72\151\x7a\x6f\156\164\x61\x6c\123p\141\143\x69\x6e\x67\076\x39\x2e\063\x35 \x70t<\x2f\x77:\104\162aw\x69\156\x67\x47\x72id\x48o\x72\151z\157\156\164\141\154Spaci\x6e\147\076\x0d
 \x20\x20\x20\040 \x20 		\011 \040\074\x77\072\x44\162\x61wi\156\x67G\162i\144\126e\x72\x74\x69\x63\x61lSp\141\143\151\156\x67>\071\0563\065 \160\x74</w\x3a\104\x72aw\151\x6e\x67G\x72\151\x64\126e\x72t\x69\x63\141\154\123paci\156\x67\x3e
\040\040\040\040   \040\011\011\x09\040\x3c\057\x77\072\127\x6f\x72\x64\104\x6f\x63\x75\x6d\x65\x6e\164\076\x0d
\040 \x20\040\040 \040\x20		\011\074\057\x78m\x6c><!\133\x65\156\144i\146]-->\x0d
  \x20    \040\x09		\074\x73\164\x79\x6c\145>
\x0a\x20\x20\040\x20\x20\x20  \x09		\x3c\041\055\055\015
\x20\x20\x20  \x20\x20\x20\011\011	 /\052\x20F\157\156\x74\x20Defi\156i\164\x69o\x6e\x73 \052\057\015\012\x20\040\040\x20\040\x20 \040	\x09\x09\x40\146\157\x6e\x74\055\146ac\145
\x0a\040  \040\040\x20\040 \x09\011\011\x09\173\146o\156\x74\x2d\146am\151\154y\x3aV\x65\162\x64\141\x6e\141\073
 \040  \040  \x20\011\x09	\x09\160\x61nos\145\x2d1\0722 \x31\x31\x20\x36 \064\040\x33 5\x20\x34\0404\040\062\x204;
\x0a\x20\x20\x20    \040		\011\011\155\x73\157\x2d\146\157n\x74-c\150a\x72\163\145\164\x3a\060\073\x0d
\x20 \x20 \x20 \040\040\x09\x09\x09\x09\x6d\163\x6f-g\145\x6ee\162\151\x63\x2d\146\157\156\164\x2d\146\x61\x6d\151ly:\163\167iss\x3b\x0d\x0a \x20 \040 \x20\040\040		\x09\011mso\x2d\146\157n\164-\160\x69\x74\143\x68\072v\x61\x72i\x61\x62\154\x65\x3b
\x0a\x20\x20\x20 \040\040\x20\040\011	\011\x09\155\163\x6f\055\146\157nt\x2d\163\x69\x67\156\x61\x74\165\162\x65:\065\063\0668\x37\0615\0659\040\060\040\060\040\060 4\061\065\x20\060\073}\x0d\x0a \x20\x20\040\x20 \x20 	\x09\x09 \057\052\x20\123t\171l\x65\x20\x44ef\151\156i\x74\151\x6fns *\x2f
\012\x20  \040\040\040\x20 \011\011	p.\115\163\x6fNo\x72m\141l, l\x69.\115\163o\116\157\162\155al\054 \x64\x69v\056Ms\x6fN\157\x72m\x61\x6c\x0d
\x20\x20\x20 \040\040  \x09\x09		{\x6ds\157\055\x73\164\x79le\055\x70\141r\145\x6e\x74\072\"\"\x3b
\012\040\x20\040\040\040  \x20	\011\x09\011\155\x61\162gi\156:0i\156;\015
\x20  \040\040\x20\x20\040\011\011	\011\160a\144\144\151\156\147\x3a0\x69\x6e;\015
 \x20\040\040\x20\040 \040\011\x09\x09\x09\155arg\151n\x2dbot\164\157\x6d\072\x2e\x30\x30\0601p\x74;\015\012 \x20\x20 \040\x20 \x20	\011	\011\x6ds\157-p\141\x67\151\156a\x74\x69o\156:w\x69d\x6fw-\157\x72\160\150a\156\x3b
 \040\x20  \040 \x20\011\011\011\011f\x6fnt\x2ds\151\x7a\145\x3a7\x2e\065\x70t\x3b\015
 \x20\040\040 \x20 \x20	\x09	\040\x20\x20\x20 \040\040\x20\x6d\163\157-bi\x64\x69-f\x6f\x6et\055\x73\x69\172e:8.0\x70\x74\073
\x0a\x20\x20\x20\x20\040\040\040 		\011	\146\157nt-fa\155\151\x6cy:\"\x56\145\162\144\141\x6ea\"\073\015\012\040  \x20 \040  \x09\011\011\011\x6dso\x2d\x66\141r\x65a\163\164\055f\x6fn\x74\055\x66\141\x6d\x69l\x79\072\"\126e\162\144\x61n\141\";\x7d\015\012\x20 \x20  \040\040 \011\011	\160.\163m\141l\x6c\015
 \x20 \x20 \040\x20 \x09\x09\x09	{\x6d\x73\x6f\055styl\145\x2d\x70\141\162\x65\156\164:\"\"\x3b\015\012   \040   \040			\011\155ar\147\x69\156:\060\x69\x6e;
\040\x20\x20 \x20  \x20	\x09\011\011m\141\162gi\x6e\x2d\x62o\164t\157\x6d\x3a.00\060\x31\x70\164\x3b
\x0a\040\040 \x20\040\040\040\x20	\011\011\x09\x6d\x73\157-\x70a\147\x69\156\141tio\x6e\072\167\x69d\157\167-\157\x72\x70\x68\x61n\073\015
\x20\040\x20\x20\040\040\x20 \011\011\011	\146\157n\x74\055s\151\x7a\145:\061\x2e\x30\160\x74\x3b\015\x0a\040\x20     \040	\x09\x09\x20\x20\155so-\x62id\151-\146o\156\x74\055\x73\x69\172\x65:\x31.\060p\164\x3b\015
 \x20\x20\x20\040\040 \040\011			fon\164\055\146\x61\155il\171\072\"\x56er\144\141n\141\";\015
 \x20\040 \x20\040\040\040\011\x09	\x09\155\163\157-f\x61\x72\145\x61s\x74\055\146\x6fn\x74\055\146\141\x6d\151l\x79\072\"\x56\x65\162\144a\x6e\x61\";}";$xxx34['A3'] = array(29.7, 42, "\x63\x6d");$xxx34['A4'] = array(21, 29.7, "\143\x6d");$xxx34['A5'] = array(14.8, 21, "c\x6d");$xxx34['A6'] = array(10.5, 14.8, "\143\155");$xxx34['Letter'] = array(21.59, 27.94, "c\x6d");$xxx34['Legal'] = array(21.59, 35.56, "c\155");$xxx35 = $xxx32;$xxx36 = "1";$xxx37 = $xxx35["\163ett\151n\147s"]["\146\157\162\x6da\x74"]; if ($xxx65($xxx37, "\x3b") > 0) {$xxx38 = $xxx52("\x3b", $xxx37);$xxx37 = "\103u\x73t\x6f\155";$xxx34["C\x75s\x74\157m"] = array($xxx60(($xxx38[0] / 10), 2), $xxx60(($xxx38[1] / 10), 2), "\x63\155");} $xxx39 = $xxx35["\x73\145\164\164ing\163"]["\157ri\x65nt\x61\164io\156"];if ($xxx39 == "\x70\157\162t\x72a\x69t")$xxx3a = $xxx34[$xxx37][0] . $xxx34[$xxx37][2] . "\040" . $xxx34[$xxx37][1] . $xxx34[$xxx37][2] . "\x3b ";else$xxx3a = $xxx34[$xxx37][1] . $xxx34[$xxx37][2] . "\x20" . $xxx34[$xxx37][0] . $xxx34[$xxx37][2] . ";\x20";$xxx3b = $xxx35["s\145tt\x69n\147\x73"]["\155a\x72\147\x69n\137\154\145\x66\x74"];$xxx3c = $xxx35["se\x74\x74\151n\147\x73"]["m\x61\x72\147in\x5f\x72i\147\x68\164"];$xxx3d = $xxx35["s\145tti\156g\163"]["\155\141\x72g\x69\x6e\137\164\157\160"];$xxx3e = $xxx35["s\145tt\x69\x6e\x67s"]["m\x61\x72g\151\x6e_b\157\x74\x74\157\155"];$xxx33.= "@pa\x67e\040\123\x65\x63\164\x69\x6f\x6e" . $xxx36 . "\x0d\012\x09	\011\x7b\015\012\011\011	\163\151\172\145:\x20" . $xxx3a . "\x3b\015\x0a		\011\155a\162\x67\151n\x3a " . $xxx3d . "\x6d\155\x20" . $xxx3c . "m\155\040" . $xxx3e . "\x6d\x6d " . $xxx3b . "\155\155\x3b
\012\011		m\163\x6f\x2d\160a\x67\x65-\157rient\x61\x74\x69o\x6e\072 " . $xxx39 . "\073\x0d\x0a	\011\x09\160ad\144i\x6e\147\x3a\040\060\143\x6d\x20\060\x63m 0\x63\155 \x30c\x6d;\040";if ($xxx35["\x68\x65\141\x64\145r\146o\x6ft\145r\x75\x72\154"] != "") {$xxx33.= "\155\163o-\146o\157ter\072\040ur\x6c\050\"" . $$xxx0d . "/" . $xxx35["h\x65\141de\x72f\157\157\164eru\162l"] . "\"\051\040f" . $xxx36 . "\040;\x20";$xxx33.= "\155\x73\x6f-\150\x65\141\144\x65\162:\040\165\x72\x6c\050\"" . $$xxx0d . "\x2f" . $xxx35["h\145\141d\x65rf\x6f\157\164er\165\162\x6c"] . "\") \x68" . $xxx36 . "\073 ";if (!$xxx5b('cache/pdfmaker'))$xxx5d('cache/pdfmaker');$xxx3f = $xxx55($xxx35["he\141\144\x65\x72\x66\x6f\157\164\145\x72ur\154"], 'w');$xxx40 = '<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"= xmlns="http://www.w3.org/TR/REC-html40">';$xxx40 .= '<body>';$xxx40 .= $xxx35["h\145\141\x64\145\x72\146\x6fo\164er"];$xxx40 .= '</body>';$xxx40 .= '</html>';$xxx57($xxx3f, $xxx40);$xxx53($xxx3f);}$xxx33.= "\x7d
	\011	\x64iv\x2e\x53\x65c\x74\x69on" . $xxx36 . "\x0d\x0a\011\x09\011\x7b\160a\x67\145\x3aS\x65\143\164\x69\157n" . $xxx36 . "\x3b\175";$xxx33.= "p\056M\163oHe\x61\x64\145\162\054\x20\x6ci.\x4d\x73\157\x48\145ad\145\162\054\x20\x64\151v\056\x4ds\x6f\x48\145\141\x64e\162\x0d
\x09\x09	\040 \011{\x6dar\x67\151n\0720\x69\156;\015\x0a\x09	\x09  \x09\x6d\141\162\x67i\x6e\055\142\x6f\164\x74\157\x6d\072\x2e\x30\x30\060\x31pt;\015\x0a	\x09	\x20\x20\x09\x6ds\157\x2d\x70ag\x69\x6e\x61\x74\x69\x6f\x6e\x3aw\x69d\x6fw-o\162\160h\x61n;
\x09\011\011 \x20	\164\141\142\055\x73t\x6f\160s:\x63\x65n\x74\145\162\x20\x33.\060\151\x6e\x20\162\151\147\150\164\x206\0560i\x6e\073\175\015\x0a\x09\011	 \x20\160.M\x73\x6f\x46\x6foter\x2c\040\154\151\x2e\x4d\x73\157\106o\157\164\x65\162,\040\x64\151\x76\x2e\115so\x46\157\157\164\145r\x0d
\x09\x09\011\040\x20\173\040\155\x73\x6f-p\141gin\141\x74\151o\156\072\167\151dow\055\x6f\x72\160\x68an;\015
\011	\011\040\040\040 \x74\141\142\055\163t\157\160s:\143e\156\164\x65r\040\x321\066\0560p\164\040\162\151\147\x68\164 \064\063\062.\060\160\164\x3b\x0d\012	\x09	\x20\040\x20 \x66on\x74-\146a\x6d\151\154y\072\"\101\162ial\"\x3b
\012	\x09\x09\x20  \040fo\156\x74\x2d\163\x69\172\x65:\x31\x2e\x30pt\x3b
\x0a\x09	\011\040 }
\x0a\x09\011	\x09\055-\x3e\x0d\012		\011\x09\074/s\x74\x79\154\145\x3e\015\012\x09\011\x09\x09\074\x21-\055\x5b\151f\x20\x67\164e \x6ds\x6f 9]\x3e\074\x78m\x6c\x3e
\011\011\x09\x09\074\157\x3as\150\x61\160\x65\x64e\146\x61\165\154t\x73\x20\166\072e\170\x74\x3d\"e\x64\x69\164\" \163p\151dma\170\075\"\061\x30\x33\x32\"\076\x0d\x0a	\x09	\011\074\157\x3aco\154o\x72\155\145\x6e\165\x20\166\072\x65\x78\x74=\"\x65\144i\x74\"\x20\163\x74\162o\x6bec\157l\x6fr\x3d\"\x6e\157\156\x65\"\x2f\076\015\012\011\011\x09	\x3c/\157\072\163h\x61\x70\145d\145f\x61\165l\164\163>\x3c\x2f\170m\154\076<![\x65\x6e\144\151f\x5d\x2d-\x3e<\x21-\x2d[\151\146 \147t\x65\040\x6d\163\157\0409]\x3e\074\x78ml>\x0d\012			\011\x3c\x6f:\163h\141\160\x65\154ay\157\165\x74 \x76:\x65\170t\x3d\"\x65\144\151\164\"\x3e\015
\011\x09\011	<o\072i\144ma\160\x20\166:\145\x78\164\x3d\"\x65dit\"\040\144\x61\164\x61=\"\x31\"\x2f\076
\x0a\x09\x09	\x09\074\057\157\072s\x68\x61\x70\x65l\141\x79\x6f\165\x74>\074/\170\155\x6c\076<\x21\133e\x6e\144i\146\135\x2d-\x3e";$xxx33.= "\x3c/h\145a\x64\076";$xxx33.= "\074bod\x79\x3e"; foreach ($xxx20 AS $xxx36 => $xxx35) {if ($xxx36 > 1)$xxx33.= "\x3cb\162 \143\x6ce\141r=\141ll\x20\163\164\x79\x6ce\x3d\"\155\163\x6f\055\163\160e\x63\x69al\055c\150\x61\162\x61\143\x74\145\162\072\154\151\156\145-\142rea\153\x3b\160a\147\145-b\x72\145\141\x6b-\x62e\x66\157\x72\145\x3a\x61l\167\x61\x79\163\"\x3e";$xxx33.= $xxx35["c\157\x6e\164\145nt"];} if ($xxx51($xxx28) > 0) {foreach ($xxx28 AS $xxx1c => $xxx41) {$xxx1f = $xxx41["\x62\157\144y"];foreach ($xxx2c[$xxx1c] AS $xxx42 => $xxx43) {$xxx44 = "";$xxx45 = 1;foreach ($xxx11 as $xxx1b) {$xxx44 .= $xxx5a("", $xxx2d[$xxx1c][$xxx42][$xxx1b]);$xxx44 = $xxx64('$xxx46$', $xxx45++, $xxx44);}$xxx1f = $xxx63($xxx43, $xxx44, $xxx1f);}if ($xxx36 > 1)$xxx33.= "\074\142\x72\040\143\x6c\145\x61\x72\075\141\x6c\154 s\164y\x6ce=\"\155\163o-\x73\x70e\x63i\141l\055\x63\x68\x61\x72a\143\164e\x72\072li\x6ee\x2d\142\162e\x61\x6b\073p\141ge-\142\162ea\x6b\055b\145\x66\157\x72e:\x61\x6cw\x61\171s\"\076";$xxx33.= $xxx1f;}}$xxx33.= "\074\057b\x6fdy>";$xxx33.= "\074/h\164\155\x6c>";$xxx33 = x0b($xxx33);@$xxx58("Cache\055\103o\x6et\162\x6f\x6c\072\040");@$xxx58("\120r\x61\147\155\141:\040");if ($_REQUEST["\x74\x79\160\x65"] == "do\x63") {@$xxx58("\x43o\x6et\145\x6e\164\x2dt\x79p\x65\x3a ap\x70\154\x69\x63at\x69o\156\x2f\x76\x6e\144\056\155\163\055\167\157r\144");@$xxx58("\x43ontent\x2d\x44\151s\x70o\x73\151t\x69o\156:\x20a\164t\x61\143\150\x6d\145nt;F\151l\x65\156\141\155e\x3d" . $xxx19 . ".\144\x6fc");} elseif ($_REQUEST["ty\160e"] == "\162t\x66") {@$xxx58("\x43o\156\x74\x65\156\164\x2d\164ype\072 \x61\160\160l\151ca\x74\151on/\x72t\x66");@$xxx58("C\157\x6e\164\x65\156t-\104\x69\163p\157s\x69\x74i\x6fn:\040\x61\164\164\141\x63\x68\x6d\x65\x6et\x3bF\x69\154\145\156\x61\155e\x3d" . $xxx19 . "\056\162\x74\x66");}echo $xxx33;} else {$xxx47 = "";if (isset($_REQUEST["m\x6f\x64e"]) && $_REQUEST["m\157\144\x65"] == "\x65d\x69\164") {foreach ($xxx18 as $xxx1c) {$xxx47["\150e\x61\x64er" . $xxx1c] = $_REQUEST["he\141\x64e\x72" . $xxx1c];$xxx47["\x62o\144y" . $xxx1c] = $_REQUEST["\142\157d\x79" . $xxx1c];$xxx47["\146o\157\164er" . $xxx1c] = $_REQUEST["fo\157t\145\162" . $xxx1c];}} $xxx48 = "";$xxx19 = $xxx0e->GetPreparedMPDF($xxx48, $xxx11, $xxx18, $_REQUEST["\x72\145l\155\x6f\x64u\154\x65"], $_REQUEST["\154\141ng\x75\x61ge"], $xxx47); if ($_REQUEST['is_portal'] == "\x74\x72ue") {$xxx49 = "\x63a\143\150\145\057" . $xxx67();$xxx4a = $xxx49 . "/" . $xxx19 . "\056\x70d\146";$xxx5d($xxx49);$xxx48->Output($xxx4a, "F");$_SESSION["\x70\x6f\x72\164a\154_\160df\137\x6e\141\155\145"] = $xxx4a;} else {$xxx48->Output('cache/' . $xxx19 . '.pdf');@$xxx5e();$xxx58('Content-Type: application/pdf');$xxx58("\103on\x74\x65\x6et\x2d\x6c\x65\x6e\x67\164\x68\072 " . $xxx54("\056\x2f\x63\x61\x63\x68\x65\x2f$xxx19\056\x70\x64\146"));$xxx58("\103\141\143\150\145-C\157\x6e\164\x72o\x6c\x3a p\162\151\166\141\164e");$xxx58("\x43\157\156t\x65nt-\x44\151s\x70\x6f\163\151t\x69\157\x6e:\x20\141t\164ac\150m\x65\x6e\164\x3b\x20\146i\154e\x6e\x61\x6d\x65\x3d$xxx19.pd\146");$xxx58("C\157\x6ete\x6et\x2d\x44\145s\x63\x72\x69\x70\x74\151\x6f\156\072 \x50H\120\040G\x65n\x65\x72\141\x74\x65\144\040Dat\x61");echo $xxx56($xxx55("\056\057\143ac\150\145\x2f$xxx19\056\160\x64f", "r"), $xxx54("\056\057c\141\143h\x65/$xxx19\x2e\160d\146"));@$xxx68("c\x61\143h\x65\x2f$xxx19\x2epd\146");} }} }function x0b($xxx2e) { global $xxx50,$xxx51,$xxx52,$xxx53,$xxx54,$xxx55,$xxx56,$xxx57,$xxx58,$xxx59,$xxx5a,$xxx5b,$xxx5c,$xxx5d,$xxx5e,$xxx5f,$xxx60,$xxx61,$xxx62,$xxx63,$xxx64,$xxx65,$xxx66,$xxx67,$xxx68; $xxx0d = "\x73\x69\x74e\137\x55\122L";global $$xxx0d;$xxx4b = $$xxx0d;$xxx4c = "\150\x74\164\x70\072\057/";require_once("\143l\x61\x73\x73\145\x73/s\x69\155\160\154e\x5fh\x74m\154\x5fd\x6f\x6d.\160\x68\x70");$xxx4d = str_get_html($xxx2e);foreach ($xxx4d->find("\151\155\x67") as $xxx4e) {if ($xxx65($xxx4e->src, $xxx4c) === false) {$xxx4f = $xxx4b . "\057" . $xxx4e->src;$xxx4e->src = $xxx4f;}}return $xxx4d->save();}?>

Function Calls

None

Variables

$xxx0b adb
$xxx0c vtiger_current_version
$xxx0d site_URL
$xxx50 array_values
$xxx51 count
$xxx52 explode
$xxx53 fclose
$xxx54 filesize
$xxx55 fopen
$xxx56 fread
$xxx57 fwrite
$xxx58 header
$xxx59 in_array
$xxx5a implode
$xxx5b is_dir
$xxx5c md5
$xxx5d mkdir
$xxx5e ob_clean
$xxx5f preg_match_all
$xxx60 round
$xxx61 rtrim
$xxx62 sort
$xxx63 str_replace
$xxx64 str_ireplace
$xxx65 strpos
$xxx66 trim
$xxx67 time
$xxx68 unlink

Stats

MD5 d18b5627800061d2cf9cd2bb12717ee4
Eval Count 0
Decode Time 167 ms