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 /** Chronossimo - Gestion automatique de l'affranchissement et du suivi des colis ..

Decoded Output download

<?php 
/** Chronossimo - Gestion automatique de l'affranchissement et du suivi des colis 
 * 
 * NOTICE OF LICENCE 
 * 
 * This source file is subject to a commercial license from SARL VANVAN 
 * Use, copy, modification or distribution of this source file without written 
 * license agreement from the SARL VANVAN is strictly forbidden. 
 * In order to obtain a license, please contact us: [email protected] 
 * ........................................................................... 
 * INFORMATION SUR LA LICENCE D'UTILISATION 
 * 
 * L'utilisation de ce fichier source est soumise a une licence commerciale 
 * concde par la socit VANVAN 
 * Toute utilisation, reproduction, modification ou distribution du prsent 
 * fichier source sans contrat de licence crit de la part de la SARL VANVAN est 
 * expressment interdite. 
 * Pour obtenir une licence, veuillez contacter la SARL VANVAN a l'adresse: 
 *                  [email protected] 
 * ........................................................................... 
 * @package    Chronossimo 
 * @version    1.0 
 * @copyright  Copyright(c) 2012-2014 VANVAN SARL 
 * @author     Wandrille R. <[email protected]> 
 * @license    Commercial license 
 * @link http://www.chronossimo.fr 
 */ 
define("PS_CHRONOSSIMO_DIR", getcwd()); $a462bc26fdceaa86fd5e245510e5edbe = PS_CHRONOSSIMO_DIR."/../../config/config.inc.php"; if (file_exists($a462bc26fdceaa86fd5e245510e5edbe)) include($a462bc26fdceaa86fd5e245510e5edbe); else if (file_exists("/home/ecommerce/www/config/config.inc.php")) include("/home/ecommerce/www/config/config.inc.php"); else include("D:\wamp\www\prestashop\config\config.inc.php"); include("/home/ecommerce/www/config/config.inc.php"); if ($_REQUEST["security_key"] != (version_compare(_PS_VERSION_, "1.5", ">=")?Configuration::get("CF_SECURITY_KEY", null, 0, 0):Configuration::get("CF_SECURITY_KEY")) ) { header("HTTP/1.0 401 Authorization Required"); die("<h1>Cl de scurit non valide</h1>"); } $h7735be54e0d52b91c33537858164bd82 = explode("-",$_REQUEST["orders"]); if (is_array($h7735be54e0d52b91c33537858164bd82) && count($h7735be54e0d52b91c33537858164bd82)>0) { if (empty($h7735be54e0d52b91c33537858164bd82[count($h7735be54e0d52b91c33537858164bd82)-1])) unset($h7735be54e0d52b91c33537858164bd82[count($h7735be54e0d52b91c33537858164bd82)-1]); if (isMoreRecent("1.5")) { $c4a2f0ac0c49b4dab56ba4f68a789b0e = ""; foreach($h7735be54e0d52b91c33537858164bd82 as $f553cdfefece024181ffb789f3f266a50) { $d3c9cc32d19470dd4142392652ecfbbe2 = new Order((int)$f553cdfefece024181ffb789f3f266a50); if (!Validate::isLoadedObject($d3c9cc32d19470dd4142392652ecfbbe2)) die(Tools::displayError("Cannot find order in database")); $c4a2f0ac0c49b4dab56ba4f68a789b0e.= "id_order=".(int)$f553cdfefece024181ffb789f3f266a50." OR "; } $c4a2f0ac0c49b4dab56ba4f68a789b0e = substr($c4a2f0ac0c49b4dab56ba4f68a789b0e, 0, strlen($c4a2f0ac0c49b4dab56ba4f68a789b0e)-3); $dbb084ead0ba0862e07c72be85c1c1f9 = new Collection("OrderInvoice"); $dbb084ead0ba0862e07c72be85c1c1f9->sqlWhere($c4a2f0ac0c49b4dab56ba4f68a789b0e); generatePDF($dbb084ead0ba0862e07c72be85c1c1f9, PDF::TEMPLATE_INVOICE); } else PDF::multipleInvoices($h7735be54e0d52b91c33537858164bd82); } function isMoreRecent($i8c8b55bc021f725acc7fbc23372cd7ba) { return version_compare(_PS_VERSION_, $i8c8b55bc021f725acc7fbc23372cd7ba, ">="); } function generatePDF($ef6ded4c764c989add49757cd623ab93, $bc278908fb72608fc7b9d4b1fc4e34d6) { $j9d39b10435cfc01801220a6176cc70c8 = new PDF($ef6ded4c764c989add49757cd623ab93, $bc278908fb72608fc7b9d4b1fc4e34d6, Context::getContext()->smarty); $j9d39b10435cfc01801220a6176cc70c8->render(); } ?>

