Version Description
- Google Authenticator-Two Factor Authentication (2FA) : Fixing warnings and adding minor changes in the plans.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Google Authenticator – WordPress Two Factor Authentication (2FA) |
Version | 5.4.7 |
Comparing to | |
See all releases |
Code changes from version 5.4.6 to 5.4.7
- controllers/account.php +3 -7
- controllers/wpns-loginsecurity-ajax.php +1 -14
- handler/login.php +0 -1
- handler/twofa/setup_twofa.php +1 -1
- handler/twofa/two_fa_settings.php +0 -1
- includes/css/style_settings.css +0 -1
- miniorange_2_factor_settings.php +15 -9
- readme.txt +7 -1
- views/twofa/two_fa.php +1 -1
- views/upgrade.php +81 -142
controllers/account.php
CHANGED
@@ -216,12 +216,7 @@
|
|
216 |
update_option( 'mo2f_miniorange_admin', $user->ID );
|
217 |
update_option( 'mo_2factor_admin_registration_status', 'MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS' );
|
218 |
|
219 |
-
|
220 |
-
{
|
221 |
-
?>
|
222 |
-
<script>location.reload(true);</script>
|
223 |
-
<?php
|
224 |
-
}
|
225 |
$Mo2fdbQueries->insert_user( $user->ID );
|
226 |
$Mo2fdbQueries->update_user_details( $user->ID, array(
|
227 |
'mo2f_EmailVerification_config_status' => get_option( 'mo2f_is_NC' ) == 0 ? true : false,
|
@@ -272,7 +267,8 @@
|
|
272 |
$mo2f_customer_selected_plan = get_option( 'mo2f_customer_selected_plan' );
|
273 |
if ( ! empty( $mo2f_customer_selected_plan ) ) {
|
274 |
delete_option( 'mo2f_customer_selected_plan' );
|
275 |
-
|
|
|
276 |
} else if ( $mo2f_second_factor == 'NONE' ) {
|
277 |
if(get_user_meta( $user->ID, 'register_account_popup', true)){
|
278 |
update_user_meta( $user->ID, 'configure_2FA', 1 );
|
216 |
update_option( 'mo2f_miniorange_admin', $user->ID );
|
217 |
update_option( 'mo_2factor_admin_registration_status', 'MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS' );
|
218 |
|
219 |
+
|
|
|
|
|
|
|
|
|
|
|
220 |
$Mo2fdbQueries->insert_user( $user->ID );
|
221 |
$Mo2fdbQueries->update_user_details( $user->ID, array(
|
222 |
'mo2f_EmailVerification_config_status' => get_option( 'mo2f_is_NC' ) == 0 ? true : false,
|
267 |
$mo2f_customer_selected_plan = get_option( 'mo2f_customer_selected_plan' );
|
268 |
if ( ! empty( $mo2f_customer_selected_plan ) ) {
|
269 |
delete_option( 'mo2f_customer_selected_plan' );
|
270 |
+
?><script>window.location.href="admin.php?page=mo_2fa_upgrade";</script><?php
|
271 |
+
|
272 |
} else if ( $mo2f_second_factor == 'NONE' ) {
|
273 |
if(get_user_meta( $user->ID, 'register_account_popup', true)){
|
274 |
update_user_meta( $user->ID, 'configure_2FA', 1 );
|
controllers/wpns-loginsecurity-ajax.php
CHANGED
@@ -30,23 +30,10 @@ class wpns_ajax
|
|
30 |
$this->wpns_waf_rate_limiting_form(); break;
|
31 |
case 'wpns_ip_lookup':
|
32 |
$this->wpns_ip_lookup(); break;
|
33 |
-
|
34 |
-
$this->wpns_upgrade(); break;
|
35 |
-
case 'wpns_upgrade_idp':
|
36 |
-
$this->wpns_upgrade_idp(); break;
|
37 |
}
|
38 |
}
|
39 |
|
40 |
-
function wpns_upgrade()
|
41 |
-
{
|
42 |
-
update_option('mo_wpns_upgrade_onprem' , 1);
|
43 |
-
update_option('mo_wpns_plantype', $_POST['plantype'] );
|
44 |
-
|
45 |
-
}
|
46 |
-
function wpns_upgrade_idp()
|
47 |
-
{
|
48 |
-
update_option('mo_wpns_upgrade_onprem' , 0);
|
49 |
-
}
|
50 |
function wpns_handle_bf_configuration_form(){
|
51 |
|
52 |
$nonce = $_POST['nonce'];
|
30 |
$this->wpns_waf_rate_limiting_form(); break;
|
31 |
case 'wpns_ip_lookup':
|
32 |
$this->wpns_ip_lookup(); break;
|
33 |
+
|
|
|
|
|
|
|
34 |
}
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
function wpns_handle_bf_configuration_form(){
|
38 |
|
39 |
$nonce = $_POST['nonce'];
|
handler/login.php
CHANGED
@@ -341,7 +341,6 @@ class LoginHandler
|
|
341 |
$error->add( 'empty_username', '<strong>' . mo2f_lt( 'ERROR' ) . '</strong>: ' . mo2f_lt( 'Invalid Request.' ) );
|
342 |
return $error;
|
343 |
} else {
|
344 |
-
update_option('mo_wpns_upgrade_onprem',0);
|
345 |
if(!$Mo2fdbQueries->get_user_detail( 'mo_2factor_user_registration_status', $user->ID) =='MO_2_FACTOR_PLUGIN_SETTINGS'){
|
346 |
//$Mo2fdbQueries->update_user_details( $user->ID, array( 'mo_2factor_user_registration_status' => '' ) );
|
347 |
delete_user_meta( $user->ID, 'register_account_popup' );
|
341 |
$error->add( 'empty_username', '<strong>' . mo2f_lt( 'ERROR' ) . '</strong>: ' . mo2f_lt( 'Invalid Request.' ) );
|
342 |
return $error;
|
343 |
} else {
|
|
|
344 |
if(!$Mo2fdbQueries->get_user_detail( 'mo_2factor_user_registration_status', $user->ID) =='MO_2_FACTOR_PLUGIN_SETTINGS'){
|
345 |
//$Mo2fdbQueries->update_user_details( $user->ID, array( 'mo_2factor_user_registration_status' => '' ) );
|
346 |
delete_user_meta( $user->ID, 'register_account_popup' );
|
handler/twofa/setup_twofa.php
CHANGED
@@ -439,7 +439,7 @@ function display_customer_registration_forms($user){
|
|
439 |
</div>
|
440 |
</div>
|
441 |
<?php }
|
442 |
-
if(in_array($mo2f_current_registration_status, array("REGISTRATION_STARTED", "MO_2_FACTOR_OTP_DELIVERED_SUCCESS", "MO_2_FACTOR_OTP_DELIVERED_FAILURE", "MO_2_FACTOR_VERIFY_CUSTOMER"))
|
443 |
mo2f_show_registration_screen($user);
|
444 |
}
|
445 |
?>
|
439 |
</div>
|
440 |
</div>
|
441 |
<?php }
|
442 |
+
if(in_array($mo2f_current_registration_status, array("REGISTRATION_STARTED", "MO_2_FACTOR_OTP_DELIVERED_SUCCESS", "MO_2_FACTOR_OTP_DELIVERED_FAILURE", "MO_2_FACTOR_VERIFY_CUSTOMER")) ){
|
443 |
mo2f_show_registration_screen($user);
|
444 |
}
|
445 |
?>
|
handler/twofa/two_fa_settings.php
CHANGED
@@ -602,7 +602,6 @@ class Miniorange_Authentication {
|
|
602 |
return $error;
|
603 |
} else {
|
604 |
//$Mo2fdbQueries->update_user_details( $user->ID, array( 'mo_2factor_user_registration_status' => '' ) );
|
605 |
-
update_option('mo_wpns_upgrade_onprem', 0);
|
606 |
delete_user_meta( $user->ID, 'register_account_popup' );
|
607 |
}
|
608 |
}else if ( isset( $_POST['option'] ) and $_POST['option'] == "mo_auth_verify_customer" ) { //register the admin to miniOrange if already exist
|
602 |
return $error;
|
603 |
} else {
|
604 |
//$Mo2fdbQueries->update_user_details( $user->ID, array( 'mo_2factor_user_registration_status' => '' ) );
|
|
|
605 |
delete_user_meta( $user->ID, 'register_account_popup' );
|
606 |
}
|
607 |
}else if ( isset( $_POST['option'] ) and $_POST['option'] == "mo_auth_verify_customer" ) { //register the admin to miniOrange if already exist
|
includes/css/style_settings.css
CHANGED
@@ -64,7 +64,6 @@
|
|
64 |
margin:20px;
|
65 |
margin-top:16px;
|
66 |
border-radius:2%;
|
67 |
-
height:270px;
|
68 |
overflow: hidden;
|
69 |
width:25%;
|
70 |
border:1px solid #ecebeb;
|
64 |
margin:20px;
|
65 |
margin-top:16px;
|
66 |
border-radius:2%;
|
|
|
67 |
overflow: hidden;
|
68 |
width:25%;
|
69 |
border:1px solid #ecebeb;
|
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.4.
|
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.4.
|
13 |
define( 'MO2F_TEST_MODE', FALSE );
|
14 |
define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
|
15 |
class Miniorange_twoFactor{
|
@@ -69,8 +69,13 @@
|
|
69 |
if(is_array($theme_last)){
|
70 |
if(sizeof($theme_current) == sizeof($theme_last)){
|
71 |
foreach ($theme_current as $key => $value) {
|
72 |
-
if($
|
73 |
-
$
|
|
|
|
|
|
|
|
|
|
|
74 |
break;
|
75 |
}
|
76 |
}
|
@@ -87,7 +92,12 @@
|
|
87 |
if(is_array($plugin_last)){
|
88 |
if(sizeof($plugins_found) == sizeof($plugin_last)){
|
89 |
foreach ($plugins_found as $key => $value) {
|
90 |
-
if($
|
|
|
|
|
|
|
|
|
|
|
91 |
$flag_plugin=1;
|
92 |
break;
|
93 |
}
|
@@ -250,8 +260,6 @@
|
|
250 |
add_option( 'mo_wpns_2fa_with_network_security' , 1);
|
251 |
add_option( 'mo_wpns_2fa_with_network_security_popup_visible', 1);
|
252 |
|
253 |
-
add_option( 'mo_wpns_upgrade_onprem', 0);
|
254 |
-
add_option( 'mo_wpns_plantype' , 0);
|
255 |
|
256 |
}
|
257 |
|
@@ -267,8 +275,6 @@
|
|
267 |
delete_option('mo2f_customer_token');
|
268 |
delete_option('mo_wpns_transactionId');
|
269 |
delete_option('mo_wpns_registration_status');
|
270 |
-
delete_option('mo_wpns_upgrade_onprem',0);
|
271 |
-
delete_option('mo_wpns_plantype');
|
272 |
|
273 |
$two_fa_settings = new Miniorange_Authentication();
|
274 |
$two_fa_settings->mo_auth_deactivate();
|
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.4.7
|
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.4.7' );
|
13 |
define( 'MO2F_TEST_MODE', FALSE );
|
14 |
define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
|
15 |
class Miniorange_twoFactor{
|
69 |
if(is_array($theme_last)){
|
70 |
if(sizeof($theme_current) == sizeof($theme_last)){
|
71 |
foreach ($theme_current as $key => $value) {
|
72 |
+
if(isset($theme_last[$key])){
|
73 |
+
if($theme_current[$key] != $theme_last[$key]){
|
74 |
+
$flag_theme=1;
|
75 |
+
break;
|
76 |
+
}
|
77 |
+
}else{
|
78 |
+
$flag_theme = 1;
|
79 |
break;
|
80 |
}
|
81 |
}
|
92 |
if(is_array($plugin_last)){
|
93 |
if(sizeof($plugins_found) == sizeof($plugin_last)){
|
94 |
foreach ($plugins_found as $key => $value) {
|
95 |
+
if(isset($plugin_last[$key])){
|
96 |
+
if($plugins_found[$key] != $plugin_last[$key]){
|
97 |
+
$flag_plugin=1;
|
98 |
+
break;
|
99 |
+
}
|
100 |
+
}else{
|
101 |
$flag_plugin=1;
|
102 |
break;
|
103 |
}
|
260 |
add_option( 'mo_wpns_2fa_with_network_security' , 1);
|
261 |
add_option( 'mo_wpns_2fa_with_network_security_popup_visible', 1);
|
262 |
|
|
|
|
|
263 |
|
264 |
}
|
265 |
|
275 |
delete_option('mo2f_customer_token');
|
276 |
delete_option('mo_wpns_transactionId');
|
277 |
delete_option('mo_wpns_registration_status');
|
|
|
|
|
278 |
|
279 |
$two_fa_settings = new Miniorange_Authentication();
|
280 |
$two_fa_settings->mo_auth_deactivate();
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: https://miniorange.com/
|
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.4
|
8 |
Requires PHP: 5.3.0
|
9 |
-
Stable tag: 5.4.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -307,6 +307,9 @@ miniOrange authentication service has 15+ authentication methods.One time passco
|
|
307 |
|
308 |
== Changelog ==
|
309 |
|
|
|
|
|
|
|
310 |
= 5.4.6 =
|
311 |
* Google Authenticator-Two Factor Authentication (2FA) : Improving Google Authenticator and adding Payment options.
|
312 |
|
@@ -800,6 +803,9 @@ More descriptive setup messages and UI changes.
|
|
800 |
|
801 |
== Upgrade Notice ==
|
802 |
|
|
|
|
|
|
|
803 |
= 5.4.6 =
|
804 |
* Google Authenticator-Two Factor Authentication (2FA) : Improving Google Authenticator and adding Payment options.
|
805 |
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.4
|
8 |
Requires PHP: 5.3.0
|
9 |
+
Stable tag: 5.4.7
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
307 |
|
308 |
== Changelog ==
|
309 |
|
310 |
+
= 5.4.7 =
|
311 |
+
* Google Authenticator-Two Factor Authentication (2FA) : Fixing warnings and adding minor changes in the plans.
|
312 |
+
|
313 |
= 5.4.6 =
|
314 |
* Google Authenticator-Two Factor Authentication (2FA) : Improving Google Authenticator and adding Payment options.
|
315 |
|
803 |
|
804 |
== Upgrade Notice ==
|
805 |
|
806 |
+
= 5.4.7 =
|
807 |
+
* Google Authenticator-Two Factor Authentication (2FA) : Fixing warnings and adding minor changes in the plans.
|
808 |
+
|
809 |
= 5.4.6 =
|
810 |
* Google Authenticator-Two Factor Authentication (2FA) : Improving Google Authenticator and adding Payment options.
|
811 |
|
views/twofa/two_fa.php
CHANGED
@@ -16,7 +16,7 @@ else
|
|
16 |
if(current_user_can('administrator') )
|
17 |
{
|
18 |
?>
|
19 |
-
<button class="tablinks" onclick="openTab2fa(this)" id="unlimittedUser_2fa">
|
20 |
<?php
|
21 |
}
|
22 |
if(current_user_can('administrator'))
|
16 |
if(current_user_can('administrator') )
|
17 |
{
|
18 |
?>
|
19 |
+
<button class="tablinks" onclick="openTab2fa(this)" id="unlimittedUser_2fa">Settings</button>
|
20 |
<?php
|
21 |
}
|
22 |
if(current_user_can('administrator'))
|
views/upgrade.php
CHANGED
@@ -11,17 +11,15 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
11 |
<div class="mo_upgrade_toggle">
|
12 |
<p class="mo_upgrade_toggle_2fa">
|
13 |
|
14 |
-
<input type="radio" name="sitetype" value="mo_2fa_lite" id="mo_2fa_lite" onclick="mo_2fa_lite_show_plans(); " style="display: none;" >
|
15 |
-
|
16 |
-
<label for="mo_2fa_lite" class="mo_upgrade_toggle_2fa_lable" id="mo_2fa_lite_licensing_plans_title" style="background-color: #20b2aa;border-radius: 50em;">Two Factor Lite</label>
|
17 |
-
<label for="mo_2fa_lite" class="mo_upgrade_toggle_2fa_lable" id="mo_2fa_lite_licensing_plans_title1" style="display: none;">Two Factor Lite</label>
|
18 |
-
|
19 |
-
|
20 |
<input type="radio" name="sitetype" value="regular_plans" id="regular_plans" onclick="mo_2fa_show_plans();" style="display: none;" >
|
21 |
|
22 |
-
<label for="regular_plans" id="mo_2fa_licensing_plans_title" class="mo_upgrade_toggle_2fa_lable">
|
23 |
-
<label for="regular_plans" id="mo_2fa_licensing_plans_title1" class="mo_upgrade_toggle_2fa_lable" style="background-color: #20b2aa;border-radius: 50em;
|
|
|
|
|
24 |
|
|
|
|
|
25 |
|
26 |
<input type="radio" name="sitetype" value="Recharge" id="Recharge" onclick="mo_ns_show_plans(); " style="display: none;">
|
27 |
|
@@ -32,7 +30,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
32 |
</p>
|
33 |
</div>
|
34 |
|
35 |
-
<div id="mo_2fa_features_only" style="display:
|
36 |
<div class="mo_wpns_upgrade_page_2fa_ns">
|
37 |
<div style="float: left;">
|
38 |
<?php
|
@@ -94,7 +92,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
94 |
<button id="wp_2fa_basic_plan1" class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="mo2f_upgradeform('wp_2fa_basic_plan')" >Upgrade</button>
|
95 |
<?php }else{
|
96 |
?>
|
97 |
-
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
98 |
<?php }
|
99 |
mo2f_payment_option_ui();
|
100 |
?>
|
@@ -133,7 +131,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
133 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="mo2f_upgradeform('wp_2fa_premium_plan')" >Upgrade</button>
|
134 |
<?php
|
135 |
}else{ ?>
|
136 |
-
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="
|
137 |
<?php }
|
138 |
mo2f_payment_option_ui();
|
139 |
?>
|
@@ -175,7 +173,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
175 |
<?php
|
176 |
}else
|
177 |
{ ?>
|
178 |
-
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="
|
179 |
<?php }
|
180 |
mo2f_payment_option_ui();
|
181 |
?>
|
@@ -190,7 +188,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
190 |
<br>
|
191 |
</div>
|
192 |
</div>
|
193 |
-
<div id="mo_2fa_lite_features_only" style="display:
|
194 |
<div class="mo_wpns_upgrade_page_2fa_ns">
|
195 |
<div style="float: left;">
|
196 |
<?php
|
@@ -199,7 +197,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
199 |
}
|
200 |
?>
|
201 |
</div>
|
202 |
-
<h1 class="mo_wpns_upgrade_page_2fa_ns_1"> Two Factor
|
203 |
</div>
|
204 |
<div class="mo_wpns_upgrade_title_2fa_lite">
|
205 |
<div class="mo_wpns_upgrade_page_title_name">
|
@@ -251,7 +249,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
251 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="mo2f_upgradeform('wp_security_two_factor_standard_lite_plan')" >Upgrade</button>
|
252 |
<?php }else{
|
253 |
?>
|
254 |
-
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" id="std_upgrade_onprem" onclick="
|
255 |
<?php }
|
256 |
mo2f_payment_option_ui();
|
257 |
?>
|
@@ -290,7 +288,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
290 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="mo2f_upgradeform('wp_security_two_factor_premium_lite_plan')" >Upgrade</button>
|
291 |
<?php
|
292 |
}else{ ?>
|
293 |
-
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="
|
294 |
<?php }
|
295 |
mo2f_payment_option_ui();
|
296 |
?>
|
@@ -308,37 +306,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
308 |
</div>
|
309 |
|
310 |
<br><br>
|
311 |
-
|
312 |
-
<?php
|
313 |
-
if (get_option('mo_wpns_upgrade_onprem'))
|
314 |
-
{
|
315 |
-
$user = wp_get_current_user();
|
316 |
-
|
317 |
-
if( $is_customer_registered)
|
318 |
-
{
|
319 |
-
?>
|
320 |
-
<script type="text/javascript">
|
321 |
-
var plantype = "<?php echo get_option('mo_wpns_plantype');?>";
|
322 |
-
var data =
|
323 |
-
{
|
324 |
-
'action' : 'wpns_login_security',
|
325 |
-
'wpns_loginsecurity_ajax' : 'wpns_upgrade_idp',
|
326 |
-
};
|
327 |
-
jQuery.post(ajaxurl, data, function(response)
|
328 |
-
{
|
329 |
-
var mo_upgrade_modal = document.getElementById("mo2f_myModal_upgrade");
|
330 |
-
mo_upgrade_modal.style.display = "block";
|
331 |
-
});
|
332 |
-
|
333 |
-
</script>
|
334 |
-
<?php
|
335 |
-
|
336 |
-
}
|
337 |
-
else
|
338 |
-
display_customer_registration_forms( $user);
|
339 |
-
}
|
340 |
-
?>
|
341 |
-
</div>
|
342 |
<form class="mo2f_display_none_forms" id="mo2fa_loginform"
|
343 |
action="<?php echo MO_HOST_NAME . '/moas/login'; ?>"
|
344 |
target="_blank" method="post">
|
@@ -354,13 +322,14 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
354 |
<input type="hidden" name="mo2fa_register_to_upgrade_nonce"
|
355 |
value="<?php echo wp_create_nonce( 'miniorange-2-factor-user-reg-to-upgrade-nonce' ); ?>"/>
|
356 |
</form>
|
|
|
357 |
|
358 |
|
359 |
-
<div id="mo2f_features_id" style="display:
|
360 |
<?php
|
361 |
include $mo2f_dirName . 'views'.DIRECTORY_SEPARATOR.'upgrade_2fa.php';?>
|
362 |
</div>
|
363 |
-
<div id="mo2f_2fa_lite_features_id" style="display:
|
364 |
<?php
|
365 |
include $mo2f_dirName . 'views'.DIRECTORY_SEPARATOR.'upgrade_2fa_lite.php';
|
366 |
?>
|
@@ -408,7 +377,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
408 |
<?php }else{ ?>
|
409 |
<button
|
410 |
class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
411 |
-
onclick="
|
412 |
<?php }
|
413 |
?>
|
414 |
</div></div>
|
@@ -445,7 +414,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
445 |
<?php }else{ ?>
|
446 |
|
447 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
448 |
-
onclick="
|
449 |
<?php }
|
450 |
?>
|
451 |
</div>
|
@@ -486,7 +455,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
486 |
|
487 |
<button
|
488 |
class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
489 |
-
onclick="
|
490 |
<?php }
|
491 |
?>
|
492 |
</div>
|
@@ -525,7 +494,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
525 |
<?php }else{ ?>
|
526 |
<button
|
527 |
class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
528 |
-
onclick="
|
529 |
<?php }
|
530 |
?>
|
531 |
|
@@ -546,7 +515,7 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
546 |
<p style="font-size: 110%;">If payment is done through Credit Card/Intenational debit card, the license would be made automatically once payment is completed. </p>
|
547 |
<p style="font-size: 110%;"><i><b>For guide
|
548 |
<?php echo'<a href='.MoWpnsConstants::FAQ_PAYMENT_URL.' target="blank">Click Here.</a>';?></b></i></p>
|
549 |
-
|
550 |
</div>
|
551 |
</div>
|
552 |
<div class="mo_2fa_card mo_2fa_animation">
|
@@ -626,30 +595,9 @@ if ($_GET['page'] == 'mo_2fa_upgrade') {
|
|
626 |
</div>
|
627 |
</div>
|
628 |
<br>
|
629 |
-
<div id="mo2f_myModal_upgrade" class="modal" style="display: none;">
|
630 |
-
|
631 |
-
<div class="mo_wpns_divided_layout" style="margin-left: 32%;margin-top: 9%;">
|
632 |
-
<div class="mo_wpns_setting_layout" style="padding-bottom: 16px;text-align: center;width: 46%;">
|
633 |
-
<span class="mo2f_popup_close">×</span>
|
634 |
-
<h1 style="color: #20b2aa; font-size: x-large; text-align: center;">Thank You for registering with miniOrange</h1><hr>
|
635 |
-
<?php $mo_plantype = get_option('mo_wpns_plantype'); ?>
|
636 |
-
<p>You will be redrect to miniOrange Dashboard. Where you need to login with your miniOrange's credentials and then you can upgrade the plugin.</p>
|
637 |
-
<button id="wp_2fa_proceed_to_pay" class="mo_wpns_button mo_wpns_button1" onclick="mo2f_upgradeform('<?php echo $mo_plantype ?>')" >Proceed </button><br>
|
638 |
-
</div>
|
639 |
-
</div>
|
640 |
-
</div>
|
641 |
|
642 |
-
<script>
|
643 |
-
var mo_upgrade_modal = document.getElementById("mo2f_myModal_upgrade");
|
644 |
|
645 |
-
var span = document.getElementsByClassName("mo2f_popup_close")[0];
|
646 |
-
span.onclick = function()
|
647 |
-
{
|
648 |
-
mo_upgrade_modal.style.display = "none";
|
649 |
-
}
|
650 |
-
jQuery(window).click(function() {mo_upgrade_modal.style.display = "none";});
|
651 |
|
652 |
-
</script>
|
653 |
<?php
|
654 |
function mo2f_payment_option_ui()
|
655 |
{
|
@@ -670,12 +618,12 @@ function mo2f_sms_cost() {
|
|
670 |
title="<?php echo mo2f_lt( '(Only applicable if OTP over SMS is your preferred authentication method.)' ); ?>"><?php echo mo2f_lt( 'SMS + OTP Cost' ); ?>
|
671 |
<b style="color: black;">[optional]</b><br/>
|
672 |
<select id="mo2f_sms" class="form-control" style="border-radius:5px;width:200px;">
|
673 |
-
<option><?php echo mo2f_lt( '$
|
674 |
<option><?php echo mo2f_lt( '$5 per 500 OTP + SMS delivery charges' ); ?></option>
|
675 |
<option><?php echo mo2f_lt( '$7 per 1k OTP + SMS delivery charges' ); ?></option>
|
676 |
-
<option><?php echo mo2f_lt( '$
|
677 |
-
<option><?php echo mo2f_lt( '$
|
678 |
-
<option><?php echo mo2f_lt( '$
|
679 |
</select>
|
680 |
</p>
|
681 |
|
@@ -688,15 +636,15 @@ function mo2f_yearly_standard_pricing_plan() {
|
|
688 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
689 |
|
690 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
691 |
-
<option> <?php echo mo2f_lt( '
|
692 |
-
<option> <?php echo mo2f_lt( '
|
693 |
-
<option> <?php echo mo2f_lt( '
|
694 |
-
<option> <?php echo mo2f_lt( '
|
695 |
-
<option> <?php echo mo2f_lt( '
|
696 |
-
<option> <?php echo mo2f_lt( '
|
697 |
-
<option> <?php echo mo2f_lt( '
|
698 |
-
<option> <?php echo mo2f_lt( '
|
699 |
-
<option> <?php echo mo2f_lt( '
|
700 |
|
701 |
</select>
|
702 |
</p>
|
@@ -708,14 +656,14 @@ function mo2f_yearly_premium_pricing_plan() {
|
|
708 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
709 |
|
710 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
711 |
-
<option> <?php echo mo2f_lt( '
|
712 |
-
<option> <?php echo mo2f_lt( '
|
713 |
-
<option> <?php echo mo2f_lt( '
|
714 |
-
<option> <?php echo mo2f_lt( '
|
715 |
-
<option> <?php echo mo2f_lt( '
|
716 |
-
<option> <?php echo mo2f_lt( '
|
717 |
-
<option> <?php echo mo2f_lt( '
|
718 |
-
<option> <?php echo mo2f_lt( '
|
719 |
|
720 |
</select>
|
721 |
</p>
|
@@ -727,14 +675,14 @@ function mo2f_yearly_all_inclusive_pricing_plan() {
|
|
727 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
728 |
|
729 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
730 |
-
<option> <?php echo mo2f_lt( '
|
731 |
-
<option> <?php echo mo2f_lt( '
|
732 |
-
<option> <?php echo mo2f_lt( '
|
733 |
-
<option> <?php echo mo2f_lt( '
|
734 |
-
<option> <?php echo mo2f_lt( '
|
735 |
-
<option> <?php echo mo2f_lt( '
|
736 |
-
<option> <?php echo mo2f_lt( '
|
737 |
-
<option> <?php echo mo2f_lt( '
|
738 |
|
739 |
</select>
|
740 |
</p>
|
@@ -746,10 +694,10 @@ function mo2f_yearly_premium_pricing_onpremise() {
|
|
746 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
747 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
748 |
<option> <?php echo mo2f_lt( '1 site - $99 per year' ); ?> </option>
|
749 |
-
<option> <?php echo mo2f_lt( '2 sites - $159 per year' ); ?> </option>
|
750 |
-
<option> <?php echo mo2f_lt( '
|
751 |
-
<option> <?php echo mo2f_lt( '
|
752 |
-
<option> <?php echo mo2f_lt( '
|
753 |
<option> <?php echo mo2f_lt( '25+ sites - contact us' ); ?> </option>
|
754 |
</select>
|
755 |
</p>
|
@@ -761,10 +709,10 @@ function mo2f_yearly_standard_pricing_onpremise() {
|
|
761 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
762 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
763 |
<option> <?php echo mo2f_lt( '1 site - $49 per year' ); ?> </option>
|
764 |
-
<option> <?php echo mo2f_lt( '2 sites - $79 per year' ); ?> </option>
|
765 |
-
<option> <?php echo mo2f_lt( '
|
766 |
-
<option> <?php echo mo2f_lt( '
|
767 |
-
<option> <?php echo mo2f_lt( '
|
768 |
<option> <?php echo mo2f_lt( '25+ sites - contact us' ); ?> </option>
|
769 |
</select>
|
770 |
</p>
|
@@ -777,8 +725,8 @@ function mo2f_waf_yearly_standard_pricing() {
|
|
777 |
|
778 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
779 |
<option> <?php echo mo2f_lt( '1 site - $50 per year' ); ?> </option>
|
780 |
-
<option> <?php echo mo2f_lt( '5 sites - $100 per year' ); ?> </option>
|
781 |
-
<option> <?php echo mo2f_lt( '10 sites - $150 per year' ); ?> </option>
|
782 |
|
783 |
</select>
|
784 |
</p>
|
@@ -792,8 +740,8 @@ function mo2f_login_yearly_standard_pricing() {
|
|
792 |
|
793 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
794 |
<option> <?php echo mo2f_lt( '1 site - $15 per year' ); ?> </option>
|
795 |
-
<option> <?php echo mo2f_lt( '5 sites - $35 per year' ); ?> </option>
|
796 |
-
<option> <?php echo mo2f_lt( '10 sites - $60 per year' ); ?> </option>
|
797 |
|
798 |
</select>
|
799 |
</p>
|
@@ -807,8 +755,8 @@ function mo2f_backup_yearly_standard_pricing() {
|
|
807 |
|
808 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
809 |
<option> <?php echo mo2f_lt( '1 site - $30 per year' ); ?> </option>
|
810 |
-
<option> <?php echo mo2f_lt( '5 sites - $50 per year' ); ?> </option>
|
811 |
-
<option> <?php echo mo2f_lt( '10 sites - $70 per year' ); ?> </option>
|
812 |
|
813 |
</select>
|
814 |
</p>
|
@@ -822,8 +770,8 @@ function mo2f_scanner_yearly_standard_pricing() {
|
|
822 |
|
823 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
824 |
<option> <?php echo mo2f_lt( '1 site - $15 per year' ); ?> </option>
|
825 |
-
<option> <?php echo mo2f_lt( '5 sites - $35 per year' ); ?> </option>
|
826 |
-
<option> <?php echo mo2f_lt( '10 sites - $60 per year' ); ?> </option>
|
827 |
|
828 |
</select>
|
829 |
</p>
|
@@ -846,8 +794,6 @@ function wpns_pricing()
|
|
846 |
{
|
847 |
jQuery("#mo2f_features_id").hide(1500);
|
848 |
|
849 |
-
// document.getElementById('mo2fa_show_enterprise_features').scrollIntoView();
|
850 |
-
|
851 |
document.getElementById("mo2f_show_features").style.display = "none";
|
852 |
document.getElementById("mo2f_hide_features").style.display = "block";
|
853 |
|
@@ -855,7 +801,6 @@ function wpns_pricing()
|
|
855 |
|
856 |
function mo2fa_hide_detail_features()
|
857 |
{
|
858 |
-
// jQuery("#mo2f_features_id").slideToggle();
|
859 |
jQuery("#mo2f_features_id").show(1500);
|
860 |
|
861 |
document.getElementById("mo2f_show_features").style.display = "block";
|
@@ -880,19 +825,13 @@ function wpns_pricing()
|
|
880 |
jQuery('#requestOrigin').val(planType);
|
881 |
jQuery('#mo2fa_loginform').submit();
|
882 |
}
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
};
|
891 |
-
jQuery.post(ajaxurl, data, function(response) {
|
892 |
-
location.reload(true);
|
893 |
-
});
|
894 |
-
|
895 |
-
}
|
896 |
function mo_2fa_lite_show_plans()
|
897 |
{
|
898 |
document.getElementById('mo_2fa_lite_features_only').style.display = "block";
|
@@ -900,8 +839,8 @@ function wpns_pricing()
|
|
900 |
document.getElementById('mo_ns_features_only').style.display = "none";
|
901 |
document.getElementById('mo2f_features_id').style.display = "none";
|
902 |
document.getElementById('mo2f_2fa_lite_features_id').style.display = "block";
|
903 |
-
document.getElementById('mo_2fa_lite_licensing_plans_title').style.display = "
|
904 |
-
document.getElementById('mo_2fa_lite_licensing_plans_title1').style.display = "
|
905 |
document.getElementById('mo_ns_licensing_plans_title').style.display = "block";
|
906 |
document.getElementById('mo_ns_licensing_plans_title1').style.display = "none";
|
907 |
document.getElementById('mo_2fa_licensing_plans_title').style.display = "block";
|
@@ -918,8 +857,8 @@ function wpns_pricing()
|
|
918 |
document.getElementById('mo_ns_licensing_plans_title1').style.display = "none";
|
919 |
document.getElementById('mo_2fa_licensing_plans_title').style.display = "none";
|
920 |
document.getElementById('mo_2fa_licensing_plans_title1').style.display = "block";
|
921 |
-
document.getElementById('mo_2fa_lite_licensing_plans_title').style.display = "
|
922 |
-
document.getElementById('mo_2fa_lite_licensing_plans_title1').style.display = "
|
923 |
}
|
924 |
function mo_ns_show_plans()
|
925 |
{
|
@@ -932,7 +871,7 @@ function wpns_pricing()
|
|
932 |
document.getElementById('mo_2fa_licensing_plans_title1').style.display = "none";
|
933 |
document.getElementById('mo_ns_licensing_plans_title1').style.display = "block";
|
934 |
document.getElementById('mo_ns_licensing_plans_title').style.display = "none";
|
935 |
-
document.getElementById('mo_2fa_lite_licensing_plans_title').style.display = "
|
936 |
-
document.getElementById('mo_2fa_lite_licensing_plans_title1').style.display = "
|
937 |
}
|
938 |
</script>
|
11 |
<div class="mo_upgrade_toggle">
|
12 |
<p class="mo_upgrade_toggle_2fa">
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
<input type="radio" name="sitetype" value="regular_plans" id="regular_plans" onclick="mo_2fa_show_plans();" style="display: none;" >
|
15 |
|
16 |
+
<label for="regular_plans" id="mo_2fa_licensing_plans_title" class="mo_upgrade_toggle_2fa_lable" style="display: none;">User Based Plan</label>
|
17 |
+
<label for="regular_plans" id="mo_2fa_licensing_plans_title1" class="mo_upgrade_toggle_2fa_lable" style="background-color: #20b2aa;border-radius: 50em;">User Based Plan</label>
|
18 |
+
|
19 |
+
<input type="radio" name="sitetype" value="mo_2fa_lite" id="mo_2fa_lite" onclick="mo_2fa_lite_show_plans(); " style="display: none;" >
|
20 |
|
21 |
+
<label for="mo_2fa_lite" class="mo_upgrade_toggle_2fa_lable" id="mo_2fa_lite_licensing_plans_title" >Site Based Plan</label>
|
22 |
+
<label for="mo_2fa_lite" class="mo_upgrade_toggle_2fa_lable" id="mo_2fa_lite_licensing_plans_title1" style="background-color: #20b2aa;border-radius: 50em;display: none;">Site Based Plan</label>
|
23 |
|
24 |
<input type="radio" name="sitetype" value="Recharge" id="Recharge" onclick="mo_ns_show_plans(); " style="display: none;">
|
25 |
|
30 |
</p>
|
31 |
</div>
|
32 |
|
33 |
+
<div id="mo_2fa_features_only" style="display: block;">
|
34 |
<div class="mo_wpns_upgrade_page_2fa_ns">
|
35 |
<div style="float: left;">
|
36 |
<?php
|
92 |
<button id="wp_2fa_basic_plan1" class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="mo2f_upgradeform('wp_2fa_basic_plan')" >Upgrade</button>
|
93 |
<?php }else{
|
94 |
?>
|
95 |
+
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="mo2f_register_and_upgradeform('wp_2fa_basic_plan')">Upgrade</button>
|
96 |
<?php }
|
97 |
mo2f_payment_option_ui();
|
98 |
?>
|
131 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="mo2f_upgradeform('wp_2fa_premium_plan')" >Upgrade</button>
|
132 |
<?php
|
133 |
}else{ ?>
|
134 |
+
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="mo2f_register_and_upgradeform('wp_2fa_premium_plan')" >Upgrade</button>
|
135 |
<?php }
|
136 |
mo2f_payment_option_ui();
|
137 |
?>
|
173 |
<?php
|
174 |
}else
|
175 |
{ ?>
|
176 |
+
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="mo2f_register_and_upgradeform('wp_2fa_enterprise_plan')" >Upgrade</button>
|
177 |
<?php }
|
178 |
mo2f_payment_option_ui();
|
179 |
?>
|
188 |
<br>
|
189 |
</div>
|
190 |
</div>
|
191 |
+
<div id="mo_2fa_lite_features_only" style="display: none;">
|
192 |
<div class="mo_wpns_upgrade_page_2fa_ns">
|
193 |
<div style="float: left;">
|
194 |
<?php
|
197 |
}
|
198 |
?>
|
199 |
</div>
|
200 |
+
<h1 class="mo_wpns_upgrade_page_2fa_ns_1"> Two Factor Lite: Unlimited Users </h1> <span></span>
|
201 |
</div>
|
202 |
<div class="mo_wpns_upgrade_title_2fa_lite">
|
203 |
<div class="mo_wpns_upgrade_page_title_name">
|
249 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" onclick="mo2f_upgradeform('wp_security_two_factor_standard_lite_plan')" >Upgrade</button>
|
250 |
<?php }else{
|
251 |
?>
|
252 |
+
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button" id="std_upgrade_onprem" onclick="mo2f_register_and_upgradeform('wp_security_two_factor_standard_lite_plan')">Upgrade</button>
|
253 |
<?php }
|
254 |
mo2f_payment_option_ui();
|
255 |
?>
|
288 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="mo2f_upgradeform('wp_security_two_factor_premium_lite_plan')" >Upgrade</button>
|
289 |
<?php
|
290 |
}else{ ?>
|
291 |
+
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"onclick="mo2f_register_and_upgradeform('wp_security_two_factor_premium_lite_plan')" >Upgrade</button>
|
292 |
<?php }
|
293 |
mo2f_payment_option_ui();
|
294 |
?>
|
306 |
</div>
|
307 |
|
308 |
<br><br>
|
309 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
<form class="mo2f_display_none_forms" id="mo2fa_loginform"
|
311 |
action="<?php echo MO_HOST_NAME . '/moas/login'; ?>"
|
312 |
target="_blank" method="post">
|
322 |
<input type="hidden" name="mo2fa_register_to_upgrade_nonce"
|
323 |
value="<?php echo wp_create_nonce( 'miniorange-2-factor-user-reg-to-upgrade-nonce' ); ?>"/>
|
324 |
</form>
|
325 |
+
|
326 |
|
327 |
|
328 |
+
<div id="mo2f_features_id" style="display: block; float: left;width: 96.6%;">
|
329 |
<?php
|
330 |
include $mo2f_dirName . 'views'.DIRECTORY_SEPARATOR.'upgrade_2fa.php';?>
|
331 |
</div>
|
332 |
+
<div id="mo2f_2fa_lite_features_id" style="display: none; float: left;width: 96.6%;">
|
333 |
<?php
|
334 |
include $mo2f_dirName . 'views'.DIRECTORY_SEPARATOR.'upgrade_2fa_lite.php';
|
335 |
?>
|
377 |
<?php }else{ ?>
|
378 |
<button
|
379 |
class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
380 |
+
onclick="mo2f_register_and_upgradeform('wp_security_waf_plan')" >Upgrade</button>
|
381 |
<?php }
|
382 |
?>
|
383 |
</div></div>
|
414 |
<?php }else{ ?>
|
415 |
|
416 |
<button class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
417 |
+
onclick="mo2f_register_and_upgradeform('wp_security_login_and_spam_plan')" >Upgrade</button>
|
418 |
<?php }
|
419 |
?>
|
420 |
</div>
|
455 |
|
456 |
<button
|
457 |
class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
458 |
+
onclick="mo2f_register_and_upgradeform('wp_security_malware_plan')" >Upgrade</button>
|
459 |
<?php }
|
460 |
?>
|
461 |
</div>
|
494 |
<?php }else{ ?>
|
495 |
<button
|
496 |
class="mo_wpns_button mo_wpns_button1 mo_wpns_upgrade_page_button"
|
497 |
+
onclick="mo2f_register_and_upgradeform('wp_security_backup_plan')" >Upgrade</button>
|
498 |
<?php }
|
499 |
?>
|
500 |
|
515 |
<p style="font-size: 110%;">If payment is done through Credit Card/Intenational debit card, the license would be made automatically once payment is completed. </p>
|
516 |
<p style="font-size: 110%;"><i><b>For guide
|
517 |
<?php echo'<a href='.MoWpnsConstants::FAQ_PAYMENT_URL.' target="blank">Click Here.</a>';?></b></i></p>
|
518 |
+
|
519 |
</div>
|
520 |
</div>
|
521 |
<div class="mo_2fa_card mo_2fa_animation">
|
595 |
</div>
|
596 |
</div>
|
597 |
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
|
|
|
|
|
599 |
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
|
|
|
601 |
<?php
|
602 |
function mo2f_payment_option_ui()
|
603 |
{
|
618 |
title="<?php echo mo2f_lt( '(Only applicable if OTP over SMS is your preferred authentication method.)' ); ?>"><?php echo mo2f_lt( 'SMS + OTP Cost' ); ?>
|
619 |
<b style="color: black;">[optional]</b><br/>
|
620 |
<select id="mo2f_sms" class="form-control" style="border-radius:5px;width:200px;">
|
621 |
+
<option><?php echo mo2f_lt( '$1 per 100 OTP + SMS delivery charges' ); ?></option>
|
622 |
<option><?php echo mo2f_lt( '$5 per 500 OTP + SMS delivery charges' ); ?></option>
|
623 |
<option><?php echo mo2f_lt( '$7 per 1k OTP + SMS delivery charges' ); ?></option>
|
624 |
+
<option><?php echo mo2f_lt( '$24 per 5k OTP + SMS delivery charges' ); ?></option>
|
625 |
+
<option><?php echo mo2f_lt( '$43 per 10k OTP + SMS delivery charges' ); ?></option>
|
626 |
+
<option><?php echo mo2f_lt( '$160 per 50k OTP + SMS delivery charges' ); ?></option>
|
627 |
</select>
|
628 |
</p>
|
629 |
|
636 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
637 |
|
638 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
639 |
+
<option> <?php echo mo2f_lt( 'Upto 2 users - $5 per year' ); ?> </option>
|
640 |
+
<option> <?php echo mo2f_lt( 'Upto 5 users - $20 per year' ); ?> </option>
|
641 |
+
<option> <?php echo mo2f_lt( 'Upto 50 users - $30 per year' ); ?> </option>
|
642 |
+
<option> <?php echo mo2f_lt( 'Upto 100 users - $49 per year' ); ?> </option>
|
643 |
+
<option> <?php echo mo2f_lt( 'Upto 500 users - $99 per year' ); ?> </option>
|
644 |
+
<option> <?php echo mo2f_lt( 'Upto 1000 users - $199 per year' ); ?> </option>
|
645 |
+
<option> <?php echo mo2f_lt( 'Upto 5000 users - $299 per year' ); ?> </option>
|
646 |
+
<option> <?php echo mo2f_lt( 'Upto 10000 users - $499 per year' ); ?></option>
|
647 |
+
<option> <?php echo mo2f_lt( 'Upto 20000 users - $799 per year' ); ?> </option>
|
648 |
|
649 |
</select>
|
650 |
</p>
|
656 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
657 |
|
658 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
659 |
+
<option> <?php echo mo2f_lt( 'Upto 5 users - $30 per year' ); ?> </option>
|
660 |
+
<option> <?php echo mo2f_lt( 'Upto 50 users - $99 per year' ); ?> </option>
|
661 |
+
<option> <?php echo mo2f_lt( 'Upto 100 users - $199 per year' ); ?> </option>
|
662 |
+
<option> <?php echo mo2f_lt( 'Upto 500 users - $349 per year' ); ?> </option>
|
663 |
+
<option> <?php echo mo2f_lt( 'Upto 1000 users - $499 per year' ); ?> </option>
|
664 |
+
<option> <?php echo mo2f_lt( 'Upto 5000 users - $799 per year' ); ?> </option>
|
665 |
+
<option> <?php echo mo2f_lt( 'Upto 10000 users - $999 per year ' ); ?></option>
|
666 |
+
<option> <?php echo mo2f_lt( 'Upto 20000 users - $1449 per year' ); ?> </option>
|
667 |
|
668 |
</select>
|
669 |
</p>
|
675 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
676 |
|
677 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
678 |
+
<option> <?php echo mo2f_lt( 'Upto 5 users - $59 per year' ); ?> </option>
|
679 |
+
<option> <?php echo mo2f_lt( 'Upto 50 users - $128 per year' ); ?> </option>
|
680 |
+
<option> <?php echo mo2f_lt( 'Upto 100 users - $228 per year' ); ?> </option>
|
681 |
+
<option> <?php echo mo2f_lt( 'Upto 500 users - $378 per year' ); ?> </option>
|
682 |
+
<option> <?php echo mo2f_lt( 'Upto 1000 users - $528 per year' ); ?> </option>
|
683 |
+
<option> <?php echo mo2f_lt( 'Upto 5000 users - $828 per year' ); ?> </option>
|
684 |
+
<option> <?php echo mo2f_lt( 'Upto 10000 users - $1028 per year ' ); ?></option>
|
685 |
+
<option> <?php echo mo2f_lt( 'Upto 20000 users - $1478 per year' ); ?> </option>
|
686 |
|
687 |
</select>
|
688 |
</p>
|
694 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
695 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
696 |
<option> <?php echo mo2f_lt( '1 site - $99 per year' ); ?> </option>
|
697 |
+
<option> <?php echo mo2f_lt( 'Upto 2 sites - $159 per year' ); ?> </option>
|
698 |
+
<option> <?php echo mo2f_lt( 'Upto 5 sites - $199 per year' ); ?> </option>
|
699 |
+
<option> <?php echo mo2f_lt( 'Upto 10 sites - $259 per year' ); ?> </option>
|
700 |
+
<option> <?php echo mo2f_lt( 'Upto 25 sites - $349 per year' ); ?> </option>
|
701 |
<option> <?php echo mo2f_lt( '25+ sites - contact us' ); ?> </option>
|
702 |
</select>
|
703 |
</p>
|
709 |
id="mo2f_yearly_sub"><?php echo __( 'Yearly Subscription Fees', 'miniorange-2-factor-authentication' ); ?><br>
|
710 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
711 |
<option> <?php echo mo2f_lt( '1 site - $49 per year' ); ?> </option>
|
712 |
+
<option> <?php echo mo2f_lt( 'Upto 2 sites - $79 per year' ); ?> </option>
|
713 |
+
<option> <?php echo mo2f_lt( 'Upto 5 sites - $99 per year' ); ?> </option>
|
714 |
+
<option> <?php echo mo2f_lt( 'Upto 10 sites - $149 per year' ); ?> </option>
|
715 |
+
<option> <?php echo mo2f_lt( 'Upto 25 sites - $199 per year' ); ?> </option>
|
716 |
<option> <?php echo mo2f_lt( '25+ sites - contact us' ); ?> </option>
|
717 |
</select>
|
718 |
</p>
|
725 |
|
726 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
727 |
<option> <?php echo mo2f_lt( '1 site - $50 per year' ); ?> </option>
|
728 |
+
<option> <?php echo mo2f_lt( 'Upto 5 sites - $100 per year' ); ?> </option>
|
729 |
+
<option> <?php echo mo2f_lt( 'Upto 10 sites - $150 per year' ); ?> </option>
|
730 |
|
731 |
</select>
|
732 |
</p>
|
740 |
|
741 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
742 |
<option> <?php echo mo2f_lt( '1 site - $15 per year' ); ?> </option>
|
743 |
+
<option> <?php echo mo2f_lt( 'Upto 5 sites - $35 per year' ); ?> </option>
|
744 |
+
<option> <?php echo mo2f_lt( 'Upto 10 sites - $60 per year' ); ?> </option>
|
745 |
|
746 |
</select>
|
747 |
</p>
|
755 |
|
756 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
757 |
<option> <?php echo mo2f_lt( '1 site - $30 per year' ); ?> </option>
|
758 |
+
<option> <?php echo mo2f_lt( 'Upto 5 sites - $50 per year' ); ?> </option>
|
759 |
+
<option> <?php echo mo2f_lt( 'Upto 10 sites - $70 per year' ); ?> </option>
|
760 |
|
761 |
</select>
|
762 |
</p>
|
770 |
|
771 |
<select id="mo2f_yearly" class="form-control" style="border-radius:5px;width:200px;">
|
772 |
<option> <?php echo mo2f_lt( '1 site - $15 per year' ); ?> </option>
|
773 |
+
<option> <?php echo mo2f_lt( 'Upto 5 sites - $35 per year' ); ?> </option>
|
774 |
+
<option> <?php echo mo2f_lt( 'Upto 10 sites - $60 per year' ); ?> </option>
|
775 |
|
776 |
</select>
|
777 |
</p>
|
794 |
{
|
795 |
jQuery("#mo2f_features_id").hide(1500);
|
796 |
|
|
|
|
|
797 |
document.getElementById("mo2f_show_features").style.display = "none";
|
798 |
document.getElementById("mo2f_hide_features").style.display = "block";
|
799 |
|
801 |
|
802 |
function mo2fa_hide_detail_features()
|
803 |
{
|
|
|
804 |
jQuery("#mo2f_features_id").show(1500);
|
805 |
|
806 |
document.getElementById("mo2f_show_features").style.display = "block";
|
825 |
jQuery('#requestOrigin').val(planType);
|
826 |
jQuery('#mo2fa_loginform').submit();
|
827 |
}
|
828 |
+
function mo2f_register_and_upgradeform(planType)
|
829 |
+
{
|
830 |
+
jQuery('#requestOrigin').val(planType);
|
831 |
+
jQuery('input[name="requestOrigin"]').val(planType);
|
832 |
+
jQuery('#mo2fa_register_to_upgrade_form').submit();
|
833 |
+
}
|
834 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
835 |
function mo_2fa_lite_show_plans()
|
836 |
{
|
837 |
document.getElementById('mo_2fa_lite_features_only').style.display = "block";
|
839 |
document.getElementById('mo_ns_features_only').style.display = "none";
|
840 |
document.getElementById('mo2f_features_id').style.display = "none";
|
841 |
document.getElementById('mo2f_2fa_lite_features_id').style.display = "block";
|
842 |
+
document.getElementById('mo_2fa_lite_licensing_plans_title').style.display = "none";
|
843 |
+
document.getElementById('mo_2fa_lite_licensing_plans_title1').style.display = "block";
|
844 |
document.getElementById('mo_ns_licensing_plans_title').style.display = "block";
|
845 |
document.getElementById('mo_ns_licensing_plans_title1').style.display = "none";
|
846 |
document.getElementById('mo_2fa_licensing_plans_title').style.display = "block";
|
857 |
document.getElementById('mo_ns_licensing_plans_title1').style.display = "none";
|
858 |
document.getElementById('mo_2fa_licensing_plans_title').style.display = "none";
|
859 |
document.getElementById('mo_2fa_licensing_plans_title1').style.display = "block";
|
860 |
+
document.getElementById('mo_2fa_lite_licensing_plans_title').style.display = "block";
|
861 |
+
document.getElementById('mo_2fa_lite_licensing_plans_title1').style.display = "none";
|
862 |
}
|
863 |
function mo_ns_show_plans()
|
864 |
{
|
871 |
document.getElementById('mo_2fa_licensing_plans_title1').style.display = "none";
|
872 |
document.getElementById('mo_ns_licensing_plans_title1').style.display = "block";
|
873 |
document.getElementById('mo_ns_licensing_plans_title').style.display = "none";
|
874 |
+
document.getElementById('mo_2fa_lite_licensing_plans_title').style.display = "block";
|
875 |
+
document.getElementById('mo_2fa_lite_licensing_plans_title1').style.display = "none";
|
876 |
}
|
877 |
</script>
|