| Server IP : 185.252.147.100 / Your IP : 216.73.217.33 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/html/east-point.site/public/wp-content/plugins/tools4wp/addons/ |
Upload File : |
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// License for Breakdance
$options = get_option('tools4wp_options');
if (isset($options['breakdance']) && $options['breakdance'] == 1) {
$validity_info = json_decode(get_option('breakdance_license_key_validity_info'), true);
if($validity_info) {
$validity_info['license_key'] = str_replace('"', '', get_option('breakdance_license_key'));
$validity_info['intended_subscription_mode'] = 'pro';
// $validity_info['edd_item_id'] = '14';
$validity_info['edd_key_info']['item_name'] = 'Breakdance Pro';
// $validity_info['edd_key_info']['expires'] = 'lifetime';
// $validity_info['edd_key_info']['license'] = 'valid';
// $validity_info['edd_key_info']['item_id'] = '14';
// $validity_info['checked_at'] = time() - (60 * 60);
update_option('breakdance_license_key_validity_info', json_encode($validity_info));
} else {
$validity_info = array(
'intended_subscription_mode' => 'pro',
'edd_item_id' => 14,
'license_key' => 'ILoveBabiato',
'edd_key_info' => array(
'success' => true,
'license' => 'valid',
'item_id' => 14,
'item_name' => 'Breakdance Pro',
'checksum' => bin2hex(random_bytes( 16 )),
'expires' => 'lifetime',
'payment_id' => bin2hex(random_bytes( 2 )),
'customer_name' => 'Tools4WP',
'customer_email' => 'breakdance@tools4wp.com',
'license_limit' => 0,
'site_count' => 1,
'activations_left' => 'unlimited',
'price_id' => false,
),
'checked_at' => time() - (60 * 60),
);
update_option('breakdance_license_key_validity_info', json_encode($validity_info));
}
}
?>