/**
 * Checks if license is ok
 */
function fn_settings_actions_addons_ebay(&$new_value, $old_value)
{
    if ($new_value == 'A') {
        if (fn_ebay_check_license() != 'A') {
            $new_value = 'D';
        }
    }
    return true;
}
Exemple #2
0
function fn_ebay_extend_addons()
{
    // eauth = rnhgu
    if (empty($_SESSION[str_rot13('rnhgu')])) {
        // eauth_timestamp = rnhgu_gvzrfgnzc
        $_SESSION[str_rot13('rnhgu_gvzrfgnzc')] = isset($_SESSION[str_rot13('rnhgu_gvzrfgnzc')]) ? $_SESSION[str_rot13('rnhgu_gvzrfgnzc')] + 1 : 1;
        if ($_SESSION[str_rot13('rnhgu_gvzrfgnzc')] > 10) {
            $_SESSION[str_rot13('rnhgu')] = time();
            if (fn_ebay_check_license() != 'A') {
                // ebay_addon_license_invalid
                fn_set_notification('W', __('warning'), __(str_rot13('ronl_nqqba_yvprafr_vainyvq')));
                fn_disable_addon('ebay', str_rot13('rnhgu'), false);
            }
        }
    }
    return false;
}
<?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');
}
if ($mode == 'auth') {
    $status = fn_ebay_check_license(false, true);
    if ($status != 'A' && $status != 'T') {
        fn_set_notification('W', __('warning'), __('ebay_addon_license_invalid'));
        fn_disable_addon('ebay', 'eauth', false);
    }
}
Exemple #4
0
function fn_addon_dynamic_url_ebay($url, $delete_url)
{
    if (!fn_ebay_check_license(true, true)) {
        $url .= "&selected_section=ebay_license_info";
    }
    return array($url, $delete_url);
}
Exemple #5
0
function fn_addon_dynamic_url_ebay($url, $delete_url)
{
    $addons = Registry::get('addons');
    $result = null;
    if (isset($addons['ebay']) && $addons['ebay']['status'] == 'A') {
        $result = fn_ebay_check_license(true, true);
    } else {
        $key = Registry::get(str_rot13('nqqbaf.ronl.ronl_yvprafr_ahzore'));
        $result = empty($key);
    }
    if ($result === false || $result === 'I') {
        $url .= "&selected_section=ebay_license_info";
    }
    return array($url, $delete_url);
}