• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Divi Extensions required.

Divi Essential v2.0.2 Untouched - seems to work without licence key
 

Attachments

  • divi-essential-v-2.0.2.zip
    679.9 KB · Views: 21
It's meant to have 400+ layouts but I don't see them even with the licence key entered.

The modules all work without the licence key though.
 
  • Like
Reactions: JRGWxRxZ
Divi Essential v2.0.2 Untouched - seems to work without licence key
PHP:
    $license = trim(get_option('dnext_essential_license_key'));

    $api_params = array(
        'edd_action' => 'check_license',
        'license'    => $license,
        'item_name'  => urlencode(DNEXT_ESSENTIAL_ITEM_NAME),
        'url'        => home_url(),
    );

    // Call the custom API.
    $response = wp_remote_post(DNEXT_ESSENTIAL_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params));

    if (is_wp_error($response)) {
        return false;
    }

    $license_data = json_decode(wp_remote_retrieve_body($response));

    if ('valid' == $license_data->license) {
        echo 'valid';exit;
        // this license is still valid
    } else {
        echo 'invalid';exit;
        // this license is no longer valid
    }

Changed To

PHP:
echo 'valid';exit;

AND

PHP:
if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) {

            if (is_wp_error($response)) {
                $message = $response->get_error_message();
            } else {
                $message = __('An error occurred, please try again.');
            }

        } else {

            $license_data = json_decode(wp_remote_retrieve_body($response));

            if (false === $license_data->success) {

                switch ($license_data->error) {

                    case 'expired':

                        $message = sprintf(
                            __('Your license key expired on %s.'),
                            date_i18n(get_option('date_format'), strtotime($license_data->expires, current_time('timestamp')))
                        );
                        break;

                    case 'disabled':
                    case 'revoked':

                        $message = __('Your license key has been disabled.');
                        break;

                    case 'missing':

                        $message = __('Invalid license.');
                        break;

                    case 'invalid':
                    case 'site_inactive':

                        $message = __('Your license is not active for this URL.');
                        break;

                    case 'item_name_mismatch':

                        $message = sprintf(__('This appears to be an invalid license key for %s.'), DNEXT_ESSENTIAL_ITEM_NAME);
                        break;

                    case 'no_activations_left':

                        $message = __('Your license key has reached its activation limit.');
                        break;

                    default:

                        $message = __('An error occurred, please try again.');
                        break;
                }

            }

        }

        // Check if anything passed on a message constituting a failure
        if (!empty($message)) {
            $base_url = admin_url('plugins.php?page=' . DNEXT_ESSENTIAL_PLUGIN_LICENSE_PAGE);
            $redirect = add_query_arg(array('sl_activation' => 'false', 'message' => urlencode($message)), $base_url);

            wp_redirect($redirect);
            exit();
        }

        // $license_data->license will be either "valid" or "invalid"

        update_option('dnext_essential_license_status', $license_data->license);

changed to

PHP:
update_option('dnext_essential_license_status', 'valid');
 
  • Like
Reactions: ayyaz
PHP:
    $license = trim(get_option('dnext_essential_license_key'));

    $api_params = array(
        'edd_action' => 'check_license',
        'license'    => $license,
        'item_name'  => urlencode(DNEXT_ESSENTIAL_ITEM_NAME),
        'url'        => home_url(),
    );

    // Call the custom API.
    $response = wp_remote_post(DNEXT_ESSENTIAL_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params));

    if (is_wp_error($response)) {
        return false;
    }

    $license_data = json_decode(wp_remote_retrieve_body($response));

    if ('valid' == $license_data->license) {
        echo 'valid';exit;
        // this license is still valid
    } else {
        echo 'invalid';exit;
        // this license is no longer valid
    }

Changed To

PHP:
echo 'valid';exit;

AND

PHP:
if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) {

            if (is_wp_error($response)) {
                $message = $response->get_error_message();
            } else {
                $message = __('An error occurred, please try again.');
            }

        } else {

            $license_data = json_decode(wp_remote_retrieve_body($response));

            if (false === $license_data->success) {

                switch ($license_data->error) {

                    case 'expired':

                        $message = sprintf(
                            __('Your license key expired on %s.'),
                            date_i18n(get_option('date_format'), strtotime($license_data->expires, current_time('timestamp')))
                        );
                        break;

                    case 'disabled':
                    case 'revoked':

                        $message = __('Your license key has been disabled.');
                        break;

                    case 'missing':

                        $message = __('Invalid license.');
                        break;

                    case 'invalid':
                    case 'site_inactive':

                        $message = __('Your license is not active for this URL.');
                        break;

                    case 'item_name_mismatch':

                        $message = sprintf(__('This appears to be an invalid license key for %s.'), DNEXT_ESSENTIAL_ITEM_NAME);
                        break;

                    case 'no_activations_left':

                        $message = __('Your license key has reached its activation limit.');
                        break;

                    default:

                        $message = __('An error occurred, please try again.');
                        break;
                }

            }

        }

        // Check if anything passed on a message constituting a failure
        if (!empty($message)) {
            $base_url = admin_url('plugins.php?page=' . DNEXT_ESSENTIAL_PLUGIN_LICENSE_PAGE);
            $redirect = add_query_arg(array('sl_activation' => 'false', 'message' => urlencode($message)), $base_url);

            wp_redirect($redirect);
            exit();
        }

        // $license_data->license will be either "valid" or "invalid"

        update_option('dnext_essential_license_status', $license_data->license);

changed to

PHP:
update_option('dnext_essential_license_status', 'valid');

Unless this adds any functionality to the untouched version (which I don't think it does) then I am not happy with @starliner starting a resource for it. After all he will have no access to updates.

I'm the one with the purchased licence and see no difference in functionality with or without the licence key apart from updates.
 
  • Like
Reactions: ayyaz
Unless this adds any functionality to the untouched version (which I don't think it does) then I am not happy with @starliner starting a resource for it. After all he will have no access to updates.

I'm the one with the purchased licence and see no difference in functionality with or without the licence key apart from updates.
dont worry bro maybe someone share it latest update in future
lets see :D
 
  • Like
  • Angry
Reactions: ayyaz and Medw1311
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock