HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/scientificreligi/www/wp-content/plugins/elfsight-social-icons-cc/uninstall.php
<?php

if (!defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN')) exit();

define('PLUGIN_SLUG', 'elfsight-social-icons');

$deleted_options = array(
	'purchase_code', 'activated', 'supported_until', 'other_products_hidden', 'latest_version', 'last_check_datetime'
);

function get_option_name($name) {
	return str_replace('-', '_', PLUGIN_SLUG) . '_' . $name;
}

if (get_option(get_option_name('activated')) || get_option(get_option_name('purchase_code'))) {
	$ch = curl_init();

	curl_setopt($ch, CURLOPT_URL, 'https://a.elfsight.com/updates/v1/?action=deactivate&slug=' . PLUGIN_SLUG . '-cc&host=' . parse_url(site_url(), PHP_URL_HOST) . '&version=1.7.1&purchase_code=' . get_option(get_option_name('purchase_code')));
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

	curl_exec($ch);
}

foreach ($deleted_options as $option) {
	delete_option(get_option_name($option));
}

?>