addon = $ultimatemember->addons['system_info']; add_submenu_page('ultimatemember', "System Info","System Info", 'manage_options', 'um_system_info', array(&$this, 'content') ); } function um_admin_addon_hook( $hook ) { global $ultimatemember; switch ( $hook ) { case 'download_system_info': nocache_headers(); header( "Content-type: text/plain" ); header( 'Content-Disposition: attachment; filename="ultimatemember-system-info.txt"' ); echo wp_strip_all_tags( $_POST['um-sysinfo'] ); exit; break; default: break; } } function admin_init() { if ( isset( $_REQUEST['um-addon-hook'] ) ) { $hook = $_REQUEST['um-addon-hook']; do_action("um_admin_addon_hook", $hook ); } } function content() { global $wpdb, $ultimatemember; if( !class_exists( 'Browser' ) ) require_once um_path . 'core/lib/browser.php'; // Detect browser $browser = new Browser(); // Get theme info $theme_data = wp_get_theme(); $theme = $theme_data->Name . ' ' . $theme_data->Version; // Identify Hosting Provider $host = um_get_host(); ?>