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 /**********************************************************************************..

Decoded Output download

<?php 
/******************************************************************************************* 
*   ___  _          ______                     _ _                _                        * 
*  / _ \| |         | ___ \                   | (_)              | |               2018   * 
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   * 
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  * 
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | * 
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| * 
*                                                         __/ |                            * 
*                                                        |___/                             * 
* ---------------------------------------------------------------------------------------- * 
* This is commercial software, only users who have purchased a valid license and  accept   * 
* to the terms of the License Agreement can install and use this program.                  * 
* ---------------------------------------------------------------------------------------- * 
* website: https://cs-cart.alexbranding.com                                                * 
*   email: [email protected]                                                           * 
*******************************************************************************************/ 
use Tygh\Registry; 
use Tygh\BlockManager\Block; 
if (!defined('BOOTSTRAP')) { die('Access denied'); } 
if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
if (defined('AJAX_REQUEST') and $mode == 'get_join_products'){ 
Registry::get('ajax')->assign("result", "N"); 
if (strpos($_REQUEST['b'], 'ab__ia_') !== false){ 
if (intval($_REQUEST['j']) > 0 and intval($_REQUEST['p']) > 0){ 
$products = fn_ab__ia_get_products_by_join (array('product_id'=>intval($_REQUEST['p']), 'join_id'=>intval($_REQUEST['j']))); 
if (!empty($products) and is_array($products)){ 
Registry::get('ajax')->assign('result', 'Y'); 
$theme_settings = Registry::get('settings.abt__yt.ab__intelligent_accessories'); 
$block = array(); 
$block['block_id'] = $_REQUEST['b']; 
$block['properties']['item_quantity'] = (!empty($theme_settings['item_quantity'])) ? $theme_settings['item_quantity'] : 5; 
$block['properties']['not_scroll_automatically']= (!empty($theme_settings['not_scroll_automatically'])) ? $theme_settings['not_scroll_automatically'] : 'Y'; 
$block['properties']['speed'] = (!empty($theme_settings['speed'])) ? $theme_settings['speed'] : 400; 
$block['properties']['pause_delay'] = (!empty($theme_settings['pause_delay'])) ? $theme_settings['pause_delay'] : 6; 
$block['properties']['hide_add_to_cart_button'] = (!empty($theme_settings['hide_add_to_cart_button'])) ? $theme_settings['hide_add_to_cart_button'] : 'N'; 
$block['properties']['show_price'] = (!empty($theme_settings['show_price'])) ? $theme_settings['show_price'] : 'Y'; 
$block['properties']['outside_navigation'] = 'Y'; 
Registry::get('ajax')->assign('block', $block); 
Registry::get('ajax')->assign('quantity', count($products)); 
Registry::get('ajax')->assign('products_scroller', 
Registry::get('view') 
->assign('items', $products) 
->assign('block', $block) 
->assign('redirect_url', fn_url('products.view&product_id='.$_REQUEST['p'])) 
->fetch('addons/ab__intelligent_accessories/views/components/ab__ia_products_scroller_items.tpl')); 
} 
} 
}else{ 
if (intval($_REQUEST['b']) > 0 and intval($_REQUEST['j']) > 0 and intval($_REQUEST['p']) > 0){ 
$products = fn_ab__ia_get_products_by_join (array('product_id'=>intval($_REQUEST['p']), 'join_id'=>intval($_REQUEST['j']))); 
if (!empty($products) and is_array($products)){ 
$block = Block::instance()->getById(intval($_REQUEST['b'])); 
$block['properties']['show_price'] = 'Y'; 
$block['properties']['outside_navigation'] = 'Y'; 
Registry::get('ajax')->assign('block', Block::instance()->getById(intval($_REQUEST['b']))); 
Registry::get('ajax')->assign('result', 'Y'); 
Registry::get('ajax')->assign('products_scroller', 
Registry::get('view') 
->assign('items', $products) 
->assign('block', $block) 
->assign('redirect_url', fn_url('products.view&product_id='.$_REQUEST['p'])) 
->fetch('addons/ab__intelligent_accessories/views/components/ab__ia_products_scroller_items.tpl')); 
} 
} 
} 
exit; 
} 
return; 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |               2018   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and  accept   *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: [email protected]                                                           *
*******************************************************************************************/
use Tygh\Registry;
use Tygh\BlockManager\Block;
if (!defined('BOOTSTRAP')) { die('Access denied'); }
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (defined('AJAX_REQUEST') and $mode == 'get_join_products'){
Registry::get('ajax')->assign("result", "N");
if (strpos($_REQUEST['b'], 'ab__ia_') !== false){
if (intval($_REQUEST['j']) > 0 and intval($_REQUEST['p']) > 0){
$products = fn_ab__ia_get_products_by_join (array('product_id'=>intval($_REQUEST['p']), 'join_id'=>intval($_REQUEST['j'])));
if (!empty($products) and is_array($products)){
Registry::get('ajax')->assign('result', 'Y');
$theme_settings = Registry::get('settings.abt__yt.ab__intelligent_accessories');
$block = array();
$block['block_id'] = $_REQUEST['b'];
$block['properties']['item_quantity'] = (!empty($theme_settings['item_quantity'])) ? $theme_settings['item_quantity'] : 5;
$block['properties']['not_scroll_automatically']= (!empty($theme_settings['not_scroll_automatically'])) ? $theme_settings['not_scroll_automatically'] : 'Y';
$block['properties']['speed'] = (!empty($theme_settings['speed'])) ? $theme_settings['speed'] : 400;
$block['properties']['pause_delay'] = (!empty($theme_settings['pause_delay'])) ? $theme_settings['pause_delay'] : 6;
$block['properties']['hide_add_to_cart_button'] = (!empty($theme_settings['hide_add_to_cart_button'])) ? $theme_settings['hide_add_to_cart_button'] : 'N';
$block['properties']['show_price'] = (!empty($theme_settings['show_price'])) ? $theme_settings['show_price'] : 'Y';
$block['properties']['outside_navigation'] = 'Y';
Registry::get('ajax')->assign('block', $block);
Registry::get('ajax')->assign('quantity', count($products));
Registry::get('ajax')->assign('products_scroller',
Registry::get('view')
->assign('items', $products)
->assign('block', $block)
->assign('redirect_url', fn_url('products.view&product_id='.$_REQUEST['p']))
->fetch('addons/ab__intelligent_accessories/views/components/ab__ia_products_scroller_items.tpl'));
}
}
}else{
if (intval($_REQUEST['b']) > 0 and intval($_REQUEST['j']) > 0 and intval($_REQUEST['p']) > 0){
$products = fn_ab__ia_get_products_by_join (array('product_id'=>intval($_REQUEST['p']), 'join_id'=>intval($_REQUEST['j'])));
if (!empty($products) and is_array($products)){
$block = Block::instance()->getById(intval($_REQUEST['b']));
$block['properties']['show_price'] = 'Y';
$block['properties']['outside_navigation'] = 'Y';
Registry::get('ajax')->assign('block', Block::instance()->getById(intval($_REQUEST['b'])));
Registry::get('ajax')->assign('result', 'Y');
Registry::get('ajax')->assign('products_scroller',
Registry::get('view')
->assign('items', $products)
->assign('block', $block)
->assign('redirect_url', fn_url('products.view&product_id='.$_REQUEST['p']))
->fetch('addons/ab__intelligent_accessories/views/components/ab__ia_products_scroller_items.tpl'));
}
}
}
exit;
}
return;
}

Function Calls

None

Variables

None

Stats

MD5 c9c60e56cc486da8c22b2c7329b9a46d
Eval Count 0
Decode Time 84 ms