/** * Check addon */ function fn_ebay_check_addon() { $result = call_user_func_array(str_rot13('sa_ronl_purpx_yvprafr'), array(true, true)); $key = call_user_func(str_rot13('sa_trg_ronl_genvy_yvprafr_xrl')); $current = Registry::get(str_rot13('nqqbaf.ronl.ronl_yvprafr_ahzore')); if ($result != 'A' && $result != 'T') { if ($key === $current) { $message = __(str_rot13('ronl_nqqba_gevny_yvprafr_rkcverq'), array('[ebay_license_url]' => fn_ebay_get_license_url())); } else { $message = __(str_rot13('ronl_nqqba_yvprafr_vainyvq')); } fn_set_notification('W', __('warning'), $message, 'S'); call_user_func_array(str_rot13('sa_qvfnoyr_nqqba'), array('ebay', str_rot13('rnhgu'), false)); } }
\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))))); } Tygh::$app['view']->assign('templates', $templates); Tygh::$app['view']->assign('search', $search); } elseif ($mode == 'add' || $mode == 'update') { $template_data = array(); if ($mode == 'add') { $template_data = fn_restore_post_data('template_data'); } elseif (!empty($_REQUEST['template_id'])) { $template_data = fn_get_ebay_template($_REQUEST['template_id']); if (empty($template_data)) { return array(CONTROLLER_STATUS_REDIRECT, 'ebay.manage'); } $template_data['product_ids'] = \Ebay\Product::getTemplateProductIds($_REQUEST['template_id']); } if (!isset($template_data['site_id'])) {
/** * Return license info * @return string */ function fn_ebay_get_license_notice() { return __('ebay_license_notice', array('[ebay_license_url]' => fn_ebay_get_license_url(), '[trial_license]' => fn_get_ebay_trail_license_key(), '[days]' => __('ebay_addon_plural_days', array(EBAY_TRIAL_LICENSE_LIFE_TIME)))); }