Did this file decode correctly?

Original Code

<?php
/** Chronossimo - Gestion automatique de l'affranchissement et du suivi des colis
 *
 * NOTICE OF LICENCE
 *
 * This source file is subject to a commercial license from SARL VANVAN
 * Use, copy, modification or distribution of this source file without written
 * license agreement from the SARL VANVAN is strictly forbidden.
 * In order to obtain a license, please contact us: [email protected]
 * ...........................................................................
 * INFORMATION SUR LA LICENCE D'UTILISATION
 *
 * L'utilisation de ce fichier source est soumise a une licence commerciale
 * concde par la socit VANVAN
 * Toute utilisation, reproduction, modification ou distribution du prsent
 * fichier source sans contrat de licence crit de la part de la SARL VANVAN est
 * expressment interdite.
 * Pour obtenir une licence, veuillez contacter la SARL VANVAN a l'adresse:
 *                  [email protected]
 * ...........................................................................
 * @package    Chronossimo
 * @version    1.0
 * @copyright  Copyright(c) 2012-2014 VANVAN SARL
 * @author     Wandrille R. <[email protected]>
 * @license    Commercial license
 * @link http://www.chronossimo.fr
 */
define("\x50\x53\x5f\x43\x48\x52\x4f\x4e\x4f\x53\x53\x49\x4d\x4f\x5f\x44\x49\x52", getcwd()); $a462bc26fdceaa86fd5e245510e5edbe = PS_CHRONOSSIMO_DIR."\x2f\x2e\x2e\x2f\x2e\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x69\x6e\x63\x2e\x70\x68\x70"; if (file_exists($a462bc26fdceaa86fd5e245510e5edbe)) include($a462bc26fdceaa86fd5e245510e5edbe); else if (file_exists("\x2f\x68\x6f\x6d\x65\x2f\x65\x63\x6f\x6d\x6d\x65\x72\x63\x65\x2f\x77\x77\x77\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x69\x6e\x63\x2e\x70\x68\x70")) include("\x2f\x68\x6f\x6d\x65\x2f\x65\x63\x6f\x6d\x6d\x65\x72\x63\x65\x2f\x77\x77\x77\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x69\x6e\x63\x2e\x70\x68\x70"); else include("\x44\x3a\x5c\x77\x61\x6d\x70\x5c\x77\x77\x77\x5c\x70\x72\x65\x73\x74\x61\x73\x68\x6f\x70\x5c\x63\x6f\x6e\x66\x69\x67\x5c\x63\x6f\x6e\x66\x69\x67\x2e\x69\x6e\x63\x2e\x70\x68\x70"); include("\x2f\x68\x6f\x6d\x65\x2f\x65\x63\x6f\x6d\x6d\x65\x72\x63\x65\x2f\x77\x77\x77\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x69\x6e\x63\x2e\x70\x68\x70"); if ($_REQUEST["\x73\x65\x63\x75\x72\x69\x74\x79\x5f\x6b\x65\x79"] != (version_compare(_PS_VERSION_, "\x31\x2e\x35", "\x3e\x3d")?Configuration::get("\x43\x46\x5f\x53\x45\x43\x55\x52\x49\x54\x59\x5f\x4b\x45\x59", null, 0, 0):Configuration::get("\x43\x46\x5f\x53\x45\x43\x55\x52\x49\x54\x59\x5f\x4b\x45\x59")) ) { header("\x48\x54\x54\x50\x2f\x31\x2e\x30\x20\x34\x30\x31\x20\x41\x75\x74\x68\x6f\x72\x69\x7a\x61\x74\x69\x6f\x6e\x20\x52\x65\x71\x75\x69\x72\x65\x64"); die("\x3c\x68\x31\x3e\x43\x6c\xc3\xa9\x20\x64\x65\x20\x73\xc3\xa9\x63\x75\x72\x69\x74\xc3\xa9\x20\x6e\x6f\x6e\x20\x76\x61\x6c\x69\x64\x65\x3c\x2f\x68\x31\x3e"); } $h7735be54e0d52b91c33537858164bd82 = explode("\x2d",$_REQUEST["\x6f\x72\x64\x65\x72\x73"]); if (is_array($h7735be54e0d52b91c33537858164bd82) && count($h7735be54e0d52b91c33537858164bd82)>0) { if (empty($h7735be54e0d52b91c33537858164bd82[count($h7735be54e0d52b91c33537858164bd82)-1])) unset($h7735be54e0d52b91c33537858164bd82[count($h7735be54e0d52b91c33537858164bd82)-1]); if (isMoreRecent("\x31\x2e\x35")) { $c4a2f0ac0c49b4dab56ba4f68a789b0e = ""; foreach($h7735be54e0d52b91c33537858164bd82 as $f553cdfefece024181ffb789f3f266a50) { $d3c9cc32d19470dd4142392652ecfbbe2 = new Order((int)$f553cdfefece024181ffb789f3f266a50); if (!Validate::isLoadedObject($d3c9cc32d19470dd4142392652ecfbbe2)) die(Tools::displayError("\x43\x61\x6e\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x6f\x72\x64\x65\x72\x20\x69\x6e\x20\x64\x61\x74\x61\x62\x61\x73\x65")); $c4a2f0ac0c49b4dab56ba4f68a789b0e.= "\x69\x64\x5f\x6f\x72\x64\x65\x72\x3d".(int)$f553cdfefece024181ffb789f3f266a50."\x20\x4f\x52\x20"; } $c4a2f0ac0c49b4dab56ba4f68a789b0e = substr($c4a2f0ac0c49b4dab56ba4f68a789b0e, 0, strlen($c4a2f0ac0c49b4dab56ba4f68a789b0e)-3); $dbb084ead0ba0862e07c72be85c1c1f9 = new Collection("\x4f\x72\x64\x65\x72\x49\x6e\x76\x6f\x69\x63\x65"); $dbb084ead0ba0862e07c72be85c1c1f9->sqlWhere($c4a2f0ac0c49b4dab56ba4f68a789b0e); generatePDF($dbb084ead0ba0862e07c72be85c1c1f9, PDF::TEMPLATE_INVOICE); } else PDF::multipleInvoices($h7735be54e0d52b91c33537858164bd82); } function isMoreRecent($i8c8b55bc021f725acc7fbc23372cd7ba) { return version_compare(_PS_VERSION_, $i8c8b55bc021f725acc7fbc23372cd7ba, "\x3e\x3d"); } function generatePDF($ef6ded4c764c989add49757cd623ab93, $bc278908fb72608fc7b9d4b1fc4e34d6) { $j9d39b10435cfc01801220a6176cc70c8 = new PDF($ef6ded4c764c989add49757cd623ab93, $bc278908fb72608fc7b9d4b1fc4e34d6, Context::getContext()->smarty); $j9d39b10435cfc01801220a6176cc70c8->render(); }

Function Calls

getcwd 1

Variables

None

Stats

MD5 cf1a216b200847c3f87b1b9c195d2bd0
Eval Count 0
Decode Time 127 ms