break; case 'synchronization': return \Ebay\Controller::actionSynchronizationObjects(); break; case 'clean_product_logs': \Ebay\ProductLogger::clean(); return array(CONTROLLER_STATUS_OK, 'ebay.product_logs'); break; } return array(CONTROLLER_STATUS_OK, 'ebay.manage'); } if ($mode == 'manage') { $params = $_REQUEST; list($templates, $search) = fn_get_ebay_templates($params, Registry::get('settings.Appearance.admin_items_per_page'), DESCR_SL); \Ebay\Template::loadProductCount($templates); if (fn_get_ebay_trail_license_key() === Registry::get(str_rot13('nqqbaf.ronl.ronl_yvprafr_ahzore'))) { $time = fn_get_storage_data('ebay_trial_expiry_time'); $days = 0; if (!empty($time)) { $datetime = new DateTime('@' . $time); $current_datetime = new DateTime(); if ($datetime->getTimestamp() > $current_datetime->getTimestamp()) { $interval = $datetime->diff($current_datetime); $days = $interval->days; if ($interval->h > 0) { $days++; } } } fn_set_notification('W', __('notice'), __('ebay_addon_used_trial_license', array('[ebay_license_url]' => fn_ebay_get_license_url(), '[days]' => __('ebay_addon_plural_days', array($days))))); }
/** * Set trail license key to settings */ function fn_ebay_set_trial_license_key() { Settings::instance()->updateValue('ebay_license_number', fn_get_ebay_trail_license_key()); }