• 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"

(REQ) any solution? help

nibirutomas

Member
May 22, 2019
69
18
8
Hello any solution how to hack activation plugin called: woocomerce zasilkovna.

here is file with activation informations:

Thank you for any ideas

<?php


add_action( 'admin_init', 'check_woo_zasilkovna_licence' );
add_action( 'init', 'check_woo_zasilkovna_licence' );

/**
*
* Check if licence is active
*
*/
function check_woo_zasilkovna_licence(){
$licence_status = get_option('woo-zasilkovna-licence');
if(!empty($licence_status)){
if($licence_status=='active'){
global $lic;
$lic = 'active';
}
}
}

/**
*
* Control licence
*
*/
function woo_zasilkovna_control_licence($licence){

$ip = $_SERVER['REMOTE_ADDR'];

$api_params = array(
'licence' => $licence,
'ip' => $ip,
'url' => home_url()
);

// Call the custom API.
$response = wp_remote_post( 'http://licence.toret.cz/wp-content/plugins/plc/control.php', array( 'timeout' => 35, 'sslverify' => false, 'body' => $api_params ) );

// make sure the response came back okay
if ( is_wp_error( $response ) ){
return false;
}

if($response['body']=='ok'){
update_option('woo-zasilkovna-licence','active');
update_option('woo-zasilkovna-info','Vaše licence byla aktivována');
update_option('woo-zasilkovna-licence-key',$licence);
}elseif($response['body']=='fail'){
update_option('woo-zasilkovna-info','Chyba ověřování, kontaktujte prosím podporu');
}elseif($response['body']=='double'){
update_option('woo-zasilkovna-info','Licenční klíč byl již použit');
}

}
 
Edited: why would someone revive a 2019 thread?
 
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