function fn_settings_actions_addons_searchanise($new_status, $old_status) { if (fn_se_is_registered() == true) { if ($new_status == 'A') { fn_se_signup(); fn_se_queue_import(); } } return true; }
if (empty($_REQUEST['parent_private_key']) || fn_se_get_parent_private_key($company_id, DEFAULT_LANGUAGE) !== $_REQUEST['parent_private_key']) { foreach ($engines_data as $e) { $options[$e['company_id']][$e['lang_code']] = $e['api_key']; } } else { if (isset($_REQUEST['product_id'])) { $lang_code = DEFAULT_LANGUAGE; if (isset($_REQUEST['lang_code'])) { $lang_code = $_REQUEST['lang_code']; } elseif (isset($_REQUEST['sl'])) { $lang_code = $_REQUEST['sl']; } $options = fn_se_get_products_xml($_REQUEST['product_id'], $company_id, $lang_code, false); } elseif (isset($_REQUEST['resync']) && $_REQUEST['resync'] === 'Y') { fn_se_signup(NULL, NULL, true); fn_se_queue_import(NULL, NULL, true); } else { $options = $engines_data; if (!$options) { $options = array(); } $options['core_edition'] = PRODUCT_NAME; $options['core_version'] = PRODUCT_VERSION; $options['core_status'] = PRODUCT_STATUS; $options['core_build'] = PRODUCT_BUILD; $options['next_queue'] = fn_se_get_next_queue(); $options['total_items_in_queue'] = fn_se_get_total_items_queue(); $options['max_execution_time'] = ini_get('max_execution_time'); @set_time_limit(0); $options['max_execution_time_after'] = ini_get('max_execution_time'); $options['ignore_user_abort'] = ini_get('ignore_user_abort');
function fn_searchanise_update_company($company_data, $company_id, $lang_code, $action) { if (fn_se_signup($company_id, NULL, false) == true) { fn_se_queue_import($company_id, NULL, false); fn_set_notification('N', __('notice'), __('text_se_new_engine_store', array('[store]' => $company_data['company']))); } }
/*************************************************************************** * * * (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'); } if ($mode == 'export') { fn_se_signup(fn_se_get_company_id(), NULL, true); fn_se_queue_import(fn_se_get_company_id(), NULL, true); return array(CONTROLLER_STATUS_OK, 'addons.update?addon=searchanise'); } elseif ($mode == 'options') { if (isset($_REQUEST['snize_use_navigation'])) { $is_navigation = $_REQUEST['snize_use_navigation'] == 'true' ? 'Y' : 'N'; fn_se_set_simple_setting('use_navigation', $is_navigation); } exit; } elseif ($mode == 'signup') { if (fn_se_signup() == true) { fn_se_queue_import(); } return array(CONTROLLER_STATUS_OK, 'addons.update?addon=searchanise'); }