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 ///-build_id: 2018021606.3244 /// This source file is subject to the Software Lice..

Decoded Output download

<?php 
///-build_id: 2018021606.3244 
/// This source file is subject to the Software License Agreement that is bundled with this  
/// package in the file license.txt, or you can get it here 
/// http://addons-modules.com/en/content/3-terms-and-conditions-of-use 
/// 
/// @copyright  2009-2016 Addons-Modules.com 
///  If you need open code to customize or merge code with othe modules, please contact us. 
class AgileMultipleSellerSellerSummaryModuleFrontController extends AgileModuleFrontController 
{ 
	 
	public function setMedia()   {    parent::setMedia();        Media::addJsDef(array(     'id_language_current' => self::$cookie->id_lang      ));        $this->registerStylesheet('jquery.ui.datepicker', '/js/jquery/ui/themes/base/jquery.ui.datepicker.css', ['media' => 'all', 'priority' => 100]);    $this->registerStylesheet('jquery.fancybox', '/js/jquery/plugins/fancybox/jquery.fancybox.css', ['media' => 'all', 'priority' => 100]);       $this->registerJavascript('js_tools','/js/tools.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_tinymce','/modules/agilemultipleseller/js/agile_tiny_mce.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_filemanager','/modules/agilemultipleseller/filemanager/plugin.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_typewatch','/js/jquery/plugins/jquery.typewatch.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_fancybox','/js/jquery/plugins/fancybox/jquery.fancybox.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uicore','/js/jquery/ui/jquery.ui.core.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uiwidget','/js/jquery/ui/jquery.ui.widget.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uimouse','/js/jquery/ui/jquery.ui.mouse.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uislider','/js/jquery/ui/jquery.ui.slider.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uidatepicker','/js/jquery/ui/jquery.ui.datepicker.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uitimepicker','/js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_statememneger','/modules/agilemultipleseller/js/AgileStatesManagement.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_dropdown','/modules/agilemultipleseller/replica/themes/default/js/dropdown.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_multilanguage','/modules/agilemultipleseller/js/multi-language.js',['position' => 'bottom', 'priority' => 100]);      $this->registerJavascript('js_idtabs','/js/jquery/plugins/jquery.idTabs.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_sellerpage','/modules/agilemultipleseller/js/sellerpage.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_sellersummary','/modules/agilemultipleseller/js/sellersummary.js',['position' => 'bottom', 'priority' => 100]);     }      public function postProcess()      {      $this->context->smarty->assign(array(     'cfmmsg_flag' => Tools::getValue('cfmmsg_flag')     ));             if (Tools::isSubmit('submitSellerAccount'))          {     AgileMultipleSeller::createSellerAccount(new Customer($this->context->customer->id));     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));          }    if (Tools::getValue('submitRequest') == "B2T")          {     $RD61B7D3281F8A9647967BDE23E6A0762 = AgileMultipleSeller::convert_balance_to_token($this->context->customer->id      , (float)Tools::getValue('amount_to_convert')      , $this->l('CHANGE BALANCE TO TOKENS'));     if(!empty($RD61B7D3281F8A9647967BDE23E6A0762))     {      $this->errors[] = $RD61B7D3281F8A9647967BDE23E6A0762;      return;     }     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));    }      if (Tools::getValue('submitRequest') == "MPR")          {     $RD61B7D3281F8A9647967BDE23E6A0762 = AgileMultipleSeller::make_fund_request($this->context->customer->id      , (float)Tools::getValue('amount_to_convert')      , $this->l('MAKE FUND REQUEST'));     if(!empty($RD61B7D3281F8A9647967BDE23E6A0762))     {      $this->errors[] = $RD61B7D3281F8A9647967BDE23E6A0762;      return;     }     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));    }        if (Tools::getValue('submitRequest') == "T2B")          {     $RD61B7D3281F8A9647967BDE23E6A0762 = AgileMultipleSeller::convert_tokens_to_balance($this->context->customer->id      , (float)Tools::getValue('tokens_to_convert')      , $this->l('CHANGE TOKENS TO BALANCE'));     if(!empty($RD61B7D3281F8A9647967BDE23E6A0762))     {      $this->errors[] = $RD61B7D3281F8A9647967BDE23E6A0762;      return;     }     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));    }      }               public function initContent()   {    parent::initContent();        $this->context->controller->addJQueryPlugin('fancybox');    $this->context->controller->addJQueryUI('ui.sortable');    $this->context->controller->addJQueryUI('ui.draggable');    $this->context->controller->addJQueryUI('effects.transfer');    $R843772E13ECF32C5CEEF23010FB27FBA = Context::getContext()->cookie->id_lang;      $RA33A32AAF5D5F8DB0AB34B4C54D20CE2 = new CMS((int)(Configuration::get('AGILE_MS_SELLER_TERMS')), (int)($this->context->language->id));    $RBD80CECBFE3054A6C4C0BC7282DE1FC5 = $this->context->link->getCMSLink($RA33A32AAF5D5F8DB0AB34B4C54D20CE2, $RA33A32AAF5D5F8DB0AB34B4C54D20CE2->link_rewrite, true);    if (!strpos($RBD80CECBFE3054A6C4C0BC7282DE1FC5, '?'))     $RBD80CECBFE3054A6C4C0BC7282DE1FC5 .= '?content_only=1';    else     $RBD80CECBFE3054A6C4C0BC7282DE1FC5 .= '&content_only=1';      $this->context->smarty->assign(array(     'link_terms' => $RBD80CECBFE3054A6C4C0BC7282DE1FC5,     'id_cms_seller_terms' =>  intval(Configuration::get('AGILE_MS_SELLER_TERMS'))    ));                $R5443C818456DDBED91C453A08CBE149F = 0;    $RCFBC47B334125C44B51C7EC2E50FDD9C = "";;          if(Module::isInstalled('agilesellercommission'))          {     include_once(_PS_ROOT_DIR_ .'/modules/agilesellercommission/agilesellercommission.php');     include_once(_PS_ROOT_DIR_ .'/modules/agilesellercommission/SellerCommission.php');          $R5443C818456DDBED91C453A08CBE149F = AgileSellerManager::getAccountBalance($this->sellerinfo->id_seller);     $R04E66113B73FC83C1BF02292707E396D = array(      'record_type' => SellerCommission::RECORD_TYPE_SELLER_PAY_STORE,      'id_seller' => $this->sellerinfo->id_seller,      'amount_to_pay' => (-$R5443C818456DDBED91C453A08CBE149F),      'retkey' => Tools::getValue('token'),      'paykey' => Tools::encrypt($this->sellerinfo->id_seller),      'isfront' => 1           );     $RCFBC47B334125C44B51C7EC2E50FDD9C = AgileSellerCommission::get_paycommission_url($R04E66113B73FC83C1BF02292707E396D);    }    $R373752D6D446BF4BF311887154B95CAE = 0;    if(Module::isInstalled('agileprepaidcredit'))          {     include_once(_PS_ROOT_DIR_ .'/modules/agileprepaidcredit/agileprepaidcredit.php');     $R373752D6D446BF4BF311887154B95CAE = AgilePrepaidCredit::GetTokenBalance($this->context->customer->id);    }                $R9AB433A467E2C30E21FA208513B3B5B9 = (int)Configuration::get('PS_CURRENCY_DEFAULT');      $this->context->smarty->assign(array(              'seller_tab_id' => 1     ,'num_products' => ($this->isSeller?AgileSellerManager::getNumOfProducts($this->sellerinfo->id_seller):0)     ,'num_orders' => ($this->isSeller?AgileSellerManager::getNumOfOrders($this->sellerinfo->id_seller):0)     ,'totals_sold' => AgileSellerManager::getTotalAmountSold($this->sellerinfo->id_seller)     ,'comcurrency' => new Currency((int)Configuration::get('ASC_COMMISSION_CURRENCY'))     ,'paycommission_url' => $RCFBC47B334125C44B51C7EC2E50FDD9C     ,'account_balance' => $R5443C818456DDBED91C453A08CBE149F     ,'token_balance' => $R373752D6D446BF4BF311887154B95CAE     ,'id_language_current' => self::$cookie->id_lang     ,'membership_module_integrated' =>( (Module::isInstalled('agilemembership') AND intval(Configuration::get('AGILE_MEMBERSHIP_SELLER_INTE'))>0) ? 1 : 0)     ,'request_T2B' => $this->l('CHANGE TOKENS TO BALANCE')     ,'request_B2T' => $this->l('CHANGE BALANCE TO TOKENS')     ,'request_MPR' => $this->l('MAKE A PEYMENT REQUEST')     ,'use_paypal_forsellerpayment' => (int)Configuration::get('ASC_USE_PAYPAL')                   ));      $this->setTemplate('module:agilemultipleseller/views/templates/front/sellersummary.tpl');   }        }   ?>

