. */ if (!function_exists('is_plugin_active')) { include_once ABSPATH . 'wp-admin/includes/plugin.php'; } if (!class_exists('EzKillLite')) { class EzKillLite { var $lite, $pro, $killer; var $liteName, $proName; static $adminNotice = ''; static $killed = false; function __construct($lite, $pro = '', $killer = '') { $this->lite = $lite; $this->pro = $pro; $this->killer = $killer; } function init() { include_once ABSPATH . 'wp-admin/includes/plugin.php'; deactivate_plugins($this->lite); } function admin_footer_kill() { printf(''); } function admin_footer_deny() { printf(''); } function kill() { $killed = false; $proActive = is_plugin_active($this->pro); $liteActive = is_plugin_active($this->lite); if ($proActive && $liteActive) { add_action('init', array($this, 'init')); $plgPath = ABSPATH . PLUGINDIR . "/$this->lite"; $liteData = get_plugin_data($plgPath); $plgPath = ABSPATH . PLUGINDIR . "/$this->pro"; $proData = get_plugin_data($plgPath); $this->liteName = $liteData['Name']; $this->proName = $proData['Name']; self::$adminNotice .= sprintf('
');
self::$adminNotice .= sprintf(__("%s cannot be active now. Deactivating it so that you can use the Pro version %s If you really want to use the %s version, please deactivate the %s version first.", "easy-common"), "{$this->liteName}", "{$this->proName}.
", "Lite", "Pro");
self::$adminNotice .= sprintf("
" . __("Please reload this page to remove stale links.", 'easy-common') . " ");
self::$adminNotice .= sprintf('