| 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 license
$options = get_option('tools4wp_options');
if (isset($options['pinegrow_auto']) == 1 ) {
add_action('upgrader_process_complete', 'pinegrow_auto_update', 10, 2);
function pinegrow_auto_update($upgrader_object, $options) {
if ($options['action'] == 'update' && $options['type'] == 'plugin') {
foreach($options['plugins'] as $each_plugin) {
if ($each_plugin == 'pinegrow/pinegrow.php') {
$tools4wp_options = get_option( 'tools4wp_options' );
$tools4wp_options['pinegrow'] = true;
update_option( 'tools4wp_options', $tools4wp_options );
}
}
}
}
}
// Activate Pinegrow License
$options = get_option('tools4wp_options');
if (isset($options['pinegrow']) && $options['pinegrow'] == 1) {
$returnValue = array (
'email' => '5nf6@exa0*3e.c60',
'serial' => 'ABCDE',
'status' => 'OK',
'sub_status' => 'active',
'product' => 'WP_PLUGIN_MULTIPLE',
'activation_id' => '1',
'valid_date' => '32472129031',
);
update_option( 'pinegrow-license', $returnValue );
$tools4wp_options = get_option( 'tools4wp_options' );
unset( $tools4wp_options['pinegrow'] );
update_option( 'tools4wp_options', $tools4wp_options );
}