Did this file decode correctly?

Original Code

<?php
///-build_id: 2018021606.3244
/// This source file is subject to the Software License Agreement that is bundled with this 
/// package in the file license.txt, or you can get it here
/// http://addons-modules.com/en/content/3-terms-and-conditions-of-use
///
/// @copyright  2009-2016 Addons-Modules.com
///  If you need open code to customize or merge code with othe modules, please contact us.
class AgileMultipleSellerSellerSummaryModuleFrontController extends AgileModuleFrontController
{
	
	public function setMedia()   {    parent::setMedia();        Media::addJsDef(array(     'id_language_current' => self::$cookie->id_lang      ));        $this->registerStylesheet('jquery.ui.datepicker', '/js/jquery/ui/themes/base/jquery.ui.datepicker.css', ['media' => 'all', 'priority' => 100]);    $this->registerStylesheet('jquery.fancybox', '/js/jquery/plugins/fancybox/jquery.fancybox.css', ['media' => 'all', 'priority' => 100]);       $this->registerJavascript('js_tools','/js/tools.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_tinymce','/modules/agilemultipleseller/js/agile_tiny_mce.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_filemanager','/modules/agilemultipleseller/filemanager/plugin.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_typewatch','/js/jquery/plugins/jquery.typewatch.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_fancybox','/js/jquery/plugins/fancybox/jquery.fancybox.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uicore','/js/jquery/ui/jquery.ui.core.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uiwidget','/js/jquery/ui/jquery.ui.widget.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uimouse','/js/jquery/ui/jquery.ui.mouse.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uislider','/js/jquery/ui/jquery.ui.slider.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uidatepicker','/js/jquery/ui/jquery.ui.datepicker.min.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('js_uitimepicker','/js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_statememneger','/modules/agilemultipleseller/js/AgileStatesManagement.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_dropdown','/modules/agilemultipleseller/replica/themes/default/js/dropdown.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_multilanguage','/modules/agilemultipleseller/js/multi-language.js',['position' => 'bottom', 'priority' => 100]);      $this->registerJavascript('js_idtabs','/js/jquery/plugins/jquery.idTabs.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_sellerpage','/modules/agilemultipleseller/js/sellerpage.js',['position' => 'bottom', 'priority' => 100]);    $this->registerJavascript('agile_sellersummary','/modules/agilemultipleseller/js/sellersummary.js',['position' => 'bottom', 'priority' => 100]);     }      public function postProcess()      {      $this->context->smarty->assign(array(     'cfmmsg_flag' => Tools::getValue('cfmmsg_flag')     ));             if (Tools::isSubmit('submitSellerAccount'))          {     AgileMultipleSeller::createSellerAccount(new Customer($this->context->customer->id));     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));          }    if (Tools::getValue('submitRequest') == "B2T")          {     $RD61B7D3281F8A9647967BDE23E6A0762 = AgileMultipleSeller::convert_balance_to_token($this->context->customer->id      , (float)Tools::getValue('amount_to_convert')      , $this->l('CHANGE BALANCE TO TOKENS'));     if(!empty($RD61B7D3281F8A9647967BDE23E6A0762))     {      $this->errors[] = $RD61B7D3281F8A9647967BDE23E6A0762;      return;     }     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));    }      if (Tools::getValue('submitRequest') == "MPR")          {     $RD61B7D3281F8A9647967BDE23E6A0762 = AgileMultipleSeller::make_fund_request($this->context->customer->id      , (float)Tools::getValue('amount_to_convert')      , $this->l('MAKE FUND REQUEST'));     if(!empty($RD61B7D3281F8A9647967BDE23E6A0762))     {      $this->errors[] = $RD61B7D3281F8A9647967BDE23E6A0762;      return;     }     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));    }        if (Tools::getValue('submitRequest') == "T2B")          {     $RD61B7D3281F8A9647967BDE23E6A0762 = AgileMultipleSeller::convert_tokens_to_balance($this->context->customer->id      , (float)Tools::getValue('tokens_to_convert')      , $this->l('CHANGE TOKENS TO BALANCE'));     if(!empty($RD61B7D3281F8A9647967BDE23E6A0762))     {      $this->errors[] = $RD61B7D3281F8A9647967BDE23E6A0762;      return;     }     Tools::redirect($this->context->link->getModuleLink('agilemultipleseller','sellersummary',array('cfmmsg_flag'=>1), true));    }      }               public function initContent()   {    parent::initContent();        $this->context->controller->addJQueryPlugin('fancybox');    $this->context->controller->addJQueryUI('ui.sortable');    $this->context->controller->addJQueryUI('ui.draggable');    $this->context->controller->addJQueryUI('effects.transfer');    $R843772E13ECF32C5CEEF23010FB27FBA = Context::getContext()->cookie->id_lang;      $RA33A32AAF5D5F8DB0AB34B4C54D20CE2 = new CMS((int)(Configuration::get('AGILE_MS_SELLER_TERMS')), (int)($this->context->language->id));    $RBD80CECBFE3054A6C4C0BC7282DE1FC5 = $this->context->link->getCMSLink($RA33A32AAF5D5F8DB0AB34B4C54D20CE2, $RA33A32AAF5D5F8DB0AB34B4C54D20CE2->link_rewrite, true);    if (!strpos($RBD80CECBFE3054A6C4C0BC7282DE1FC5, '?'))     $RBD80CECBFE3054A6C4C0BC7282DE1FC5 .= '?content_only=1';    else     $RBD80CECBFE3054A6C4C0BC7282DE1FC5 .= '&content_only=1';      $this->context->smarty->assign(array(     'link_terms' => $RBD80CECBFE3054A6C4C0BC7282DE1FC5,     'id_cms_seller_terms' =>  intval(Configuration::get('AGILE_MS_SELLER_TERMS'))    ));                $R5443C818456DDBED91C453A08CBE149F = 0;    $RCFBC47B334125C44B51C7EC2E50FDD9C = "";;          if(Module::isInstalled('agilesellercommission'))          {     include_once(_PS_ROOT_DIR_ .'/modules/agilesellercommission/agilesellercommission.php');     include_once(_PS_ROOT_DIR_ .'/modules/agilesellercommission/SellerCommission.php');          $R5443C818456DDBED91C453A08CBE149F = AgileSellerManager::getAccountBalance($this->sellerinfo->id_seller);     $R04E66113B73FC83C1BF02292707E396D = array(      'record_type' => SellerCommission::RECORD_TYPE_SELLER_PAY_STORE,      'id_seller' => $this->sellerinfo->id_seller,      'amount_to_pay' => (-$R5443C818456DDBED91C453A08CBE149F),      'retkey' => Tools::getValue('token'),      'paykey' => Tools::encrypt($this->sellerinfo->id_seller),      'isfront' => 1           );     $RCFBC47B334125C44B51C7EC2E50FDD9C = AgileSellerCommission::get_paycommission_url($R04E66113B73FC83C1BF02292707E396D);    }    $R373752D6D446BF4BF311887154B95CAE = 0;    if(Module::isInstalled('agileprepaidcredit'))          {     include_once(_PS_ROOT_DIR_ .'/modules/agileprepaidcredit/agileprepaidcredit.php');     $R373752D6D446BF4BF311887154B95CAE = AgilePrepaidCredit::GetTokenBalance($this->context->customer->id);    }                $R9AB433A467E2C30E21FA208513B3B5B9 = (int)Configuration::get('PS_CURRENCY_DEFAULT');      $this->context->smarty->assign(array(              'seller_tab_id' => 1     ,'num_products' => ($this->isSeller?AgileSellerManager::getNumOfProducts($this->sellerinfo->id_seller):0)     ,'num_orders' => ($this->isSeller?AgileSellerManager::getNumOfOrders($this->sellerinfo->id_seller):0)     ,'totals_sold' => AgileSellerManager::getTotalAmountSold($this->sellerinfo->id_seller)     ,'comcurrency' => new Currency((int)Configuration::get('ASC_COMMISSION_CURRENCY'))     ,'paycommission_url' => $RCFBC47B334125C44B51C7EC2E50FDD9C     ,'account_balance' => $R5443C818456DDBED91C453A08CBE149F     ,'token_balance' => $R373752D6D446BF4BF311887154B95CAE     ,'id_language_current' => self::$cookie->id_lang     ,'membership_module_integrated' =>( (Module::isInstalled('agilemembership') AND intval(Configuration::get('AGILE_MEMBERSHIP_SELLER_INTE'))>0) ? 1 : 0)     ,'request_T2B' => $this->l('CHANGE TOKENS TO BALANCE')     ,'request_B2T' => $this->l('CHANGE BALANCE TO TOKENS')     ,'request_MPR' => $this->l('MAKE A PEYMENT REQUEST')     ,'use_paypal_forsellerpayment' => (int)Configuration::get('ASC_USE_PAYPAL')                   ));      $this->setTemplate('module:agilemultipleseller/views/templates/front/sellersummary.tpl');   }        }  

Function Calls

None

Variables

None

Stats

MD5 52f548aef732a28b4d31c56fe24f5509
Eval Count 0
Decode Time 115 ms