Fix system info false positive virus scan results

This commit is contained in:
Champ Camba
2017-05-04 20:57:39 +08:00
parent 516a963f7c
commit ac8a3357b2
2 changed files with 18 additions and 18 deletions
@@ -1,6 +1,6 @@
<?php
class UM_ADDON_system_info {
class UM_ADDON_install_info {
function __construct() {
@@ -16,8 +16,8 @@ class UM_ADDON_system_info {
function admin_menu() {
global $ultimatemember;
$this->addon = $ultimatemember->addons['system_info'];
add_submenu_page('ultimatemember', "System Info","System Info", 'manage_options', 'um_system_info', array(&$this, 'content') );
$this->addon = $ultimatemember->addons['install_info'];
add_submenu_page('ultimatemember', "System Info","System Info", 'manage_options', 'um_install_info', array(&$this, 'content') );
}
@@ -26,14 +26,14 @@ class UM_ADDON_system_info {
switch ( $hook ) {
case 'download_system_info':
case 'download_install_info':
nocache_headers();
header( "Content-type: text/plain" );
header( 'Content-Disposition: attachment; filename="ultimatemember-system-info.txt"' );
header( 'Content-Disposition: attachment; filename="ultimatemember-install-info.txt"' );
echo wp_strip_all_tags( $_POST['um-sysinfo'] );
echo wp_strip_all_tags( $_POST['um-install-info'] );
exit;
break;
@@ -81,13 +81,13 @@ class UM_ADDON_system_info {
echo $this->content;
} else { ?>
<form action="<?php echo esc_url( admin_url( 'admin.php?page=um_system_info' ) ); ?>" method="post" dir="ltr">
<textarea style="width:100%; height:400px;" readonly="readonly" onclick="this.focus();this.select()" id="system-info-textarea" name="um-sysinfo" title="<?php _e( 'To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'edd' ); ?>">
### Begin System Info ###
<form action="<?php echo esc_url( admin_url( 'admin.php?page=um_install_info' ) ); ?>" method="post" dir="ltr">
<textarea style="width:100%; height:400px;" readonly="readonly" onclick="this.focus();this.select()" id="install-info-textarea" name="um-install-info" title="<?php _e( 'To copy the Install info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'edd' ); ?>">
### Begin Install Info ###
## Please include this information when posting support requests ##
<?php do_action( 'um_system_info_before' ); ?>
<?php do_action( 'um_install_info_before' ); ?>
--- Site Info ---
@@ -170,7 +170,7 @@ Exclude CSS/JS on Home: <?php if( um_get_option( 'js_css_exlcude_home' ) == 1
--- UM Pages Configuration ---
<?php do_action("um_system_info_before_page_config") ?>
<?php do_action("um_install_info_before_page_config") ?>
User: <?php echo get_permalink( um_get_option('core_user') ) . "\n"; ?>
Account: <?php echo get_permalink( um_get_option('core_account') ) . "\n"; ?>
Members: <?php echo get_permalink( um_get_option('core_members') ) . "\n"; ?>
@@ -178,7 +178,7 @@ Register: <?php echo get_permalink( um_get_option('core_register') ) . "\n"
Login: <?php echo get_permalink( um_get_option('core_login') ) . "\n"; ?>
Logout: <?php echo get_permalink( um_get_option('core_logout') ) . "\n"; ?>
Password Reset: <?php echo get_permalink( um_get_option('core_password-reset') ) . "\n"; ?>
<?php do_action("um_system_info_after_page_config") ?>
<?php do_action("um_install_info_after_page_config") ?>
-- UM Users Configuration ---
@@ -376,16 +376,16 @@ foreach ( $plugins as $plugin_path ) {
endif;
?>
<?php
do_action( 'um_system_info_after' );
do_action( 'um_install_info_after' );
?>
### End System Info ###</textarea>
### End Install Info ###</textarea>
<p class="submit">
<input type="hidden" name="um-addon-hook" value="download_system_info" />
<?php submit_button( 'Download System Info File', 'primary', 'download_system_info', false ); ?>
<input type="hidden" name="um-addon-hook" value="download_install_info" />
<?php submit_button( 'Download Install Info File', 'primary', 'download_install_info', false ); ?>
</p>
</form>
@@ -416,4 +416,4 @@ do_action( 'um_system_info_after' );
}
$UM_ADDON_system_info = new UM_ADDON_system_info();
$UM_ADDON_install_info = new UM_ADDON_install_info();
+1 -1
View File
@@ -63,7 +63,7 @@ class UM_API {
__('This add-on enables you to generate dummies.', 'ultimatemember'),
);
$this->addons['system_info'] = array(
$this->addons['install_info'] = array(
__('System Info', 'ultimatemember'),
__('This add-on enables you to download system information file.', 'ultimatemember'),
);