Google Authenticator – WordPress Two Factor Authentication (2FA) - Version 5.3.12

Version Description

  • Google Authenticator-Two Factor Authentication (2FA) : Security : backup table fix.
Download this release

Release Info

Developer cyberlord92
Plugin Icon 128x128 Google Authenticator – WordPress Two Factor Authentication (2FA)
Version 5.3.12
Comparing to
See all releases

Code changes from version 5.3.11 to 5.3.12

database/database_functions.php CHANGED
@@ -34,7 +34,7 @@
34
  function mo_plugin_activate()
35
  {
36
  global $wpdb;
37
- if(!get_option('mo_wpns_dbversion')||get_option('mo_wpns_dbversion')<144)
38
  {
39
  update_option('mo_wpns_dbversion', MoWpnsConstants::DB_VERSION );
40
  $this->generate_tables();
34
  function mo_plugin_activate()
35
  {
36
  global $wpdb;
37
+ if(!get_option('mo_wpns_dbversion')||get_option('mo_wpns_dbversion')<MoWpnsConstants::DB_VERSION)
38
  {
39
  update_option('mo_wpns_dbversion', MoWpnsConstants::DB_VERSION );
40
  $this->generate_tables();
database/database_functions_2fa.php CHANGED
@@ -15,12 +15,12 @@ class Mo2fDB {
15
  function mo_plugin_activate() {
16
  global $wpdb;
17
  if ( ! get_option( 'mo2f_dbversion' ) ) {
18
- update_option( 'mo2f_dbversion', 143 );
19
  $this->generate_tables();
20
  } else {
21
  $current_db_version = get_option( 'mo2f_dbversion' );
22
- if ( $current_db_version < 143 ) {
23
- update_option( 'mo2f_dbversion', 143 );
24
  $this->generate_tables();
25
  }
26
  //update the tables based on DB_VERSION.
15
  function mo_plugin_activate() {
16
  global $wpdb;
17
  if ( ! get_option( 'mo2f_dbversion' ) ) {
18
+ update_option( 'mo2f_dbversion', MoWpnsConstants::DB_VERSION );
19
  $this->generate_tables();
20
  } else {
21
  $current_db_version = get_option( 'mo2f_dbversion' );
22
+ if ( $current_db_version < MoWpnsConstants::DB_VERSION ) {
23
+ update_option( 'mo2f_dbversion', MoWpnsConstants::DB_VERSION );
24
  $this->generate_tables();
25
  }
26
  //update the tables based on DB_VERSION.
handler/login.php CHANGED
@@ -59,7 +59,8 @@
59
  $requested_uri = $_SERVER["REQUEST_URI"];
60
  $option = false;
61
  if (is_user_logged_in()) { //chr?
62
- if (strpos($requested_uri, chr(get_option('login_page_url'))) != false) {
 
63
  wp_redirect(site_url());
64
  die;
65
  }
59
  $requested_uri = $_SERVER["REQUEST_URI"];
60
  $option = false;
61
  if (is_user_logged_in()) { //chr?
62
+
63
+ if (strpos($requested_uri, chr((int)get_option('login_page_url'))) != false) {
64
  wp_redirect(site_url());
65
  die;
66
  }
handler/two_fa_settings.php CHANGED
@@ -130,8 +130,8 @@ class Miniorange_Authentication {
130
  $user_id = get_option( 'mo2f_miniorange_admin' );
131
  $current_db_version = get_option( 'mo2f_dbversion' );
132
 
133
- if ( $current_db_version < 143 ) {
134
- update_option( 'mo2f_dbversion', 143 );
135
  $Mo2fdbQueries->generate_tables();
136
 
137
  }
@@ -402,7 +402,7 @@ class Miniorange_Authentication {
402
  function miniorange_auth_save_settings() {
403
  if ( array_key_exists( 'page', $_REQUEST ) && $_REQUEST['page'] == 'mo_2fa_two_fa' ) {
404
  if ( ! session_id() || session_id() == '' || ! isset( $_SESSION ) ) {
405
- // session_start();
406
  }
407
  }
408
 
130
  $user_id = get_option( 'mo2f_miniorange_admin' );
131
  $current_db_version = get_option( 'mo2f_dbversion' );
132
 
133
+ if ( $current_db_version < MoWpnsConstants::DB_VERSION ) {
134
+ update_option( 'mo2f_dbversion', MoWpnsConstants::DB_VERSION );
135
  $Mo2fdbQueries->generate_tables();
136
 
137
  }
402
  function miniorange_auth_save_settings() {
403
  if ( array_key_exists( 'page', $_REQUEST ) && $_REQUEST['page'] == 'mo_2fa_two_fa' ) {
404
  if ( ! session_id() || session_id() == '' || ! isset( $_SESSION ) ) {
405
+ session_start();
406
  }
407
  }
408
 
helper/constants.php CHANGED
@@ -11,7 +11,7 @@
11
  const ERR_403 = "403";
12
  const DEFAULT_CUSTOMER_KEY = "16555";
13
  const DEFAULT_API_KEY = "fFd2XcvTGDemZvbw1bcUesNJWEqKbbUq";
14
- const DB_VERSION = 142;
15
  const SUPPORT_EMAIL = 'info@xecurify.com';
16
  const IP_LOOKUP_TEMPLATE = '<span style="font-size:14px;font-weight:bold">GENERAL INFORMATION</span><table style="margin-left:2%;"><tr><td style="width:100px;">Response</td><td >:</td><td>{{status}}</td></tr><tr><td style="width:100px;">IP Address</td><td>:</td><td>{{ip}}</td></tr><tr><td>HostName</td><td>:</td><td>{{hostname}}</td></tr><tr><td>TimeZone</td><td>:</td><td>{{timezone}}</td></tr><tr><td>Time Difference</td><td>:</td><td>{{offset}}</td></tr></table><hr><span style="font-size:14px;font-weight:bold">LOCATION INFORMATION</span><table style="margin-left:2%;"><tr><td>Latitude</td><td>:</td><td>{{latitude}}</td></tr><tr><td>Longitude</td><td>:</td><td>{{longitude}}</td></tr><tr><td>Region</td><td>:</td><td>{{region}}</td></tr><tr><td>Country</td><td>:</td><td>{{country}}</td></tr><tr><td>City</td><td>:</td><td>{{city}}</td></tr><tr><td>Continent</td><td>:</td><td>{{continent}}</td></tr><tr><td>Curreny Code</td><td>:</td><td>{{curreny_code}}</td></tr><tr><td>Curreny Symbol</td><td>:</td><td>{{curreny_symbol}}</td></tr><tr><td>Per Dollar Value</td><td>:</td><td>{{per_dollar_value}}</td></tr></table>';
17
  const CURRENT_BROWSER = '<span style="font-size:10px;color:red;">( Current Browser )</span>';
11
  const ERR_403 = "403";
12
  const DEFAULT_CUSTOMER_KEY = "16555";
13
  const DEFAULT_API_KEY = "fFd2XcvTGDemZvbw1bcUesNJWEqKbbUq";
14
+ const DB_VERSION = 145;
15
  const SUPPORT_EMAIL = 'info@xecurify.com';
16
  const IP_LOOKUP_TEMPLATE = '<span style="font-size:14px;font-weight:bold">GENERAL INFORMATION</span><table style="margin-left:2%;"><tr><td style="width:100px;">Response</td><td >:</td><td>{{status}}</td></tr><tr><td style="width:100px;">IP Address</td><td>:</td><td>{{ip}}</td></tr><tr><td>HostName</td><td>:</td><td>{{hostname}}</td></tr><tr><td>TimeZone</td><td>:</td><td>{{timezone}}</td></tr><tr><td>Time Difference</td><td>:</td><td>{{offset}}</td></tr></table><hr><span style="font-size:14px;font-weight:bold">LOCATION INFORMATION</span><table style="margin-left:2%;"><tr><td>Latitude</td><td>:</td><td>{{latitude}}</td></tr><tr><td>Longitude</td><td>:</td><td>{{longitude}}</td></tr><tr><td>Region</td><td>:</td><td>{{region}}</td></tr><tr><td>Country</td><td>:</td><td>{{country}}</td></tr><tr><td>City</td><td>:</td><td>{{city}}</td></tr><tr><td>Continent</td><td>:</td><td>{{continent}}</td></tr><tr><td>Curreny Code</td><td>:</td><td>{{curreny_code}}</td></tr><tr><td>Curreny Symbol</td><td>:</td><td>{{curreny_symbol}}</td></tr><tr><td>Per Dollar Value</td><td>:</td><td>{{per_dollar_value}}</td></tr></table>';
17
  const CURRENT_BROWSER = '<span style="font-size:10px;color:red;">( Current Browser )</span>';
helper/dashboard_security_notification.php CHANGED
@@ -106,7 +106,8 @@ class miniorange_security_notification{
106
 
107
  ";
108
 
109
- echo '<br><a class="button button-primary" style="background-color:#555f5f" href="admin.php?page=mo_2fa_malwarescan&tab=default&view='.$latest_id.'">View Details</a>';
 
110
  echo '<br><br>';
111
 
112
  echo "<div style='width:100%;background-color:#555f5f;padding-top:10px;'>
106
 
107
  ";
108
 
109
+ echo '<a class="button button-primary" style="background-color:#f0a702;width:100%;text-align:center;" href="admin.php?page=mo_2fa_malwarescan&tab=default&view='.$latest_id.'"><h3 style="background-color:#f0a702">View Details</h3></a>';
110
+
111
  echo '<br><br>';
112
 
113
  echo "<div style='width:100%;background-color:#555f5f;padding-top:10px;'>
miniorange_2_factor_settings.php CHANGED
@@ -3,14 +3,14 @@
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.11
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.11' );
13
- define( 'MO2F_TEST_MODE', false );
14
  class Miniorange_twoFactor{
15
 
16
  function __construct()
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.12
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.12' );
13
+ define( 'MO2F_TEST_MODE', true );
14
  class Miniorange_twoFactor{
15
 
16
  function __construct()
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.11
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.11 =
276
  * Google Authenticator-Two Factor Authentication (2FA) : Security : Limiting Firewall, Malware, backup and login security for users not needing it.
277
 
@@ -697,6 +700,9 @@ More descriptive setup messages and UI changes.
697
 
698
  == Upgrade Notice ==
699
 
 
 
 
700
  = 5.3.11 =
701
  * Google Authenticator-Two Factor Authentication (2FA) : Security : Limiting Firewall, Malware, backup and login security for users not needing it.
702
 
6
  Requires at least: 3.0.1
7
  Tested up to: 5.3
8
  Requires PHP: 5.3.0
9
+ Stable tag: 5.3.12
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.12 =
276
+ * Google Authenticator-Two Factor Authentication (2FA) : Security : backup table fix.
277
+
278
  = 5.3.11 =
279
  * Google Authenticator-Two Factor Authentication (2FA) : Security : Limiting Firewall, Malware, backup and login security for users not needing it.
280
 
700
 
701
  == Upgrade Notice ==
702
 
703
+ = 5.3.12 =
704
+ * Google Authenticator-Two Factor Authentication (2FA) : Security : backup table fix.
705
+
706
  = 5.3.11 =
707
  * Google Authenticator-Two Factor Authentication (2FA) : Security : Limiting Firewall, Malware, backup and login security for users not needing it.
708