Example #1
0
        case 'end_template':
            return \Ebay\Controller::actionEndTemplate();
            break;
        case 'update_template_product_status':
            return \Ebay\Controller::actionUpdateTemplateProductStatus();
            break;
        case 'update_product_status':
            return \Ebay\Controller::actionUpdateProductStatus();
            break;
        case 'delete_template':
            if (!empty($_REQUEST['template_id'])) {
                fn_delete_ebay_template($_REQUEST['template_id']);
            }
            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;