����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
defined('ABSPATH') or die();
/**
* If a plugin is deactivated, add to deactivated list.
* @param string $field_id
* @param mixed $new_value
* @param mixed $prev_value
* @param string $type
*
* @return void
*/
function rsssl_handle_integration_deactivation($field_id, $new_value, $prev_value, $type){
if (!rsssl_user_can_manage()) {
return;
}
if ($new_value !== $prev_value && $new_value === 0 ){
//check if this field id exists in the list of plugins
global $rsssl_integrations_list;
foreach ( $rsssl_integrations_list as $plugin => $plugin_data ) {
if (
isset($plugin_data['has_deactivation']) &&
$plugin_data['has_deactivation'] &&
isset($plugin_data['option_id']) &&
$plugin_data['option_id'] === $field_id
) {
//add to deactivated list
$current_list = get_option('rsssl_deactivate_list', []);
if ( !in_array($plugin, $current_list)) {
$current_list[] = $plugin;
update_option('rsssl_deactivate_list', $current_list, false);
}
}
}
}
}
add_action( "rsssl_after_save_field", "rsssl_handle_integration_deactivation", 10, 4 );
/**
* Remove a plugin from the deactivation list if deactivation procedure was completed
* @param string $plugin
*
* @return void
*/
function rsssl_remove_from_deactivation_list($plugin){
if (!rsssl_user_can_manage()) {
return;
}
$deactivate_list = get_option('rsssl_deactivate_list', []);
if ( in_array($plugin, $deactivate_list )) {
$index = array_search($plugin, $deactivate_list);
unset($deactivate_list[$index]);
update_option('rsssl_deactivate_list', $deactivate_list, false );
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| server | Folder | 0755 |
|
|
| tests | Folder | 0755 |
|
|
| wordpress | Folder | 0755 |
|
|
| cron.php | File | 2.24 KB | 0644 |
|
| deactivate-integration.php | File | 1.57 KB | 0644 |
|
| firewall-manager.php | File | 6.19 KB | 0644 |
|
| functions.php | File | 13.71 KB | 0644 |
|
| index.php | File | 31 B | 0644 |
|
| integrations.php | File | 5.36 KB | 0644 |
|
| notices.php | File | 9.02 KB | 0644 |
|
| security.php | File | 1.43 KB | 0644 |
|
| sync-settings.php | File | 2.62 KB | 0644 |
|
| tests.php | File | 12.13 KB | 0644 |
|