gmb_tools_sysinfo_download

Generates a System Info download file.

Description

gmb_tools_sysinfo_download(); 

Usage

  1. if ( !function_exists( 'gmb_tools_sysinfo_download' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'maps-builder/includes/admin/system-info.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gmb_tools_sysinfo_download(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/includes/admin/system-info.php  
  1. function gmb_tools_sysinfo_download() { 
  2.  
  3. if ( ! current_user_can( 'install_plugins' ) ) { 
  4. return; 
  5.  
  6. nocache_headers(); 
  7.  
  8. header( 'Content-Type: text/plain' ); 
  9. header( 'Content-Disposition: attachment; filename="gmb-system-info.txt"' ); 
  10.  
  11. echo wp_strip_all_tags( $_POST['gmb-sysinfo'] ); 
  12. gmb_die(); 
/vendor/wordimpress/maps-builder-core/includes/admin/system-info.php  
  1. function gmb_tools_sysinfo_download() { 
  2.  
  3. if ( ! current_user_can( 'install_plugins' ) ) { 
  4. return; 
  5.  
  6. nocache_headers(); 
  7.  
  8. header( 'Content-Type: text/plain' ); 
  9. header( 'Content-Disposition: attachment; filename="gmb-system-info.txt"' ); 
  10.  
  11. echo wp_strip_all_tags( $_POST['gmb-sysinfo'] ); 
  12. gmb_die();