Edit File by line
/home/barbar84/www/wp-conte.../plugins/minioran.../views
File: dashboard.php
<?php
[0] Fix | Delete
global $MoMmpUtility,$mmp_dirName;
[1] Fix | Delete
include_once $mmp_dirName . 'views'.DIRECTORY_SEPARATOR.'navbar.php';
[2] Fix | Delete
add_action('admin_footer','mo_mmp_dashboard_switch');
[3] Fix | Delete
$toggle = get_site_option("mo_mmp_toggle");
[4] Fix | Delete
$two_fa_on= get_site_option("mo_mmp_switch_2fa")?"checked":"";
[5] Fix | Delete
$all_on= get_site_option("mo_mmp_switch_all")?"checked":"";
[6] Fix | Delete
$waf_on= get_site_option("mo_mmp_switch_waf")?"checked":"";
[7] Fix | Delete
$login_spam_on= get_site_option("mo_mmp_switch_loginspam")?"checked":"";
[8] Fix | Delete
$backup_on= get_site_option("mo_mmp_switch_backup")?"checked":"";
[9] Fix | Delete
$malware_on= get_site_option("mo_mmp_switch_malware")?"checked":"";
[10] Fix | Delete
$adv_block_on= get_site_option("mo_mmp_switch_adv_block")?"checked":"";
[11] Fix | Delete
$report_on= get_site_option("mo_mmp_switch_reports")?"checked":"";
[12] Fix | Delete
$notif_on= get_site_option("mo_mmp_switch_notif")?"checked":"";
[13] Fix | Delete
echo '<div id="mo_switch_message" style=" padding:8px"></div>';
[14] Fix | Delete
echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
[15] Fix | Delete
<div class="mo_wpns_divided_layout">
[16] Fix | Delete
[17] Fix | Delete
<div class="mo_wpns_dashboard_layout">
[18] Fix | Delete
<div class ="mo_wpns_inside_dashboard_layout">Infected Files<p class =" mo_wpns_dashboard_text" >'.esc_attr($total_malicious).'</p></div>
[19] Fix | Delete
<div class ="mo_wpns_inside_dashboard_layout ">Failed Login<p class =" mo_wpns_dashboard_text" >'.esc_attr($wpns_attacks_blocked).'</p></div>
[20] Fix | Delete
<div class ="mo_wpns_inside_dashboard_layout">Attacks Blocked <p class =" mo_wpns_dashboard_text">'.esc_attr($totalAttacks).'</p></div>
[21] Fix | Delete
<div class ="mo_wpns_inside_dashboard_layout">Blocked IPs<p class =" mo_wpns_dashboard_text">'.esc_attr($wpns_count_ips_blocked).'</p></div>
[22] Fix | Delete
<div class ="mo_wpns_inside_dashboard_layout">White-listed IPs<p class =" mo_wpns_dashboard_text">'.esc_attr($wpns_count_ips_whitelisted).'</p></div>
[23] Fix | Delete
</div>
[24] Fix | Delete
<div class="mo_wpns_small_layout_container">
[25] Fix | Delete
<div class="mo_wpns_small_layout">
[26] Fix | Delete
<form name="mmp_tab_malware" id="mmp_tab_malware" method="post">
[27] Fix | Delete
<h3><span class="dashicons dashicons-search"></span> Malware Scan';
[28] Fix | Delete
if($toggle){
[29] Fix | Delete
echo ' <label class="mo_wpns_switch" style="float: right">
[30] Fix | Delete
<input type="hidden" name="option" value="tab_malware_switch"/>
[31] Fix | Delete
<input type=checkbox id="switch_malware" name="switch_val" value="1" ' .esc_attr($malware_on). ' />
[32] Fix | Delete
<span class="mo_wpns_slider mo_wpns_round"></span>
[33] Fix | Delete
</label>';
[34] Fix | Delete
}
[35] Fix | Delete
else{
[36] Fix | Delete
echo ' <b style="color:green;">(Enabled)</b>';
[37] Fix | Delete
}
[38] Fix | Delete
echo ' </h3>
[39] Fix | Delete
</form>
[40] Fix | Delete
A malware scanner / detector or virus scanner is a <b>software that detects the malware</b> into the system. It detects different kinds of malware and categories based on the <b>strength of vulnerability or harmfulness.</b> <br>
[41] Fix | Delete
</div>
[42] Fix | Delete
[43] Fix | Delete
<div class="mo_wpns_small_layout">
[44] Fix | Delete
<form name="mmp_tab_waf" id="mmp_tab_waf" method="post">
[45] Fix | Delete
<h3><span class="dashicons dashicons-shield"></span> Web Application Firewall (WAF)
[46] Fix | Delete
<label class="mo_wpns_switch" style="float: right">
[47] Fix | Delete
<input type="hidden" name="option" value="tab_waf_switch"/>
[48] Fix | Delete
</label>
[49] Fix | Delete
</h3>
[50] Fix | Delete
</form>
[51] Fix | Delete
Web Application Firewall protects your website from several website attacks such as <b>SQL Injection(SQLI), Cross Site Scripting(XSS), Remote File Inclusion</b> and many more cyber attacks.It also protects your website from <b>critical attacks</b> such as <b>Dos and DDos attacks.</b><br>
[52] Fix | Delete
</div>
[53] Fix | Delete
[54] Fix | Delete
<div class="mo_wpns_small_layout">
[55] Fix | Delete
<form name="mmp_tab_login" id="mmp_tab_login" method="post">
[56] Fix | Delete
<h3><span class="dashicons dashicons-admin-users"></span> Login and Spam
[57] Fix | Delete
<label class="mo_wpns_switch" style="float: right">
[58] Fix | Delete
<input type="hidden" name="option" value="tab_login_switch"/>
[59] Fix | Delete
</label>
[60] Fix | Delete
</h3>
[61] Fix | Delete
</form>
[62] Fix | Delete
Firewall protects the whole website.
[63] Fix | Delete
If you just want to prevent your login page from <b> password guessing attacks</b> by humans or by bots.
[64] Fix | Delete
We have features such as <b> Brute Force,Enforcing Strong Password,Custom Login Page URL,Recaptcha </b> etc. <br>
[65] Fix | Delete
</div>
[66] Fix | Delete
[67] Fix | Delete
<div class="mo_wpns_small_layout">
[68] Fix | Delete
<form name="mmp_tab_backup" id="mmp_tab_backup" method="post">
[69] Fix | Delete
<h3><span class="dashicons dashicons-database-export"></span> Encrypted Backup
[70] Fix | Delete
<label class="mo_wpns_switch" style="float: right">
[71] Fix | Delete
<input type="hidden" name="option" value="tab_backup_switch"/>
[72] Fix | Delete
</label>
[73] Fix | Delete
</h3>
[74] Fix | Delete
</form>
[75] Fix | Delete
Creating regular backups for your website is essential. By Creating backup you can <b>restore your website back to normal</b> within a few minutes. miniOrange creates <b>database and file Backup</b> which is stored locally in your system.
[76] Fix | Delete
</div>
[77] Fix | Delete
[78] Fix | Delete
<div class="mo_wpns_small_layout">
[79] Fix | Delete
<form name="mmp_tab_adv_block" id="mmp_tab_adv_block" method="post">
[80] Fix | Delete
<h3><span class="dashicons dashicons-hidden"></span> Advanced Blocking
[81] Fix | Delete
<label class="mo_wpns_switch" style="float: right">
[82] Fix | Delete
<input type="hidden" name="option" value="tab_block_switch"/>
[83] Fix | Delete
</label>
[84] Fix | Delete
</h3>
[85] Fix | Delete
</form>
[86] Fix | Delete
In Advanced blocking we have features like <b> Country Blocking, IP range Blocking , Browser blocking </b> and other options you can set up specifically according to your needs
[87] Fix | Delete
</div>
[88] Fix | Delete
[89] Fix | Delete
<div class="mo_wpns_small_layout">
[90] Fix | Delete
<form name="mmp_tab_report" id="mmp_tab_report" method="post">
[91] Fix | Delete
<h3><span class="dashicons dashicons-media-spreadsheet"></span> Reports
[92] Fix | Delete
<label class="mo_wpns_switch" style="float: right">
[93] Fix | Delete
<input type="hidden" name="option" value="tab_report_switch"/>
[94] Fix | Delete
</label>
[95] Fix | Delete
</h3>
[96] Fix | Delete
</form>
[97] Fix | Delete
Track users <b>login activity</b> on your website. You can also <b>track 404 error</b> so that if anyone tries to access it too many times you can take action.
[98] Fix | Delete
</div>
[99] Fix | Delete
[100] Fix | Delete
</div>
[101] Fix | Delete
</div> ';
[102] Fix | Delete
[103] Fix | Delete
function mo_mmp_dashboard_switch(){
[104] Fix | Delete
if ( ('admin.php' != basename( $_SERVER['PHP_SELF'] )) || (sanitize_text_field($_GET['page'] )!= 'mo_mmp_dashboard') ) {
[105] Fix | Delete
return;
[106] Fix | Delete
}
[107] Fix | Delete
?>
[108] Fix | Delete
[109] Fix | Delete
<?php
[110] Fix | Delete
}
[111] Fix | Delete
?>
[112] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function