<?php /*************************************************************************** * * * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev * * * * 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. * * * **************************************************************************** * PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE * * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. * ****************************************************************************/ if (!defined('BOOTSTRAP')) { die('Access denied'); } fn_init_stack(array('fn_check_cached_ebay_objects')); fn_register_hooks('ult_check_store_permission', 'save_log', 'get_product_fields', 'get_orders', 'get_products', 'update_product_post');
// Load core functions $fn_list = array('fn.database.php', 'fn.users.php', 'fn.catalog.php', 'fn.cms.php', 'fn.cart.php', 'fn.locations.php', 'fn.common.php', 'fn.fs.php', 'fn.images.php', 'fn.init.php', 'fn.control.php', 'fn.search.php', 'fn.promotions.php', 'fn.log.php', 'fn.companies.php', 'fn.addons.php'); $fn_list[] = 'fn.' . strtolower(PRODUCT_EDITION) . '.php'; foreach ($fn_list as $file) { require $config['dir']['functions'] . $file; } Registry::set('config', $config); unset($config); $application = Tygh\Tygh::createApplication(); $application['class_loader'] = $classLoader; // Register service providers $application->register(new Tygh\Providers\DatabaseProvider()); $application->register(new \Tygh\Providers\SessionProvider()); register_shutdown_function(array('\\Tygh\\Registry', 'save')); fn_init_stack(array('fn_init_error_handler'), array('fn_init_unmanaged_addons')); if (defined('API')) { fn_init_stack(array('fn_init_api')); } fn_init_stack(array('fn_init_crypt'), array('fn_init_imagine'), array('fn_init_archiver'), array('fn_init_storage'), array('fn_init_ua')); if (fn_allowed_for('ULTIMATE')) { fn_init_stack(array('fn_init_store_params_by_host', &$_REQUEST)); } fn_init_stack(array(function () use($application) { $application['session']->init(); }), array('fn_init_ajax'), array('fn_init_company_id', &$_REQUEST), array('fn_check_cache', $_REQUEST), array('fn_init_settings'), array('fn_init_addons'), array('fn_get_route', &$_REQUEST), array('fn_simple_ultimate', &$_REQUEST)); if (!Registry::get('config.tweaks.disable_localizations') && !fn_allowed_for('ULTIMATE:FREE')) { fn_init_stack(array('fn_init_localization', &$_REQUEST)); } fn_init_stack(array('fn_init_language', &$_REQUEST), array('fn_init_currency', &$_REQUEST), array('fn_init_company_data', $_REQUEST), array('fn_init_full_path', $_REQUEST), array('fn_init_layout', &$_REQUEST), array('fn_init_user'), array('fn_init_templater')); // Run INIT fn_init($_REQUEST);
<?php /*************************************************************************** * * * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev * * * * 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. * * * **************************************************************************** * PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE * * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. * ****************************************************************************/ if (!defined('BOOTSTRAP')) { die('Access denied'); } fn_define('SEO_FILENAME_EXTENSION', '.html'); fn_define('SEO_RUNTIME_CACHE_COUNT', 10000); fn_register_hooks('url_post', 'get_route', 'compare_dispatch', 'update_category_post', 'get_category_data', 'get_category_data_post', 'get_categories', 'get_categories_post', 'delete_category_before', 'delete_category_after', 'update_category_parent_pre', 'update_category_parent_post', 'update_product_post', 'get_products', 'load_products_extra_data', 'load_products_extra_data_post', 'get_product_data', 'get_product_data_post', 'delete_product_post', 'update_product_categories_post', 'update_page_post', 'get_pages', 'pre_get_page_data', 'get_page_data', 'post_get_pages', 'delete_page', 'update_page_parent_pre', 'update_page_parent_post', 'get_product_feature_variants', 'get_product_feature_variants_post', 'update_product_feature_post', 'delete_product_feature_variants_post', 'delete_languages_post', 'update_language_post', 'dispatch_before_display', 'varnish_generate_vcl_pre'); if (fn_allowed_for('ULTIMATE')) { fn_register_hooks('ult_delete_company', 'check_and_update_product_sharing'); } if (fn_allowed_for('MULTIVENDOR')) { fn_register_hooks('update_company', 'get_companies', 'get_company_data', 'get_company_data_post', 'delete_company'); } fn_init_stack(array('fn_seo_check_dispatch', &$_REQUEST));