Version Description
- Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus and Firewall : Fix Scan.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Google Authenticator – WordPress Two Factor Authentication (2FA) |
Version | 5.3.18 |
Comparing to | |
See all releases |
Code changes from version 5.3.17 to 5.3.18
- controllers/malware_scan_ajax.php +8 -1
- handler/malware_scanner.php +6 -0
- miniorange_2_factor_settings.php +2 -2
- readme.txt +7 -1
- views/scan_summary_view.php +27 -3
controllers/malware_scan_ajax.php
CHANGED
@@ -83,8 +83,15 @@ class Mo_wpns_scan_malware
|
|
83 |
}
|
84 |
|
85 |
public function mo_wpns_start_malware_scan($POSTED){
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
if(get_option('mo_wpns_malware_scan_in_progress') == "IN PROGRESS"){
|
87 |
wp_send_json('scanning_already');
|
|
|
88 |
}
|
89 |
global $moWpnsUtility, $dirName;
|
90 |
include_once $dirName. DIRECTORY_SEPARATOR.'handler'.DIRECTORY_SEPARATOR.'malware_scanner.php';
|
@@ -201,7 +208,7 @@ class Mo_wpns_scan_malware
|
|
201 |
function mo_wpns_stop_scan(){
|
202 |
|
203 |
global $wpdb;
|
204 |
-
|
205 |
$query="UPDATE `".$wpdb->base_prefix."options` SET `option_value` = '1' WHERE `option_name` = 'mo_stop_scan'";
|
206 |
$test= $wpdb->get_results($query);
|
207 |
$scan_in_progress=true;
|
83 |
}
|
84 |
|
85 |
public function mo_wpns_start_malware_scan($POSTED){
|
86 |
+
$scan_stop_status=get_option('mo_stop_scan');
|
87 |
+
|
88 |
+
if($scan_stop_status=="1"){
|
89 |
+
wp_send_json('scan_terminating');
|
90 |
+
exit;
|
91 |
+
}
|
92 |
if(get_option('mo_wpns_malware_scan_in_progress') == "IN PROGRESS"){
|
93 |
wp_send_json('scanning_already');
|
94 |
+
|
95 |
}
|
96 |
global $moWpnsUtility, $dirName;
|
97 |
include_once $dirName. DIRECTORY_SEPARATOR.'handler'.DIRECTORY_SEPARATOR.'malware_scanner.php';
|
208 |
function mo_wpns_stop_scan(){
|
209 |
|
210 |
global $wpdb;
|
211 |
+
update_option('mo_wpns_malware_scan_in_progress','COMPLETE');
|
212 |
$query="UPDATE `".$wpdb->base_prefix."options` SET `option_value` = '1' WHERE `option_name` = 'mo_stop_scan'";
|
213 |
$test= $wpdb->get_results($query);
|
214 |
$scan_in_progress=true;
|
handler/malware_scanner.php
CHANGED
@@ -7,7 +7,12 @@ class Mo_wpns_Scan_Handler{
|
|
7 |
|
8 |
}
|
9 |
function mo2f_scan_all_files($scan_config){
|
|
|
10 |
|
|
|
|
|
|
|
|
|
11 |
update_option('mo_stop_scan','0');
|
12 |
ini_set('memory_limit', '-1');
|
13 |
ini_set('max_execution_time', 0);
|
@@ -286,6 +291,7 @@ class Mo_wpns_Scan_Handler{
|
|
286 |
$source_file_path = $value . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
|
287 |
$arr = array();
|
288 |
global $wpdb;
|
|
|
289 |
if($iterat>100){
|
290 |
$query="SELECT `option_value` from `".$wpdb->base_prefix."options` WHERE `option_name` = 'mo_stop_scan'";
|
291 |
$stop_scan= $wpdb->get_results($query);
|
7 |
|
8 |
}
|
9 |
function mo2f_scan_all_files($scan_config){
|
10 |
+
$scan_stop_status=get_option('mo_stop_scan');
|
11 |
|
12 |
+
if($scan_stop_status=="1"){
|
13 |
+
wp_send_json('scan_terminating');
|
14 |
+
exit;
|
15 |
+
}
|
16 |
update_option('mo_stop_scan','0');
|
17 |
ini_set('memory_limit', '-1');
|
18 |
ini_set('max_execution_time', 0);
|
291 |
$source_file_path = $value . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
|
292 |
$arr = array();
|
293 |
global $wpdb;
|
294 |
+
|
295 |
if($iterat>100){
|
296 |
$query="SELECT `option_value` from `".$wpdb->base_prefix."options` WHERE `option_name` = 'mo_stop_scan'";
|
297 |
$stop_scan= $wpdb->get_results($query);
|
miniorange_2_factor_settings.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: miniOrange 2 Factor Authentication
|
4 |
* Plugin URI: https://miniorange.com
|
5 |
* Description: This plugin provides various two-factor authentication methods as an additional layer of security after the default wordpress login. We Support Google/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
|
6 |
-
* Version: 5.3.
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://miniorange.com
|
9 |
* License: GPL2
|
10 |
*/
|
11 |
define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
|
12 |
-
define( 'MO2F_VERSION', '5.3.
|
13 |
define( 'MO2F_TEST_MODE', false );
|
14 |
class Miniorange_twoFactor{
|
15 |
|
3 |
* Plugin Name: miniOrange 2 Factor Authentication
|
4 |
* Plugin URI: https://miniorange.com
|
5 |
* Description: This plugin provides various two-factor authentication methods as an additional layer of security after the default wordpress login. We Support Google/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
|
6 |
+
* Version: 5.3.18
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://miniorange.com
|
9 |
* License: GPL2
|
10 |
*/
|
11 |
define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
|
12 |
+
define( 'MO2F_VERSION', '5.3.18' );
|
13 |
define( 'MO2F_TEST_MODE', false );
|
14 |
class Miniorange_twoFactor{
|
15 |
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: https://miniorange.com/
|
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.3.0
|
9 |
-
Stable tag: 5.3.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -272,6 +272,9 @@ miniOrange authentication service has 15+ authentication methods.One time passco
|
|
272 |
|
273 |
== Changelog ==
|
274 |
|
|
|
|
|
|
|
275 |
= 5.3.17 =
|
276 |
* Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus : Improved Stop Scan.
|
277 |
|
@@ -715,6 +718,9 @@ More descriptive setup messages and UI changes.
|
|
715 |
|
716 |
== Upgrade Notice ==
|
717 |
|
|
|
|
|
|
|
718 |
= 5.3.17 =
|
719 |
* Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus : Improved Stop Scan.
|
720 |
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.3.0
|
9 |
+
Stable tag: 5.3.18
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
272 |
|
273 |
== Changelog ==
|
274 |
|
275 |
+
= 5.3.18 =
|
276 |
+
* Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus and Firewall : Fix Scan.
|
277 |
+
|
278 |
= 5.3.17 =
|
279 |
* Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus : Improved Stop Scan.
|
280 |
|
718 |
|
719 |
== Upgrade Notice ==
|
720 |
|
721 |
+
= 5.3.18 =
|
722 |
+
* Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus and Firewall : Fix Scan.
|
723 |
+
|
724 |
= 5.3.17 =
|
725 |
* Google Authenticator-Two Factor Authentication (2FA) : Anti-Virus : Improved Stop Scan.
|
726 |
|
views/scan_summary_view.php
CHANGED
@@ -133,6 +133,7 @@ function mo_wpns_start_scan(){
|
|
133 |
'nonce':jQuery('#wpns_quick_scan_nonce').val()
|
134 |
};
|
135 |
jQuery.post(ajaxurl, data, function(response){
|
|
|
136 |
jQuery('#mo_scan_message').show();
|
137 |
jQuery('#mo_scan_message').empty();
|
138 |
if(response == "scanning_already"){
|
@@ -148,6 +149,14 @@ function mo_wpns_start_scan(){
|
|
148 |
window.scrollTo({ top: 0, behavior: "smooth"});
|
149 |
}else if(response=='aborted'){
|
150 |
jQuery('#mo_scan_message').hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
}else{
|
152 |
jQuery("#mo_scan_message").addClass("notice notice-success is-dismissible");
|
153 |
jQuery("#mo_scan_message").append("Scan has been completed. You can see the results in the Scan Reports tab.");
|
@@ -213,6 +222,13 @@ function mo_wpns_start_scan(){
|
|
213 |
window.scrollTo({ top: 0, behavior: "smooth"});
|
214 |
}else if(response=='aborted'){
|
215 |
jQuery('#mo_scan_message').hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}else{
|
217 |
jQuery("#mo_scan_message").addClass("notice notice-success is-dismissible");
|
218 |
jQuery("#mo_scan_message").append("Scan has been completed. You can see the results in the Scan Reports tab.");
|
@@ -270,6 +286,13 @@ function mo_wpns_start_scan(){
|
|
270 |
window.scrollTo({ top: 0, behavior: "smooth"});
|
271 |
document.getElementById("custom_scan_button").value = "Custom Scan";
|
272 |
document.getElementById('custom_scan_button').style.backgroundColor = '#b0d2cf';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
}else{
|
274 |
if(response=="ERROR"){
|
275 |
jQuery("#mo_scan_message").addClass("notice notice-error is-dismissible");
|
@@ -360,12 +383,13 @@ function mo_wpns_start_scan(){
|
|
360 |
jQuery('#summary_current_scan_text').html(response['scan_files']);
|
361 |
jQuery('#summary_all_infect_text').html(response['total_mal']);
|
362 |
jQuery('#summary_current_infect_text').html(response['mal_files']);
|
363 |
-
|
|
|
|
|
|
|
364 |
document.getElementById('mo_stop_button_div').style.display="none";
|
365 |
document.getElementById('mo_stop_button').style.backgroundColor = '#20b2aa';
|
366 |
jQuery('input[name="mo_stop_button"]').removeAttr('disabled');
|
367 |
-
|
368 |
-
}
|
369 |
clearInterval(progress_bar);
|
370 |
}else{
|
371 |
if(response['total'] == 0 || response['total'] == false){
|
133 |
'nonce':jQuery('#wpns_quick_scan_nonce').val()
|
134 |
};
|
135 |
jQuery.post(ajaxurl, data, function(response){
|
136 |
+
|
137 |
jQuery('#mo_scan_message').show();
|
138 |
jQuery('#mo_scan_message').empty();
|
139 |
if(response == "scanning_already"){
|
149 |
window.scrollTo({ top: 0, behavior: "smooth"});
|
150 |
}else if(response=='aborted'){
|
151 |
jQuery('#mo_scan_message').hide();
|
152 |
+
}else if(response=="scan_terminating"){
|
153 |
+
jQuery("#mo_scan_message").addClass("notice notice-error is-dismissible");
|
154 |
+
jQuery("#mo_scan_message").append("Please wait for some time and try again.");
|
155 |
+
window.scrollTo({ top: 0, behavior: "smooth"});
|
156 |
+
document.getElementById("quick_scan_button").value = "Quick Scan";
|
157 |
+
document.getElementById('quick_scan_button').style.backgroundColor = '#b0d2cf';
|
158 |
+
|
159 |
+
|
160 |
}else{
|
161 |
jQuery("#mo_scan_message").addClass("notice notice-success is-dismissible");
|
162 |
jQuery("#mo_scan_message").append("Scan has been completed. You can see the results in the Scan Reports tab.");
|
222 |
window.scrollTo({ top: 0, behavior: "smooth"});
|
223 |
}else if(response=='aborted'){
|
224 |
jQuery('#mo_scan_message').hide();
|
225 |
+
}if(response=='scan_terminating'){
|
226 |
+
jQuery("#mo_scan_message").addClass("notice notice-error is-dismissible");
|
227 |
+
jQuery("#mo_scan_message").append("Please wait for some time and try again.");
|
228 |
+
window.scrollTo({ top: 0, behavior: "smooth"});
|
229 |
+
document.getElementById("standard_scan_button").value = "Standard Scan";
|
230 |
+
document.getElementById('standard_scan_button').style.backgroundColor = '#b0d2cf';
|
231 |
+
jQuery('#mo_scan_message').hide();
|
232 |
}else{
|
233 |
jQuery("#mo_scan_message").addClass("notice notice-success is-dismissible");
|
234 |
jQuery("#mo_scan_message").append("Scan has been completed. You can see the results in the Scan Reports tab.");
|
286 |
window.scrollTo({ top: 0, behavior: "smooth"});
|
287 |
document.getElementById("custom_scan_button").value = "Custom Scan";
|
288 |
document.getElementById('custom_scan_button').style.backgroundColor = '#b0d2cf';
|
289 |
+
}if(response=='scan_terminating'){
|
290 |
+
jQuery("#mo_scan_message").addClass("notice notice-error is-dismissible");
|
291 |
+
jQuery("#mo_scan_message").append("Please wait for some time and try again.");
|
292 |
+
window.scrollTo({ top: 0, behavior: "smooth"});
|
293 |
+
document.getElementById("custom_scan_button").value = "Custom Scan";
|
294 |
+
document.getElementById('custom_scan_button').style.backgroundColor = '#b0d2cf';
|
295 |
+
jQuery('#mo_scan_message').hide();
|
296 |
}else{
|
297 |
if(response=="ERROR"){
|
298 |
jQuery("#mo_scan_message").addClass("notice notice-error is-dismissible");
|
383 |
jQuery('#summary_current_scan_text').html(response['scan_files']);
|
384 |
jQuery('#summary_all_infect_text').html(response['total_mal']);
|
385 |
jQuery('#summary_current_infect_text').html(response['mal_files']);
|
386 |
+
|
387 |
+
|
388 |
+
}
|
389 |
+
jQuery('input[name="mo_stop_button"]').val("Stop Scan");
|
390 |
document.getElementById('mo_stop_button_div').style.display="none";
|
391 |
document.getElementById('mo_stop_button').style.backgroundColor = '#20b2aa';
|
392 |
jQuery('input[name="mo_stop_button"]').removeAttr('disabled');
|
|
|
|
|
393 |
clearInterval(progress_bar);
|
394 |
}else{
|
395 |
if(response['total'] == 0 || response['total'] == false){
|