| 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;
}
// Apply Auto Empire Builder license
$options = get_option('tools4wp_options');
if (isset($options['empire_builder_auto']) == 1 ) {
add_action('upgrader_process_complete', 'empire_builder_auto_update', 10, 2);
function empire_builder_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'empire_builder/empire_builder.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['empire_builder'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
$options = get_option('tools4wp_options');
if (isset($options['empire_builder']) == 1) {
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['empire_builder'] );
update_option( 'tools4wp_options', $tools4wp_options );
update_option('emb_activate_email', 'tools4wp@gmail.com');
$old_content = get_option('tools4wp_updates')['empire_builder_old'];
$new_content = get_option('tools4wp_updates')['empire_builder_new'];
// Open the source file and get its data
$data = file_get_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['empire_builder_file']);
// Perform the search and replace operation
$data = str_replace($old_content, $new_content, $data);
// Save the modified data to the destination file
file_put_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['empire_builder_file'], $data);
}
// Hub Site Maker
$options = get_option('tools4wp_options');
if (isset($options['hub_site_maker']) == 1) {
// $tools4wp_options = get_option( 'tools4wp_options' );
// unset( $tools4wp_options['hub_site_maker'] );
// update_option( 'tools4wp_options', $tools4wp_options );
update_option('hsm_activate_email', 'tools4wp@gmail.com');
// delete_option('hsm_activate_email');
}
// Apply Auto Associate Goliath license
$options = get_option('tools4wp_options');
if (isset($options['associate_goliath_auto']) == 1 ) {
add_action('upgrader_process_complete', 'associate_goliath_auto_update', 10, 2);
function associate_goliath_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'associate_goliath/associate_goliath.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['associate_goliath'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
// Associate Goliath
$options = get_option('tools4wp_options');
if (isset($options['associate_goliath']) == 1) {
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['associate_goliath'] );
update_option( 'tools4wp_options', $tools4wp_options );
update_option('asg_activate_email', 'tools4wp@gmail.com');
$old_content = get_option('tools4wp_updates')['associate_goliath_old'];
$new_content = get_option('tools4wp_updates')['associate_goliath_new'];
// Open the source file and get its data
$data = file_get_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['associate_goliath_file']);
// Perform the search and replace operation
$data = str_replace($old_content, $new_content, $data);
// Save the modified data to the destination file
file_put_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['associate_goliath_file'], $data);
}
// Apply Auto Countdown Dynamite license
$options = get_option('tools4wp_options');
if (isset($options['countdown_dynamite_auto']) == 1 ) {
add_action('upgrader_process_complete', 'countdown_dynamite_auto_update', 10, 2);
function countdown_dynamite_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'countdown_dynamite/countdown_dynamite.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['countdown_dynamite'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
// Countdown Dynamite
$options = get_option('tools4wp_options');
if (isset($options['countdown_dynamite']) == 1) {
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['countdown_dynamite'] );
update_option( 'tools4wp_options', $tools4wp_options );
update_option('ucd_activate_email', 'tools4wp@gmail.com');
$old_content = get_option('tools4wp_updates')['countdown_dynamite_old'];
$new_content = get_option('tools4wp_updates')['countdown_dynamite_new'];
// Open the source file and get its data
$data = file_get_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['countdown_dynamite_file']);
// Perform the search and replace operation
$data = str_replace($old_content, $new_content, $data);
// Save the modified data to the destination file
file_put_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['countdown_dynamite_file'], $data);
}
// Apply Auto Traffic Goliath license
$options = get_option('tools4wp_options');
if (isset($options['traffic_goliath_pro_auto']) == 1 ) {
add_action('upgrader_process_complete', 'traffic_goliath_pro_auto_update', 10, 2);
function traffic_goliath_pro_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'traffic-goliath-pro/traffic-goliath-pro.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['traffic_goliath_pro'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
// Traffic Goliath
$options = get_option('tools4wp_options');
if (isset($options['traffic_goliath_pro']) == 1) {
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['traffic_goliath_pro'] );
update_option( 'tools4wp_options', $tools4wp_options );
update_option('tg_activate_email', 'tools4wp@gmail.com');
// delete_option('tg_activate_email');
}
// Apply Auto Shorts Profit Engine PRO license
$options = get_option('tools4wp_options');
if (isset($options['shorts_profit_engine_pro_auto']) == 1 ) {
add_action('upgrader_process_complete', 'shorts_profit_engine_pro_auto_update', 10, 2);
function shorts_profit_engine_pro_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'shorts-profit-engine-pro/shorts-profit-engine.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['shorts_profit_engine_pro'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
// Shorts Profit Engine PRO
$options = get_option('tools4wp_options');
if (isset($options['shorts_profit_engine_pro']) == 1) {
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['shorts_profit_engine_pro'] );
update_option( 'tools4wp_options', $tools4wp_options );
// update_option('spe_activate_email', 'tools4wp@gmail.com');
// delete_option('spe_activate_email');
// delete_option('spe_activate_email-shorts-profit-engine-pro');
update_option('spe_activate_email-shorts-profit-engine-pro', 'tools4wp@gmail.com');
// $old_content = get_option('tools4wp_updates')['shorts_profit_engine_pro_old'];
// $new_content = get_option('tools4wp_updates')['shorts_profit_engine_pro_new'];
// // Open the source file and get its data
// $data = file_get_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['shorts_profit_engine_pro_file']);
// // Perform the search and replace operation
// $data = str_replace($old_content, $new_content, $data);
// // Save the modified data to the destination file
// file_put_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['shorts_profit_engine_pro_file'], $data);
}
// Apply Auto Video Profit Engine PRO license
$options = get_option('tools4wp_options');
if (isset($options['video_profit_engine_pro_auto']) == 1 ) {
add_action('upgrader_process_complete', 'video_profit_engine_pro_auto_update', 10, 2);
function video_profit_engine_pro_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'video-profit-engine/video-profit-engine.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['video_profit_engine_pro'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
// Video Profit Engine PRO
$options = get_option('tools4wp_options');
if (isset($options['video_profit_engine_pro']) == 1) {
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['video_profit_engine_pro'] );
update_option( 'tools4wp_options', $tools4wp_options );
// update_option('vpe_activate_email', 'tools4wp@gmail.com');
// delete_option('vpe_activate_email');
// delete_option('vpe_activate_email-video-profit-engine');
update_option('vpe_activate_email-video-profit-engine', 'tools4wp@gmail.com');
$old_content = get_option('tools4wp_updates')['video_profit_engine_pro_old'];
$new_content = get_option('tools4wp_updates')['video_profit_engine_pro_new'];
// Open the source file and get its data
$data = file_get_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['video_profit_engine_pro_file']);
// Perform the search and replace operation
$data = str_replace($old_content, $new_content, $data);
// Save the modified data to the destination file
file_put_contents(WP_CONTENT_DIR . '/plugins/' . get_option('tools4wp_updates')['video_profit_engine_pro_file'], $data);
}