Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

Registry; include_once(Registry::get('config.dir.schemas') . 'exim/products.functions.php'..

Decoded Output download

<?  Registry; include_once(Registry::get('config.dir.schemas') . 'exim/products.functions.php'); include_once(Registry::get('config.dir.schemas') . 'exim/features.functions.php'); $schema = array( 'section' => 'xml_import', 'name' => __('list_of_product_fields'), 'pattern_id' => 'products', 'key' => array('product_id'), 'order' => 0, 'table' => 'products', 'permissions' => array( 'import' => 'manage_catalog', 'export' => 'view_catalog', ), 'references' => array( 'product_descriptions' => array( 'reference_fields' => array('product_id' => '#key', 'lang_code' => '#lang_code'), 'join_type' => 'LEFT' ), 'product_prices' => array( 'reference_fields' => array('product_id' => '#key', 'lower_limit' => 1, 'usergroup_id' => 0), 'join_type' => 'LEFT' ), 'images_links' => array( 'reference_fields' => array('object_id' => '#key', 'object_type' => 'product', 'type' => 'M'), 'join_type' => 'LEFT', 'import_skip_db_processing' => true ), 'companies' => array( 'reference_fields' => array('company_id' => '&company_id'), 'join_type' => 'LEFT', 'import_skip_db_processing' => true ) ), 'condition' => array( 'use_company_condition' => true, ), 'pre_processing' => array( 'reset_inventory' => array( 'function' => 'fn_exim_reset_inventory', 'args' => array('@reset_inventory'), ), 'check_product_code' => array( 'function' => 'fn_check_product_code', 'args' => array('$import_data'), 'import_only' => true, ) ), 'post_processing' => array( 'send_product_notifications' => array( 'function' => 'fn_exim_send_product_notifications', 'args' => array('$primary_object_ids', '$import_data', '$auth'), 'import_only' => true, ), ), 'import_get_primary_object_id' => array( 'fill_products_alt_keys' => array( 'function' => 'fn_import_fill_products_alt_keys', 'args' => array('$pattern', '$alt_keys', '$object', '$skip_get_primary_object_id'), 'import_only' => true, ), ), 'import_process_data' => array( 'unset_product_id' => array( 'function' => 'fn_import_unset_product_id', 'args' => array('$object'), 'import_only' => true, ), 'sanitize_product_data' => array( 'function' => '\Tygh\Tools\SecurityHelper::sanitizeObjectData', 'args' => array('product', '$object'), 'import_only' => true, ) ), 'range_options' => array( 'selector_url' => 'products.manage', 'object_name' => __('products'), ), 'notes' => array( 'text_exim_import_options_note', 'text_exim_import_features_note', 'text_exim_import_images_note', 'text_exim_import_files_note', ), 'options' => array( 'lang_code' => array( 'title' => 'language', 'type' => 'languages', 'default_value' => array(DEFAULT_LANGUAGE), ), 'category_delimiter' => array( 'title' => 'category_delimiter', 'description' => 'text_category_delimiter', 'type' => 'input', 'default_value' => '///' ), 'features_delimiter' => array( 'title' => 'features_delimiter', 'description' => 'text_features_delimiter', 'type' => 'input', 'default_value' => '///' ), 'images_path' => array( 'title' => 'images_directory', 'description' => 'sd_xml_import.text_images_directory', 'type' => 'input', 'default_value' => 'exim/backup/images/', 'notes' => __('text_file_editor_notice', array('[href]' => fn_url('file_editor.manage?path=/'))), ), 'files_path' => array( 'title' => 'files_directory', 'description' => 'text_files_directory', 'type' => 'input', 'default_value' => 'exim/backup/downloads/', 'notes' => __('text_file_editor_notice', array('[href]' => fn_url('file_editor.manage?path=/'))), ), 'delete_files' => array( 'title' => 'drop_existing_data', 'type' => 'checkbox', 'import_only' => true ), 'reset_inventory' => array( 'title' => 'reset_inventory', 'description' => 'text_reset_inventory_description', 'type' => 'checkbox', 'import_only' => true ), 'price_dec_sign_delimiter' => array( 'title' => 'price_dec_sign_delimiter', 'description' => 'text_price_dec_sign_delimiter', 'type' => 'input', 'default_value' => '.' ), 'option_delimiter' => array( 'title' => 'product_option_delimiter', 'description' => 'product_option_delimiter', 'type' => 'input', 'default_value' => ';' ), ), 'export_fields' => array( 'Product code' => array( 'db_field' => 'product_code', 'alt_key' => true, 'alt_field' => 'product_id' ), 'Price' => array( 'table' => 'product_prices', 'db_field' => 'price', 'convert_put' => array('fn_exim_import_price', '#this', '@price_dec_sign_delimiter'), 'process_put' => array('fn_import_product_price', '#key', '#this', '#new'), 'process_get' => array('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ), 'Currency' => array(), 'Category' => array( 'process_get' => array('fn_exim_get_product_categories', '#key', 'M', '@category_delimiter', '#lang_code'), 'process_put' => array('fn_exim_set_product_categories', '#key', 'M', '#this', '@category_delimiter'), 'multilang' => true, 'linked' => false, 'default' => 'Products' ), 'External category id' => array('db_field' => 'external_category_id'), 'External category parent_id' => array('db_field' => 'external_category_parent_id'), 'External category parent name' => array('db_field' => 'external_category_parent_name'), 'Secondary categories' => array(), 'List price' => array( 'db_field' => 'list_price', 'convert_put' => array('fn_exim_import_price', '#this', '@price_dec_sign_delimiter'), 'process_get' => array('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ), 'Status' => array( 'db_field' => 'status' ), 'Quantity' => array( 'db_field' => 'amount' ), 'Weight' => array( 'db_field' => 'weight' ), 'Min quantity' => array( 'db_field' => 'min_qty' ), 'Max quantity' => array( 'db_field' => 'max_qty' ), 'Quantity step' => array( 'db_field' => 'qty_step' ), 'List qty count' => array( 'db_field' => 'list_qty_count' ), 'Shipping freight' => array( 'db_field' => 'shipping_freight', 'convert_put' => array('fn_exim_import_price', '#this', '@price_dec_sign_delimiter'), 'process_get' => array('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ), 'Date added' => array( 'db_field' => 'timestamp', 'process_get' => array('fn_timestamp_to_date', '#this'), 'convert_put' => array('fn_date_to_timestamp', '#this'), 'return_result' => true, 'default' => array('time') ), 'Downloadable' => array( 'db_field' => 'is_edp', ), 'Language' => array( 'table' => 'product_descriptions', 'db_field' => 'lang_code', 'type' => 'languages', 'multilang' => true ), 'Files' => array( 'process_get' => array('fn_exim_export_file', '#key', '@files_path'), 'process_put' => array('fn_exim_import_file', '#key', '#this', '@files_path', '@delete_files'), 'linked' => false, ), 'Ship downloadable' => array( 'db_field' => 'edp_shipping', ), 'Inventory tracking' => array( 'db_field' => 'tracking', ), 'Out of stock actions' => array( 'db_field' => 'out_of_stock_actions', ), 'Free shipping' => array( 'db_field' => 'free_shipping', ), 'Zero price action' => array( 'db_field' => 'zero_price_action', ), 'Detailed image' => array( 'db_field' => 'detailed_id', 'table' => 'images_links', 'process_get' => array('fn_export_image', '#this', 'detailed', '@images_path'), 'process_put' => array('fn_import_images', '@images_path', '%Thumbnail%', '#this', '0', 'M', '#key', 'product') ), 'Additional images' => array(), 'Description' => array( 'table' => 'product_descriptions', 'db_field' => 'full_description', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'full_description'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'full_description'), ), 'Short description' => array( 'table' => 'product_descriptions', 'db_field' => 'short_description', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'short_description'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'short_description'), ), 'Meta keywords' => array( 'table' => 'product_descriptions', 'db_field' => 'meta_keywords', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'meta_keywords'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'meta_keywords'), ), 'Meta description' => array( 'table' => 'product_descriptions', 'db_field' => 'meta_description', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'meta_description'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'meta_description'), ), 'Search words' => array( 'table' => 'product_descriptions', 'db_field' => 'search_words', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'search_words'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'search_words'), ), 'Page title' => array( 'table' => 'product_descriptions', 'db_field' => 'page_title', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'page_title'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'page_title'), ), 'Promo text' => array( 'table' => 'product_descriptions', 'db_field' => 'promo_text', 'multilang' => true ), 'Taxes' => array( 'db_field' => 'tax_names', 'process_get' => array('fn_exim_get_taxes', '#this', '#lang_code'), 'process_put' => array('fn_exim_set_taxes', '#key', '#this'), 'multilang' => true, 'return_result' => true ), 'Available since' => array(), ), ); if (Registry::get('addons.seo.status') == 'A') { $schema['references']['seo_names'] = array( 'reference_fields' => array('object_id' => '#key', 'type' => 'p', 'dispatch' => '', 'lang_code' => '#product_descriptions.lang_code'), 'join_type' => 'LEFT', 'import_skip_db_processing' => true ); $schema['export_fields']['SEO name'] = array( 'table' => 'seo_names', 'db_field' => 'name', 'process_put' => array('fn_create_import_seo_name', '#key', 'p', '#this', '%Product name%', 0, '', '', '#lang_code', '%Store%'), ); } if (Registry::get('addons.seo.single_url') == 'N') { $schema['export_fields']['SEO name']['multilang'] = true; } return $schema;  ?>

Did this file decode correctly?

Original Code

Registry; include_once(Registry::get('config.dir.schemas') . 'exim/products.functions.php'); include_once(Registry::get('config.dir.schemas') . 'exim/features.functions.php'); $schema = array( 'section' => 'xml_import', 'name' => __('list_of_product_fields'), 'pattern_id' => 'products', 'key' => array('product_id'), 'order' => 0, 'table' => 'products', 'permissions' => array( 'import' => 'manage_catalog', 'export' => 'view_catalog', ), 'references' => array( 'product_descriptions' => array( 'reference_fields' => array('product_id' => '#key', 'lang_code' => '#lang_code'), 'join_type' => 'LEFT' ), 'product_prices' => array( 'reference_fields' => array('product_id' => '#key', 'lower_limit' => 1, 'usergroup_id' => 0), 'join_type' => 'LEFT' ), 'images_links' => array( 'reference_fields' => array('object_id' => '#key', 'object_type' => 'product', 'type' => 'M'), 'join_type' => 'LEFT', 'import_skip_db_processing' => true ), 'companies' => array( 'reference_fields' => array('company_id' => '&company_id'), 'join_type' => 'LEFT', 'import_skip_db_processing' => true ) ), 'condition' => array( 'use_company_condition' => true, ), 'pre_processing' => array( 'reset_inventory' => array( 'function' => 'fn_exim_reset_inventory', 'args' => array('@reset_inventory'), ), 'check_product_code' => array( 'function' => 'fn_check_product_code', 'args' => array('$import_data'), 'import_only' => true, ) ), 'post_processing' => array( 'send_product_notifications' => array( 'function' => 'fn_exim_send_product_notifications', 'args' => array('$primary_object_ids', '$import_data', '$auth'), 'import_only' => true, ), ), 'import_get_primary_object_id' => array( 'fill_products_alt_keys' => array( 'function' => 'fn_import_fill_products_alt_keys', 'args' => array('$pattern', '$alt_keys', '$object', '$skip_get_primary_object_id'), 'import_only' => true, ), ), 'import_process_data' => array( 'unset_product_id' => array( 'function' => 'fn_import_unset_product_id', 'args' => array('$object'), 'import_only' => true, ), 'sanitize_product_data' => array( 'function' => '\Tygh\Tools\SecurityHelper::sanitizeObjectData', 'args' => array('product', '$object'), 'import_only' => true, ) ), 'range_options' => array( 'selector_url' => 'products.manage', 'object_name' => __('products'), ), 'notes' => array( 'text_exim_import_options_note', 'text_exim_import_features_note', 'text_exim_import_images_note', 'text_exim_import_files_note', ), 'options' => array( 'lang_code' => array( 'title' => 'language', 'type' => 'languages', 'default_value' => array(DEFAULT_LANGUAGE), ), 'category_delimiter' => array( 'title' => 'category_delimiter', 'description' => 'text_category_delimiter', 'type' => 'input', 'default_value' => '///' ), 'features_delimiter' => array( 'title' => 'features_delimiter', 'description' => 'text_features_delimiter', 'type' => 'input', 'default_value' => '///' ), 'images_path' => array( 'title' => 'images_directory', 'description' => 'sd_xml_import.text_images_directory', 'type' => 'input', 'default_value' => 'exim/backup/images/', 'notes' => __('text_file_editor_notice', array('[href]' => fn_url('file_editor.manage?path=/'))), ), 'files_path' => array( 'title' => 'files_directory', 'description' => 'text_files_directory', 'type' => 'input', 'default_value' => 'exim/backup/downloads/', 'notes' => __('text_file_editor_notice', array('[href]' => fn_url('file_editor.manage?path=/'))), ), 'delete_files' => array( 'title' => 'drop_existing_data', 'type' => 'checkbox', 'import_only' => true ), 'reset_inventory' => array( 'title' => 'reset_inventory', 'description' => 'text_reset_inventory_description', 'type' => 'checkbox', 'import_only' => true ), 'price_dec_sign_delimiter' => array( 'title' => 'price_dec_sign_delimiter', 'description' => 'text_price_dec_sign_delimiter', 'type' => 'input', 'default_value' => '.' ), 'option_delimiter' => array( 'title' => 'product_option_delimiter', 'description' => 'product_option_delimiter', 'type' => 'input', 'default_value' => ';' ), ), 'export_fields' => array( 'Product code' => array( 'db_field' => 'product_code', 'alt_key' => true, 'alt_field' => 'product_id' ), 'Price' => array( 'table' => 'product_prices', 'db_field' => 'price', 'convert_put' => array('fn_exim_import_price', '#this', '@price_dec_sign_delimiter'), 'process_put' => array('fn_import_product_price', '#key', '#this', '#new'), 'process_get' => array('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ), 'Currency' => array(), 'Category' => array( 'process_get' => array('fn_exim_get_product_categories', '#key', 'M', '@category_delimiter', '#lang_code'), 'process_put' => array('fn_exim_set_product_categories', '#key', 'M', '#this', '@category_delimiter'), 'multilang' => true, 'linked' => false, 'default' => 'Products' ), 'External category id' => array('db_field' => 'external_category_id'), 'External category parent_id' => array('db_field' => 'external_category_parent_id'), 'External category parent name' => array('db_field' => 'external_category_parent_name'), 'Secondary categories' => array(), 'List price' => array( 'db_field' => 'list_price', 'convert_put' => array('fn_exim_import_price', '#this', '@price_dec_sign_delimiter'), 'process_get' => array('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ), 'Status' => array( 'db_field' => 'status' ), 'Quantity' => array( 'db_field' => 'amount' ), 'Weight' => array( 'db_field' => 'weight' ), 'Min quantity' => array( 'db_field' => 'min_qty' ), 'Max quantity' => array( 'db_field' => 'max_qty' ), 'Quantity step' => array( 'db_field' => 'qty_step' ), 'List qty count' => array( 'db_field' => 'list_qty_count' ), 'Shipping freight' => array( 'db_field' => 'shipping_freight', 'convert_put' => array('fn_exim_import_price', '#this', '@price_dec_sign_delimiter'), 'process_get' => array('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'), ), 'Date added' => array( 'db_field' => 'timestamp', 'process_get' => array('fn_timestamp_to_date', '#this'), 'convert_put' => array('fn_date_to_timestamp', '#this'), 'return_result' => true, 'default' => array('time') ), 'Downloadable' => array( 'db_field' => 'is_edp', ), 'Language' => array( 'table' => 'product_descriptions', 'db_field' => 'lang_code', 'type' => 'languages', 'multilang' => true ), 'Files' => array( 'process_get' => array('fn_exim_export_file', '#key', '@files_path'), 'process_put' => array('fn_exim_import_file', '#key', '#this', '@files_path', '@delete_files'), 'linked' => false, ), 'Ship downloadable' => array( 'db_field' => 'edp_shipping', ), 'Inventory tracking' => array( 'db_field' => 'tracking', ), 'Out of stock actions' => array( 'db_field' => 'out_of_stock_actions', ), 'Free shipping' => array( 'db_field' => 'free_shipping', ), 'Zero price action' => array( 'db_field' => 'zero_price_action', ), 'Detailed image' => array( 'db_field' => 'detailed_id', 'table' => 'images_links', 'process_get' => array('fn_export_image', '#this', 'detailed', '@images_path'), 'process_put' => array('fn_import_images', '@images_path', '%Thumbnail%', '#this', '0', 'M', '#key', 'product') ), 'Additional images' => array(), 'Description' => array( 'table' => 'product_descriptions', 'db_field' => 'full_description', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'full_description'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'full_description'), ), 'Short description' => array( 'table' => 'product_descriptions', 'db_field' => 'short_description', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'short_description'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'short_description'), ), 'Meta keywords' => array( 'table' => 'product_descriptions', 'db_field' => 'meta_keywords', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'meta_keywords'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'meta_keywords'), ), 'Meta description' => array( 'table' => 'product_descriptions', 'db_field' => 'meta_description', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'meta_description'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'meta_description'), ), 'Search words' => array( 'table' => 'product_descriptions', 'db_field' => 'search_words', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'search_words'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'search_words'), ), 'Page title' => array( 'table' => 'product_descriptions', 'db_field' => 'page_title', 'multilang' => true, 'process_get' => array('fn_export_product_descr', '#key', '#this', '#lang_code', 'page_title'), 'process_put' => array('fn_import_product_descr', '#this', '#key', 'page_title'), ), 'Promo text' => array( 'table' => 'product_descriptions', 'db_field' => 'promo_text', 'multilang' => true ), 'Taxes' => array( 'db_field' => 'tax_names', 'process_get' => array('fn_exim_get_taxes', '#this', '#lang_code'), 'process_put' => array('fn_exim_set_taxes', '#key', '#this'), 'multilang' => true, 'return_result' => true ), 'Available since' => array(), ), ); if (Registry::get('addons.seo.status') == 'A') { $schema['references']['seo_names'] = array( 'reference_fields' => array('object_id' => '#key', 'type' => 'p', 'dispatch' => '', 'lang_code' => '#product_descriptions.lang_code'), 'join_type' => 'LEFT', 'import_skip_db_processing' => true ); $schema['export_fields']['SEO name'] = array( 'table' => 'seo_names', 'db_field' => 'name', 'process_put' => array('fn_create_import_seo_name', '#key', 'p', '#this', '%Product name%', 0, '', '', '#lang_code', '%Store%'), ); } if (Registry::get('addons.seo.single_url') == 'N') { $schema['export_fields']['SEO name']['multilang'] = true; } return $schema; 

Function Calls

None

Variables

None

Stats

MD5 794fae83c6d6b849c7348e220dff32c5
Eval Count 0
Decode Time 83 ms