Social Login - Version 7.5.13

Version Description

  • Removed Instagram from social login applications.
  • Security Fixes.
  • Improvement on licensing page.
Download this release

Release Info

Developer cyberorange
Plugin Icon 128x128 Social Login
Version 7.5.13
Comparing to
See all releases

Code changes from version 7.5.12 to 7.5.13

miniorange_openid_sso_settings.php CHANGED
@@ -4,12 +4,12 @@
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Apple, Twitter, LinkedIn etc using customizable buttons.
7
- * Version: 7.5.12
8
  * Author: <a href="https://www.miniorange.com/">miniOrange</a>
9
  * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
  */
11
 
12
- define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.5.12');
13
  define('plugin_url', plugin_dir_url(__FILE__) . "includes/images/icons/");
14
  define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
15
  require('miniorange_openid_sso_settings_page.php');
@@ -47,7 +47,6 @@ class miniorange_openid_sso_settings
47
  add_action('wp_ajax_mo_openid_capp_details', 'mo_openid_capp_details_action');
48
  add_action('wp_ajax_mo_openid_capp_delete', 'mo_openid_capp_delete');
49
  add_action('wp_ajax_mo_openid_test_configuration_update', 'mo_openid_test_configuration_update_action');
50
- add_action('wp_ajax_mo_openid_social_linking', 'mo_openid_social_linking_action');
51
  add_action('wp_ajax_mo_openid_profile_comp', 'mo_openid_profile_comp_action');
52
  add_action('wp_ajax_custom_app_enable_change_update', 'custom_app_enable_change_update');
53
  add_action('wp_ajax_mo_register_customer_toggle_update', 'mo_register_customer_toggle_update');
@@ -86,14 +85,14 @@ class miniorange_openid_sso_settings
86
  update_option('mo_openid_customer_token', 'jMj7MEdu4wkHObiD');
87
  update_option('mo_openid_admin_customer_key', '253560');
88
  }
89
- add_option('app_pos','facebook#google#discord#twitter#vkontakte#instagram#linkedin#amazon#salesforce#yahoo#snapchat#dribbble');
90
  if(strlen(get_option('app_pos')) != 114) {
91
  delete_option('app_pos');
92
- add_option('app_pos','facebook#google#discord#twitter#vkontakte#instagram#linkedin#amazon#salesforce#yahoo#snapchat#dribbble');
93
  }
94
  if(strlen(get_option('app_pos')) != 102) {
95
  delete_option('app_pos');
96
- add_option('app_pos','facebook#google#discord#twitter#vkontakte#instagram#linkedin#amazon#salesforce#yahoo#snapchat#dribbble');
97
  }
98
  update_option('app_pos_premium','apple#paypal#wordpress#github#hubspot#mailru#gitlab#steam#slack#trello#disqus#pinterest#yandex#spotify#reddit#tumblr#twitch#vimeo#kakao#flickr#line#meetup#dropbox#stackexchange#livejournal#foursquare#teamsnap#naver#odnoklassniki#wiebo#wechat#baidu#renren#qq#fitbit#stackoverflow#mailchimp#youtube#strava');
99
  add_option('mo_openid_default_login_enable',1);
@@ -314,8 +313,6 @@ Thank you.';
314
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-General Settings','Social Sharing', 'administrator','mo_openid_social_sharing_settings','mo_register_sharing_openid' );
315
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-General Settings','Social Commenting', 'administrator','mo_openid_social_commenting_settings','mo_comment_openid');
316
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-Add_On','Custom Registration Add-On', 'administrator','mo_openid_settings_addOn','mo_openid_addon_desc_page');
317
- $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-WooCommerce_Add_On','WooCommerce Add-On', 'administrator','mo_openid_woocommerce_add_on','mo_openid_addon_desc_page');
318
- $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-BuddyPress_Add_On','BuddyPress Add-On', 'administrator','mo_openid_buddypress_add_on','mo_openid_addon_desc_page');
319
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-MailChimp_Add_On','MailChimp Add-On', 'administrator','mo_openid_mailchimp_add_on','mo_openid_addon_desc_page');
320
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-HubSpot_Add_On','HubSpot Add-On', 'administrator','mo_openid_hubspot_add_on','mo_openid_addon_desc_page');
321
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-Discord_Add_On','Discord Add-On', 'administrator','mo_openid_discord_add_on','mo_openid_addon_desc_page');
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Apple, Twitter, LinkedIn etc using customizable buttons.
7
+ * Version: 7.5.13
8
  * Author: <a href="https://www.miniorange.com/">miniOrange</a>
9
  * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
  */
11
 
12
+ define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.5.13');
13
  define('plugin_url', plugin_dir_url(__FILE__) . "includes/images/icons/");
14
  define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
15
  require('miniorange_openid_sso_settings_page.php');
47
  add_action('wp_ajax_mo_openid_capp_details', 'mo_openid_capp_details_action');
48
  add_action('wp_ajax_mo_openid_capp_delete', 'mo_openid_capp_delete');
49
  add_action('wp_ajax_mo_openid_test_configuration_update', 'mo_openid_test_configuration_update_action');
 
50
  add_action('wp_ajax_mo_openid_profile_comp', 'mo_openid_profile_comp_action');
51
  add_action('wp_ajax_custom_app_enable_change_update', 'custom_app_enable_change_update');
52
  add_action('wp_ajax_mo_register_customer_toggle_update', 'mo_register_customer_toggle_update');
85
  update_option('mo_openid_customer_token', 'jMj7MEdu4wkHObiD');
86
  update_option('mo_openid_admin_customer_key', '253560');
87
  }
88
+ add_option('app_pos','facebook#google#discord#twitter#vkontakte#linkedin#amazon#salesforce#yahoo#snapchat#dribbble');
89
  if(strlen(get_option('app_pos')) != 114) {
90
  delete_option('app_pos');
91
+ add_option('app_pos','facebook#google#discord#twitter#vkontakte#linkedin#amazon#salesforce#yahoo#snapchat#dribbble');
92
  }
93
  if(strlen(get_option('app_pos')) != 102) {
94
  delete_option('app_pos');
95
+ add_option('app_pos','facebook#google#discord#twitter#vkontakte#linkedin#amazon#salesforce#yahoo#snapchat#dribbble');
96
  }
97
  update_option('app_pos_premium','apple#paypal#wordpress#github#hubspot#mailru#gitlab#steam#slack#trello#disqus#pinterest#yandex#spotify#reddit#tumblr#twitch#vimeo#kakao#flickr#line#meetup#dropbox#stackexchange#livejournal#foursquare#teamsnap#naver#odnoklassniki#wiebo#wechat#baidu#renren#qq#fitbit#stackoverflow#mailchimp#youtube#strava');
98
  add_option('mo_openid_default_login_enable',1);
313
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-General Settings','Social Sharing', 'administrator','mo_openid_social_sharing_settings','mo_register_sharing_openid' );
314
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-General Settings','Social Commenting', 'administrator','mo_openid_social_commenting_settings','mo_comment_openid');
315
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-Add_On','Custom Registration Add-On', 'administrator','mo_openid_settings_addOn','mo_openid_addon_desc_page');
 
 
316
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-MailChimp_Add_On','MailChimp Add-On', 'administrator','mo_openid_mailchimp_add_on','mo_openid_addon_desc_page');
317
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-HubSpot_Add_On','HubSpot Add-On', 'administrator','mo_openid_hubspot_add_on','mo_openid_addon_desc_page');
318
  $page = add_submenu_page( 'mo_openid_settings', 'MiniOrange-Discord_Add_On','Discord Add-On', 'administrator','mo_openid_discord_add_on','mo_openid_addon_desc_page');
miniorange_openid_sso_settings_page.php CHANGED
@@ -31,9 +31,7 @@ require('view/soc_com/com_select_app/mo_openid_comm_select_app.php');
31
  require('view/soc_com/com_Enable/mo_openid_comm_enable.php');
32
  require('view/soc_com/com_shrtco/comm_shrtco.php');
33
  include('view/add_on/custom_registration_form.php');
34
- require('view/add_on/mo_woocommerce_add_on.php');
35
  require('view/add_on/mo_mailchimp_add_on.php');
36
- require('view/add_on/mo_buddypress_add_on.php');
37
  require('view/add_on/mo_hubspot_add_on.php');
38
  require('view/add_on/mo_discord_add_on.php');
39
  require('view/soc_sha/soc_med_cust/mo_openid_social_media_cust.php');
@@ -349,6 +347,7 @@ function mo_register_openid() {
349
  <?php update_option('mo_openid_extension_tab','0');?>
350
  }
351
  function form_popup(rating){
 
352
  jQuery.ajax({
353
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
354
  method: "POST", //request type,
@@ -356,6 +355,7 @@ function mo_register_openid() {
356
  data: {
357
  action: 'mo_openid_rating_given',
358
  rating: rating,
 
359
  },
360
  success: function (result) {
361
  jQuery("#mo_openid_support_form_feedback").show();
@@ -1054,12 +1054,8 @@ function mo_openid_addon_desc_page() {
1054
  }
1055
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_settings_addOn')
1056
  $active_tab = 'custom_registration_form';
1057
- elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_woocommerce_add_on')
1058
- $active_tab = 'mo_woocommerce_add_on';
1059
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_mailchimp_add_on')
1060
  $active_tab = 'mo_mailchimp_add_on';
1061
- elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_buddypress_add_on')
1062
- $active_tab = 'mo_buddypress_add_on';
1063
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_hubspot_add_on')
1064
  $active_tab = 'mo_hubspot_add_on';
1065
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_discord_add_on')
@@ -1136,8 +1132,6 @@ else
1136
  </div>
1137
  <div class="mo_openid_tab" style="min-height:395px;width:100%; height: 445px;border-radius: 0px 0px 0px 15px;">
1138
  <a id="custom_registration_form" class="tablinks<?php if($active_tab=="custom_registration_form") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'custom_registration_form'), $_SERVER['REQUEST_URI'] ); ?>">Custom Registration Form</a>
1139
- <a id="mo_woocommerce_add_on" class="tablinks<?php if($active_tab=="mo_woocommerce_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_woocommerce_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('WooCommerce Add on');?></a>
1140
- <a id="mo_buddypress_add_on" class="tablinks<?php if($active_tab=="mo_buddypress_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_buddypress_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('BuddyPress Add on');?></a>
1141
  <a id="mo_mailchimp_add_on" class="tablinks<?php if($active_tab=="mo_mailchimp_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_mailchimp_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('MailChimp Add on');?></a>
1142
  <a id="mo_hubspot_add_on" class="tablinks<?php if($active_tab=="mo_hubspot_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_hubspot_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('HubSpot Add on');?></a>
1143
  <a id="mo_discord_add_on" class="tablinks<?php if($active_tab=="mo_discord_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_discord_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('Discord Add on');?></a>
@@ -1183,19 +1177,6 @@ else
1183
  else
1184
  mo_openid_custom_registration_form();
1185
  break;
1186
- case 'mo_woocommerce_add_on':
1187
- if(mo_openid_is_customer_registered() && mo_openid_is_wca_license_key_verified()) {
1188
- if (is_plugin_active('miniorange-login-openid-woocommerce-addon/miniorange_openid_woocommerce_integration_addon.php')) {
1189
- do_action('mo_wc_addon');
1190
- }
1191
- else {
1192
- $addon_message_type = 'WooCommerce Addon';
1193
- mo_openid_show_addon_message_page($addon_message_type);
1194
- }
1195
- }
1196
- else
1197
- mo_openid_woocommerce_add_on();
1198
- break;
1199
  case 'mo_mailchimp_add_on':
1200
  if(mo_openid_is_customer_registered() && mo_openid_is_mailc_license_key_verified()) {
1201
  if (is_plugin_active('miniorange-login-openid-mailchimp-addon/miniorange_openid_mailchimp_addon.php')) {
@@ -1209,19 +1190,6 @@ else
1209
  else
1210
  mo_openid_mailchimp_add_on();
1211
  break;
1212
- case 'mo_buddypress_add_on':
1213
- if(mo_openid_is_customer_registered() && mo_openid_is_bpp_license_key_verified()) {
1214
- if (is_plugin_active('miniorange-login-openid-buddypress-addon/mo_openid_buddypress_display_addon.php')) {
1215
- do_action('buddypress_integration_addon');
1216
- }
1217
- else {
1218
- $addon_message_type = 'BuddyPress Addon';
1219
- mo_openid_show_addon_message_page($addon_message_type);
1220
- }
1221
- }
1222
- else
1223
- mo_openid_buddypress_addon_display();
1224
- break;
1225
  case 'mo_hubspot_add_on':
1226
  if(mo_openid_is_customer_registered() && mo_openid_is_hub_license_key_verified()) {
1227
  if (is_plugin_active('miniorange-login-openid-hubspot-addon/mo_openid_hubspot_integration.php')) {
31
  require('view/soc_com/com_Enable/mo_openid_comm_enable.php');
32
  require('view/soc_com/com_shrtco/comm_shrtco.php');
33
  include('view/add_on/custom_registration_form.php');
 
34
  require('view/add_on/mo_mailchimp_add_on.php');
 
35
  require('view/add_on/mo_hubspot_add_on.php');
36
  require('view/add_on/mo_discord_add_on.php');
37
  require('view/soc_sha/soc_med_cust/mo_openid_social_media_cust.php');
347
  <?php update_option('mo_openid_extension_tab','0');?>
348
  }
349
  function form_popup(rating){
350
+ var mo_openid_rating_given_nonce = '<?php echo wp_create_nonce('mo-openid-rating-given-nonce'); ?>';
351
  jQuery.ajax({
352
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
353
  method: "POST", //request type,
355
  data: {
356
  action: 'mo_openid_rating_given',
357
  rating: rating,
358
+ 'mo_openid_rating_given_nonce' : mo_openid_rating_given_nonce,
359
  },
360
  success: function (result) {
361
  jQuery("#mo_openid_support_form_feedback").show();
1054
  }
1055
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_settings_addOn')
1056
  $active_tab = 'custom_registration_form';
 
 
1057
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_mailchimp_add_on')
1058
  $active_tab = 'mo_mailchimp_add_on';
 
 
1059
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_hubspot_add_on')
1060
  $active_tab = 'mo_hubspot_add_on';
1061
  elseif (isset($_REQUEST) && $_REQUEST['page'] == 'mo_openid_discord_add_on')
1132
  </div>
1133
  <div class="mo_openid_tab" style="min-height:395px;width:100%; height: 445px;border-radius: 0px 0px 0px 15px;">
1134
  <a id="custom_registration_form" class="tablinks<?php if($active_tab=="custom_registration_form") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'custom_registration_form'), $_SERVER['REQUEST_URI'] ); ?>">Custom Registration Form</a>
 
 
1135
  <a id="mo_mailchimp_add_on" class="tablinks<?php if($active_tab=="mo_mailchimp_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_mailchimp_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('MailChimp Add on');?></a>
1136
  <a id="mo_hubspot_add_on" class="tablinks<?php if($active_tab=="mo_hubspot_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_hubspot_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('HubSpot Add on');?></a>
1137
  <a id="mo_discord_add_on" class="tablinks<?php if($active_tab=="mo_discord_add_on") echo '_active';?>" href="<?php echo add_query_arg( array('tab' => 'mo_discord_add_on'), $_SERVER['REQUEST_URI'] ); ?>"><?php echo mo_sl('Discord Add on');?></a>
1177
  else
1178
  mo_openid_custom_registration_form();
1179
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
1180
  case 'mo_mailchimp_add_on':
1181
  if(mo_openid_is_customer_registered() && mo_openid_is_mailc_license_key_verified()) {
1182
  if (is_plugin_active('miniorange-login-openid-mailchimp-addon/miniorange_openid_mailchimp_addon.php')) {
1190
  else
1191
  mo_openid_mailchimp_add_on();
1192
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
1193
  case 'mo_hubspot_add_on':
1194
  if(mo_openid_is_customer_registered() && mo_openid_is_hub_license_key_verified()) {
1195
  if (is_plugin_active('miniorange-login-openid-hubspot-addon/mo_openid_hubspot_integration.php')) {
mo-openid-social-login-functions.php CHANGED
@@ -670,6 +670,11 @@ function mo_openid_show_addon_message_page($add)
670
  }
671
 
672
  function mo_openid_show_verify_addon_license_page(){
 
 
 
 
 
673
  if(sanitize_text_field($_POST['plan_name'])=='extra_attributes_addon')
674
  wp_send_json(["html"=> mo_openid_show_verify_license_page('extra_attributes_addon')]);
675
  else if(sanitize_text_field($_POST['plan_name'])=='WP_SOCIAL_LOGIN_WOOCOMMERCE_ADDON')
@@ -682,7 +687,8 @@ function mo_openid_show_verify_addon_license_page(){
682
  wp_send_json(["html"=> mo_openid_show_verify_license_page('WP_SOCIAL_LOGIN_HUBSPOT_ADDON')]);
683
  else if(sanitize_text_field($_POST['plan_name'])=='WP_SOCIAL_LOGIN_DISCORD_ADDON')
684
  wp_send_json(["html"=> mo_openid_show_verify_license_page('WP_SOCIAL_LOGIN_DISCORD_ADDON')]);
685
-
 
686
  }
687
 
688
  function mo_openid_show_verify_license_page($licience_type){
@@ -1055,6 +1061,7 @@ function mo_openid_register_user()
1055
  $confirmPassword = '';
1056
  $illegal = "#$%^*()+=[]';,/{}|:<>?~";
1057
  $illegal = $illegal . '"';
 
1058
  if (mo_openid_check_empty_or_null($_POST['email']) || mo_openid_check_empty_or_null($_POST['password']) || mo_openid_check_empty_or_null($_POST['confirmPassword'])) {
1059
  update_option('mo_openid_message', 'All the fields are required. Please enter valid entries.');
1060
  mo_openid_show_error_message();
@@ -1126,7 +1133,7 @@ function mo_openid_register_user()
1126
  delete_option('mo_openid_admin_password');
1127
 
1128
  }
1129
-
1130
  }
1131
 
1132
  function mo_register_old_user(){
@@ -1136,6 +1143,7 @@ function mo_register_old_user(){
1136
  $illegal = "#$%^*()+=[]';,/{}|:<>?~";
1137
  $illegal = $illegal . '"';
1138
  $message =new miniorange_openid_sso_settings();
 
1139
  if (mo_openid_check_empty_or_null($_POST['email']) || mo_openid_check_empty_or_null($_POST['password'])) {
1140
  update_option('mo_openid_message', 'All the fields are required. Please enter valid entries.');
1141
  $message->mo_openid_show_error_message();
@@ -1175,6 +1183,7 @@ function mo_register_old_user(){
1175
  }
1176
  update_option('mo_openid_admin_password', '');
1177
  }
 
1178
 
1179
  function mo_pop_show_verify_password_page() {
1180
  update_option('regi_pop_up','yes');
@@ -1254,7 +1263,7 @@ function mo_openid_share_action(){
1254
  if (!wp_verify_nonce($nonce, 'mo-openid-share')) {
1255
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
1256
  } else {
1257
-
1258
  $enable_id = sanitize_text_field($_POST['enabled']);
1259
 
1260
  if ($enable_id == "true") {
@@ -1265,6 +1274,7 @@ function mo_openid_share_action(){
1265
  update_option(sanitize_text_field($_POST['id_name']), 0);
1266
  }
1267
  }
 
1268
  }
1269
 
1270
  function mo_openid_restrict_user() {
@@ -1283,6 +1293,11 @@ function mo_openid_restrict_user() {
1283
 
1284
  function mo_sharing_app_value()
1285
  {
 
 
 
 
 
1286
  $return_apps='';
1287
  $count=1;
1288
  foreach ($_POST['app_name'] as $app) {
@@ -1297,7 +1312,8 @@ function mo_sharing_app_value()
1297
  }
1298
  }
1299
  wp_send_json($return_apps);
1300
-
 
1301
  }
1302
 
1303
  function update_custom_data($user_id)
@@ -1376,7 +1392,14 @@ function mo_openid_activation_message() {
1376
  }
1377
 
1378
  function mo_openid_rating_given(){
 
 
 
 
 
1379
  update_option("mo_openid_rating_given",sanitize_text_field($_POST['rating']));
 
 
1380
  }
1381
 
1382
  function mo_openid_add_custom_column1($columns){
670
  }
671
 
672
  function mo_openid_show_verify_addon_license_page(){
673
+ $nonce = sanitize_text_field($_POST['mo_openid_addon_verify_license_nonce']);
674
+ if (!wp_verify_nonce($nonce, 'mo-openid-addon-verify-license')) {
675
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
676
+ } else {
677
+ if(current_user_can('administrator')){
678
  if(sanitize_text_field($_POST['plan_name'])=='extra_attributes_addon')
679
  wp_send_json(["html"=> mo_openid_show_verify_license_page('extra_attributes_addon')]);
680
  else if(sanitize_text_field($_POST['plan_name'])=='WP_SOCIAL_LOGIN_WOOCOMMERCE_ADDON')
687
  wp_send_json(["html"=> mo_openid_show_verify_license_page('WP_SOCIAL_LOGIN_HUBSPOT_ADDON')]);
688
  else if(sanitize_text_field($_POST['plan_name'])=='WP_SOCIAL_LOGIN_DISCORD_ADDON')
689
  wp_send_json(["html"=> mo_openid_show_verify_license_page('WP_SOCIAL_LOGIN_DISCORD_ADDON')]);
690
+ }
691
+ }
692
  }
693
 
694
  function mo_openid_show_verify_license_page($licience_type){
1061
  $confirmPassword = '';
1062
  $illegal = "#$%^*()+=[]';,/{}|:<>?~";
1063
  $illegal = $illegal . '"';
1064
+ if(current_user_can('administrator')){
1065
  if (mo_openid_check_empty_or_null($_POST['email']) || mo_openid_check_empty_or_null($_POST['password']) || mo_openid_check_empty_or_null($_POST['confirmPassword'])) {
1066
  update_option('mo_openid_message', 'All the fields are required. Please enter valid entries.');
1067
  mo_openid_show_error_message();
1133
  delete_option('mo_openid_admin_password');
1134
 
1135
  }
1136
+ }
1137
  }
1138
 
1139
  function mo_register_old_user(){
1143
  $illegal = "#$%^*()+=[]';,/{}|:<>?~";
1144
  $illegal = $illegal . '"';
1145
  $message =new miniorange_openid_sso_settings();
1146
+ if(current_user_can('administrator')){
1147
  if (mo_openid_check_empty_or_null($_POST['email']) || mo_openid_check_empty_or_null($_POST['password'])) {
1148
  update_option('mo_openid_message', 'All the fields are required. Please enter valid entries.');
1149
  $message->mo_openid_show_error_message();
1183
  }
1184
  update_option('mo_openid_admin_password', '');
1185
  }
1186
+ }
1187
 
1188
  function mo_pop_show_verify_password_page() {
1189
  update_option('regi_pop_up','yes');
1263
  if (!wp_verify_nonce($nonce, 'mo-openid-share')) {
1264
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
1265
  } else {
1266
+ if(current_user_can('administrator')){
1267
  $enable_id = sanitize_text_field($_POST['enabled']);
1268
 
1269
  if ($enable_id == "true") {
1274
  update_option(sanitize_text_field($_POST['id_name']), 0);
1275
  }
1276
  }
1277
+ }
1278
  }
1279
 
1280
  function mo_openid_restrict_user() {
1293
 
1294
  function mo_sharing_app_value()
1295
  {
1296
+ $nonce = sanitize_text_field($_POST['mo_sharing_app_value_nonce']);
1297
+ if (!wp_verify_nonce($nonce, 'mo-sharing-app-value-nonce')) {
1298
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
1299
+ } else {
1300
+ if(current_user_can('administrator')){
1301
  $return_apps='';
1302
  $count=1;
1303
  foreach ($_POST['app_name'] as $app) {
1312
  }
1313
  }
1314
  wp_send_json($return_apps);
1315
+ }
1316
+ }
1317
  }
1318
 
1319
  function update_custom_data($user_id)
1392
  }
1393
 
1394
  function mo_openid_rating_given(){
1395
+ $nonce = sanitize_text_field($_POST['mo_openid_rating_given_nonce']);
1396
+ if (!wp_verify_nonce($nonce, 'mo-openid-rating-given-nonce')) {
1397
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
1398
+ } else {
1399
+ if(current_user_can('administrator')){
1400
  update_option("mo_openid_rating_given",sanitize_text_field($_POST['rating']));
1401
+ }
1402
+ }
1403
  }
1404
 
1405
  function mo_openid_add_custom_column1($columns){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
4
  Tags: social login, discord login, facebook login, google login, twitter login, social sharing, linkedIn login, user login, vkontakte login, social comments, woocommerce login, social connect, social network login, social plugin, windows, microsoft, openID, OAuth Login, social media login, user registration, social sign in.
5
  Requires at least: 2.0.2
6
  Tested up to: 6.0.0
7
- Stable tag: 7.5.12
8
  License: GPLv2 or later
9
  License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
 
@@ -281,6 +281,12 @@ Please email us at info@miniorange.com. You can also submit your query from the
281
  16. Social Sharing icons without background.
282
 
283
  ==Changelog==
 
 
 
 
 
 
284
  = 7.5.12 =
285
  * Update the list of social login application.
286
  * README update.
@@ -1002,6 +1008,11 @@ SECURITY FIXES
1002
  * First version of Social Login, Social Sharing plugin.
1003
 
1004
  == Upgrade Notice ==
 
 
 
 
 
1005
  = 7.5.12 =
1006
  * Update the list of social login application.
1007
  * README update.
4
  Tags: social login, discord login, facebook login, google login, twitter login, social sharing, linkedIn login, user login, vkontakte login, social comments, woocommerce login, social connect, social network login, social plugin, windows, microsoft, openID, OAuth Login, social media login, user registration, social sign in.
5
  Requires at least: 2.0.2
6
  Tested up to: 6.0.0
7
+ Stable tag: 7.5.13
8
  License: GPLv2 or later
9
  License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
 
281
  16. Social Sharing icons without background.
282
 
283
  ==Changelog==
284
+ = 7.5.13 =
285
+ * Removed Instagram from social login applications.
286
+ * Security Fixes.
287
+ * Improvement on licensing page.
288
+
289
+
290
  = 7.5.12 =
291
  * Update the list of social login application.
292
  * README update.
1008
  * First version of Social Login, Social Sharing plugin.
1009
 
1010
  == Upgrade Notice ==
1011
+ = 7.5.13 =
1012
+ * Removed Instagram from social login applications.
1013
+ * Security Fixes.
1014
+ * Improvement on licensing page.
1015
+
1016
  = 7.5.12 =
1017
  * Update the list of social login application.
1018
  * README update.
view/add_on/custom_registration_form.php CHANGED
@@ -211,12 +211,15 @@ function mo_openid_custom_registration_form()
211
  });
212
 
213
  function mo_verify_add_on_license_key() {
 
 
214
  jQuery.ajax({
215
  type: 'POST',
216
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
217
  data: {
218
  action:'verify_addon_licience',
219
  plan_name: 'extra_attributes_addon',
 
220
  },
221
  crossDomain :!0, dataType:"html",
222
  success: function(data) {
211
  });
212
 
213
  function mo_verify_add_on_license_key() {
214
+ var mo_openid_addon_verify_license_nonce = '<?php echo wp_create_nonce("mo-openid-addon-verify-license"); ?>';
215
+
216
  jQuery.ajax({
217
  type: 'POST',
218
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
219
  data: {
220
  action:'verify_addon_licience',
221
  plan_name: 'extra_attributes_addon',
222
+ 'mo_openid_addon_verify_license_nonce' : mo_openid_addon_verify_license_nonce,
223
  },
224
  crossDomain :!0, dataType:"html",
225
  success: function(data) {
view/add_on/mo_discord_add_on.php CHANGED
@@ -29,7 +29,7 @@ function mo_openid_discord_add_on_display()
29
  <hr>
30
  <div style="cursor: auto;" class="mo_openid_note_style">
31
  <span class="dashicons dashicons-info" style="vertical-align: bottom;font-size:medium;"></span>Are you looking for
32
- <i style="font-size: small" class="fab fa-discord"></i><b> Discord</b> Role Mapping with <i style="font-size: small" class="fab fa-wordpress"></i> Wordpress or <i style="font-size: small" class="far fa-user"></i> Membership plugins? <a style="cursor: pointer" href="https://plugins.miniorange.com/discord-wordpress-single-sign-on-integration" target="_blank">Click here</a> for more details.
33
  </div>
34
  <br>
35
  <div class="mo_openid_highlight">
@@ -95,12 +95,15 @@ function mo_openid_discord_add_on_display()
95
  });
96
 
97
  function mo_verify_add_on_license_key() {
 
98
  jQuery.ajax({
99
  type: 'POST',
100
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
101
  data: {
102
  action:'verify_addon_licience',
103
  plan_name: 'WP_SOCIAL_LOGIN_DISCORD_ADDON',
 
 
104
  },
105
  crossDomain :!0, dataType:"html",
106
  success: function(data) {
29
  <hr>
30
  <div style="cursor: auto;" class="mo_openid_note_style">
31
  <span class="dashicons dashicons-info" style="vertical-align: bottom;font-size:medium;"></span>Are you looking for
32
+ <i style="font-size: small" class="fab fa-discord"></i><b> Discord</b> Role Mapping with <i style="font-size: small" class="fab fa-wordpress"></i> Wordpress or <i style="font-size: small" class="far fa-user"></i> Membership plugins? We have a separate product for it. <a style="cursor: pointer" href="https://plugins.miniorange.com/discord-wordpress-single-sign-on-integration" target="_blank">Click here</a> for more details.
33
  </div>
34
  <br>
35
  <div class="mo_openid_highlight">
95
  });
96
 
97
  function mo_verify_add_on_license_key() {
98
+ var mo_openid_addon_verify_license_nonce = '<?php echo wp_create_nonce("mo-openid-addon-verify-license"); ?>';
99
  jQuery.ajax({
100
  type: 'POST',
101
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
102
  data: {
103
  action:'verify_addon_licience',
104
  plan_name: 'WP_SOCIAL_LOGIN_DISCORD_ADDON',
105
+ 'mo_openid_addon_verify_license_nonce' : mo_openid_addon_verify_license_nonce,
106
+
107
  },
108
  crossDomain :!0, dataType:"html",
109
  success: function(data) {
view/add_on/mo_hubspot_add_on.php CHANGED
@@ -140,12 +140,14 @@ function mo_openid_hubspot_add_on_display()
140
  });
141
 
142
  function mo_verify_add_on_license_key() {
 
143
  jQuery.ajax({
144
  type: 'POST',
145
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
146
  data: {
147
  action:'verify_addon_licience',
148
  plan_name: 'WP_SOCIAL_LOGIN_HUBSPOT_ADDON',
 
149
  },
150
  crossDomain :!0, dataType:"html",
151
  success: function(data) {
140
  });
141
 
142
  function mo_verify_add_on_license_key() {
143
+ var mo_openid_addon_verify_license_nonce = '<?php echo wp_create_nonce("mo-openid-addon-verify-license"); ?>';
144
  jQuery.ajax({
145
  type: 'POST',
146
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
147
  data: {
148
  action:'verify_addon_licience',
149
  plan_name: 'WP_SOCIAL_LOGIN_HUBSPOT_ADDON',
150
+ 'mo_openid_addon_verify_license_nonce' : mo_openid_addon_verify_license_nonce,
151
  },
152
  crossDomain :!0, dataType:"html",
153
  success: function(data) {
view/add_on/mo_mailchimp_add_on.php CHANGED
@@ -88,12 +88,14 @@ function mo_openid_mailchimp_add_on()
88
  });
89
 
90
  function mo_verify_add_on_license_key() {
 
91
  jQuery.ajax({
92
  type: 'POST',
93
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
94
  data: {
95
  action:'verify_addon_licience',
96
  plan_name: 'WP_SOCIAL_LOGIN_MAILCHIMP_ADDON',
 
97
  },
98
  crossDomain :!0, dataType:"html",
99
  success: function(data) {
88
  });
89
 
90
  function mo_verify_add_on_license_key() {
91
+ var mo_openid_addon_verify_license_nonce = '<?php echo wp_create_nonce("mo-openid-addon-verify-license"); ?>';
92
  jQuery.ajax({
93
  type: 'POST',
94
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
95
  data: {
96
  action:'verify_addon_licience',
97
  plan_name: 'WP_SOCIAL_LOGIN_MAILCHIMP_ADDON',
98
+ 'mo_openid_addon_verify_license_nonce' : mo_openid_addon_verify_license_nonce,
99
  },
100
  crossDomain :!0, dataType:"html",
101
  success: function(data) {
view/config_apps/mo_openid_config_apps.php CHANGED
@@ -158,12 +158,14 @@ function mo_openid_show_apps()
158
  if (true) {
159
  if (a.checked == true) {
160
  if (app_name == 'facebook' || app_name == 'twitter' || app_name == 'instagram' || app_name == 'snapchat' || app_name == 'dribbble' || app_name == 'discord') {
 
161
  jQuery.ajax({
162
  type: 'POST',
163
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
164
  data: {
165
  action: 'mo_openid_check_capp_enable',
166
  app_name: app_name,
 
167
  },
168
  success: function (result) {
169
  if (result.status) {
@@ -653,6 +655,9 @@ function mo_openid_show_apps()
653
  }
654
  else
655
  custom_app_enable_change=0;
 
 
 
656
  jQuery.ajax({
657
  url:"<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
658
  method: "POST", //request type,
@@ -661,6 +666,7 @@ function mo_openid_show_apps()
661
  appname: app_name,
662
  custom_app_enable_change : custom_app_enable_change,
663
  action: 'custom_app_enable_change_update',
 
664
  },
665
  success:function(result){
666
  mo_openid_ajax_wait_closeModal();
@@ -758,6 +764,7 @@ function mo_openid_show_apps()
758
  });
759
 
760
  function deactivate_app(app_name) {
 
761
  jQuery.ajax({
762
  url:"<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
763
  method: "POST", //request type,
@@ -765,6 +772,7 @@ function mo_openid_show_apps()
765
  data: {
766
  app_name: app_name,
767
  action: 'mo_disable_app',
 
768
  },
769
  success: function(result){
770
  var active_button = document.getElementById('mo_openid_'.concat(app_name).concat('_active_div'));
@@ -815,6 +823,7 @@ function mo_openid_show_apps()
815
  }
816
  function mo_test_config(){
817
  let app_name = jQuery(".mo-openid-app-name").attr("id");
 
818
  jQuery.ajax({
819
  url:"<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
820
  method: "POST", //request type,
@@ -823,6 +832,7 @@ function mo_openid_show_apps()
823
  appname: app_name,
824
  test_configuration : true,
825
  action: 'mo_openid_test_configuration_update',
 
826
  },
827
  success:function(result){
828
  var myWindow = window.open('<?php echo attribute_url(); ?>' + '/?option=oauthredirect&app_name='+app_name+'&wp_nonce='+'<?php echo wp_create_nonce( 'mo-openid-oauth-app-nonce' ); ?>', "", "width=950, height=600");
@@ -1139,6 +1149,8 @@ function mo_openid_show_apps()
1139
  });
1140
 
1141
  function form_popup1(rating){
 
 
1142
  jQuery.ajax({
1143
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
1144
  method: "POST", //request type,
@@ -1146,6 +1158,7 @@ function mo_openid_show_apps()
1146
  data: {
1147
  action: 'mo_openid_rating_given',
1148
  rating: rating,
 
1149
  },
1150
  success: function (result) { }
1151
  });
158
  if (true) {
159
  if (a.checked == true) {
160
  if (app_name == 'facebook' || app_name == 'twitter' || app_name == 'instagram' || app_name == 'snapchat' || app_name == 'dribbble' || app_name == 'discord') {
161
+ var mo_openid_check_capp_enable_nonce = '<?php echo wp_create_nonce("mo-openid-check-capp-enable"); ?>';
162
  jQuery.ajax({
163
  type: 'POST',
164
  url: '<?php echo admin_url("admin-ajax.php"); ?>',
165
  data: {
166
  action: 'mo_openid_check_capp_enable',
167
  app_name: app_name,
168
+ 'mo_openid_check_capp_enable_nonce': mo_openid_check_capp_enable_nonce,
169
  },
170
  success: function (result) {
171
  if (result.status) {
655
  }
656
  else
657
  custom_app_enable_change=0;
658
+
659
+ var mo_openid_custom_app_enable_change_nonce = '<?php echo wp_create_nonce("mo-openid-custom-app-enable-change-nonce"); ?>';
660
+
661
  jQuery.ajax({
662
  url:"<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
663
  method: "POST", //request type,
666
  appname: app_name,
667
  custom_app_enable_change : custom_app_enable_change,
668
  action: 'custom_app_enable_change_update',
669
+ 'mo_openid_custom_app_enable_change_nonce' : mo_openid_custom_app_enable_change_nonce,
670
  },
671
  success:function(result){
672
  mo_openid_ajax_wait_closeModal();
764
  });
765
 
766
  function deactivate_app(app_name) {
767
+ var mo_openid_disable_app_nonce = '<?php echo wp_create_nonce("mo-openid-disable-app"); ?>';
768
  jQuery.ajax({
769
  url:"<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
770
  method: "POST", //request type,
772
  data: {
773
  app_name: app_name,
774
  action: 'mo_disable_app',
775
+ 'mo_openid_disable_app_nonce' : mo_openid_disable_app_nonce,
776
  },
777
  success: function(result){
778
  var active_button = document.getElementById('mo_openid_'.concat(app_name).concat('_active_div'));
823
  }
824
  function mo_test_config(){
825
  let app_name = jQuery(".mo-openid-app-name").attr("id");
826
+ var mo_openid_test_config_nonce = '<?php echo esc_attr(wp_create_nonce("mo-openid-test-config-nonce")); ?>';
827
  jQuery.ajax({
828
  url:"<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
829
  method: "POST", //request type,
832
  appname: app_name,
833
  test_configuration : true,
834
  action: 'mo_openid_test_configuration_update',
835
+ 'mo_openid_test_config_nonce' : mo_openid_test_config_nonce,
836
  },
837
  success:function(result){
838
  var myWindow = window.open('<?php echo attribute_url(); ?>' + '/?option=oauthredirect&app_name='+app_name+'&wp_nonce='+'<?php echo wp_create_nonce( 'mo-openid-oauth-app-nonce' ); ?>', "", "width=950, height=600");
1149
  });
1150
 
1151
  function form_popup1(rating){
1152
+ var mo_openid_rating_given_nonce = '<?php echo wp_create_nonce('mo-openid-rating-given-nonce'); ?>';
1153
+
1154
  jQuery.ajax({
1155
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
1156
  method: "POST", //request type,
1158
  data: {
1159
  action: 'mo_openid_rating_given',
1160
  rating: rating,
1161
+ 'mo_openid_rating_given_nonce' : mo_openid_rating_given_nonce,
1162
  },
1163
  success: function (result) { }
1164
  });
view/config_apps/mo_openid_config_apps_funct.php CHANGED
@@ -5,6 +5,7 @@ function mo_openid_sso_sort_action(){
5
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-sort')) {
6
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
7
  } else {
 
8
  $app_sequence=array_map( 'sanitize_text_field', $_POST['sequence']);
9
  $app_pos='';
10
  $flag=0;
@@ -19,6 +20,7 @@ function mo_openid_sso_sort_action(){
19
  update_option('app_pos',$app_pos);
20
  wp_send_json("hello_sort");
21
  }
 
22
  }
23
 
24
  //To enable and disable apps
@@ -28,6 +30,7 @@ function mo_openid_sso_enable_app()
28
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-enable-app')) {
29
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
30
  } else {
 
31
  $enable_app = sanitize_text_field($_POST['enabled']);
32
  if ($enable_app == "true") {
33
  update_option('mo_openid_' . sanitize_text_field($_POST['app_name']) . '_enable', 1);
@@ -35,6 +38,7 @@ function mo_openid_sso_enable_app()
35
  update_option('mo_openid_' . sanitize_text_field($_POST['app_name']) . '_enable', 0);
36
  }
37
  }
 
38
  }
39
 
40
  //to load instructions of custom app
@@ -44,6 +48,7 @@ function mo_openid_app_instructions_action()
44
  if (!wp_verify_nonce($nonce, 'mo-openid-app-instructions')) {
45
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
46
  } else {
 
47
  $social_app = sanitize_text_field($_POST['app_name']);
48
  $instructions = plugin_url . $social_app . ".png##";
49
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
@@ -85,6 +90,7 @@ function mo_openid_app_instructions_action()
85
  $instructions .= $social_app->instructions;
86
  wp_send_json($instructions);
87
  }
 
88
  }
89
 
90
  function mo_openid_capp_details_action()
@@ -93,19 +99,11 @@ function mo_openid_capp_details_action()
93
  if (!wp_verify_nonce($nonce, 'mo-openid-capp-details')) {
94
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
95
  } else {
 
96
  $clientid = stripslashes(sanitize_text_field($_POST['app_id']));
97
  $clientsecret = stripslashes(sanitize_text_field($_POST['app_secret']));
98
  $scope = stripslashes(sanitize_text_field($_POST['app_scope']));
99
  $appname = stripslashes(sanitize_text_field($_POST['app_name']));
100
- // if ($appname == "facebook") {
101
- // if (get_option('facebook_profile_pic_resolution')) {
102
- // $resolution = isset($_POST['profile_resolution']) ? $_POST['profile_resolution'] : '';
103
- // update_option('facebook_profile_pic_resolution', $resolution);
104
- // } else {
105
- // $resolution = isset($_POST['profile_resolution']) ? $_POST['profile_resolution'] : '';
106
- // add_option('facebook_profile_pic_resolution', $resolution);
107
- // }
108
- // }
109
  if (get_option('mo_openid_apps_list'))
110
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
111
  else
@@ -128,9 +126,15 @@ function mo_openid_capp_details_action()
128
  update_option('mo_openid_enable_custom_app_'.$appname, '1');
129
  update_option('mo_openid_' . $appname . '_enable', 1);
130
  }
 
131
  }
132
 
133
  function mo_openid_capp_delete(){
 
 
 
 
 
134
  $appname = stripslashes(sanitize_text_field($_POST['app_name']));
135
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
136
  $status= get_option('mo_openid_enable_custom_app_'.$appname);
@@ -146,15 +150,31 @@ function mo_openid_capp_delete(){
146
  update_option('mo_openid_enable_custom_app_'.$appname,'0');
147
  wp_send_json(["status" => $status]);
148
  }
 
 
149
 
150
  function mo_disable_app(){
 
 
 
 
 
151
  $appname = sanitize_text_field($_POST['app_name']);
152
  update_option('mo_openid_enable_custom_app_'.$appname,0);
153
  update_option('mo_openid_'.$appname.'_enable',0);
 
 
154
  }
155
 
156
  function mo_openid_test_configuration_update_action(){
 
 
 
 
 
157
  update_option('mo_openid_test_configuration',1);
 
 
158
  }
159
 
160
  function attribute_url(){
@@ -164,6 +184,11 @@ function attribute_url(){
164
 
165
  function custom_app_enable_change_update()
166
  {
 
 
 
 
 
167
  $appname = stripslashes(sanitize_text_field($_POST['appname']));
168
  if (sanitize_text_field($_POST['custom_app_enable_change'])) { //set default app
169
  if (mo_openid_is_customer_registered()) {
@@ -190,6 +215,8 @@ function custom_app_enable_change_update()
190
  wp_send_json(["status" => "No_cust_app"]);
191
  }
192
  }
 
 
193
 
194
  function mo_register_customer_toggle_update(){
195
  if(mo_openid_is_customer_registered()){
@@ -203,6 +230,12 @@ function mo_register_customer_toggle_update(){
203
  }
204
 
205
  function mo_openid_check_capp_enable(){
 
 
 
 
 
 
206
  if (get_option('mo_openid_apps_list')){
207
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
208
  $appname = stripslashes(sanitize_text_field($_POST['app_name']));
@@ -214,4 +247,6 @@ function mo_openid_check_capp_enable(){
214
  }
215
  else
216
  wp_send_json(["status"=>false]);
217
- }
 
 
5
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-sort')) {
6
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
7
  } else {
8
+ if(current_user_can('administrator')){
9
  $app_sequence=array_map( 'sanitize_text_field', $_POST['sequence']);
10
  $app_pos='';
11
  $flag=0;
20
  update_option('app_pos',$app_pos);
21
  wp_send_json("hello_sort");
22
  }
23
+ }
24
  }
25
 
26
  //To enable and disable apps
30
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-enable-app')) {
31
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
32
  } else {
33
+ if(current_user_can('administrator')){
34
  $enable_app = sanitize_text_field($_POST['enabled']);
35
  if ($enable_app == "true") {
36
  update_option('mo_openid_' . sanitize_text_field($_POST['app_name']) . '_enable', 1);
38
  update_option('mo_openid_' . sanitize_text_field($_POST['app_name']) . '_enable', 0);
39
  }
40
  }
41
+ }
42
  }
43
 
44
  //to load instructions of custom app
48
  if (!wp_verify_nonce($nonce, 'mo-openid-app-instructions')) {
49
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
50
  } else {
51
+ if(current_user_can('administrator')){
52
  $social_app = sanitize_text_field($_POST['app_name']);
53
  $instructions = plugin_url . $social_app . ".png##";
54
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
90
  $instructions .= $social_app->instructions;
91
  wp_send_json($instructions);
92
  }
93
+ }
94
  }
95
 
96
  function mo_openid_capp_details_action()
99
  if (!wp_verify_nonce($nonce, 'mo-openid-capp-details')) {
100
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
101
  } else {
102
+ if(current_user_can('administrator')){
103
  $clientid = stripslashes(sanitize_text_field($_POST['app_id']));
104
  $clientsecret = stripslashes(sanitize_text_field($_POST['app_secret']));
105
  $scope = stripslashes(sanitize_text_field($_POST['app_scope']));
106
  $appname = stripslashes(sanitize_text_field($_POST['app_name']));
 
 
 
 
 
 
 
 
 
107
  if (get_option('mo_openid_apps_list'))
108
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
109
  else
126
  update_option('mo_openid_enable_custom_app_'.$appname, '1');
127
  update_option('mo_openid_' . $appname . '_enable', 1);
128
  }
129
+ }
130
  }
131
 
132
  function mo_openid_capp_delete(){
133
+ $nonce = sanitize_text_field($_POST['mo_openid_capp_delete_nonce']);
134
+ if (!wp_verify_nonce($nonce, 'mo-openid-capp-delete')) {
135
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
136
+ } else {
137
+ if(current_user_can('administrator')){
138
  $appname = stripslashes(sanitize_text_field($_POST['app_name']));
139
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
140
  $status= get_option('mo_openid_enable_custom_app_'.$appname);
150
  update_option('mo_openid_enable_custom_app_'.$appname,'0');
151
  wp_send_json(["status" => $status]);
152
  }
153
+ }
154
+ }
155
 
156
  function mo_disable_app(){
157
+ $nonce = sanitize_text_field($_POST['mo_openid_disable_app_nonce']);
158
+ if (!wp_verify_nonce($nonce, 'mo-openid-disable-app')) {
159
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
160
+ } else {
161
+ if(current_user_can('administrator')){
162
  $appname = sanitize_text_field($_POST['app_name']);
163
  update_option('mo_openid_enable_custom_app_'.$appname,0);
164
  update_option('mo_openid_'.$appname.'_enable',0);
165
+ }
166
+ }
167
  }
168
 
169
  function mo_openid_test_configuration_update_action(){
170
+ $nonce = sanitize_text_field($_POST['mo_openid_test_config_nonce']);
171
+ if (!wp_verify_nonce($nonce, 'mo-openid-test-config-nonce')) {
172
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
173
+ } else {
174
+ if(current_user_can('administrator')){
175
  update_option('mo_openid_test_configuration',1);
176
+ }
177
+ }
178
  }
179
 
180
  function attribute_url(){
184
 
185
  function custom_app_enable_change_update()
186
  {
187
+ $nonce = sanitize_text_field($_POST['mo_openid_custom_app_enable_change_nonce']);
188
+ if (!wp_verify_nonce($nonce, 'mo-openid-custom-app-enable-change-nonce')) {
189
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
190
+ } else {
191
+ if(current_user_can('administrator')){
192
  $appname = stripslashes(sanitize_text_field($_POST['appname']));
193
  if (sanitize_text_field($_POST['custom_app_enable_change'])) { //set default app
194
  if (mo_openid_is_customer_registered()) {
215
  wp_send_json(["status" => "No_cust_app"]);
216
  }
217
  }
218
+ }
219
+ }
220
 
221
  function mo_register_customer_toggle_update(){
222
  if(mo_openid_is_customer_registered()){
230
  }
231
 
232
  function mo_openid_check_capp_enable(){
233
+
234
+ $nonce = sanitize_text_field($_POST['mo_openid_check_capp_enable_nonce']);
235
+ if (!wp_verify_nonce($nonce, 'mo-openid-check-capp-enable')) {
236
+ wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
237
+ } else {
238
+ if(current_user_can('administrator')){
239
  if (get_option('mo_openid_apps_list')){
240
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
241
  $appname = stripslashes(sanitize_text_field($_POST['app_name']));
247
  }
248
  else
249
  wp_send_json(["status"=>false]);
250
+ }
251
+ }
252
+ }
view/licensing_plans/mo_openid_lic_plans.php CHANGED
@@ -28,313 +28,25 @@ function mo_openid_licensing_plans()
28
  <!-- </div>-->
29
 
30
 
31
- <div style="line-height: initial; background: #ffd868;border-radius:5px;font-size: large;margin-top:10px;padding:10px;border-style: solid;border-color: #2f6062">
32
- <span class="dashicons dashicons-info" style="vertical-align: bottom;"></span>Are you looking for
33
- <i style="font-size: larger" class="fab fa-discord"></i><b> Discord</b> Role Mapping with <i style="font-size: larger" class="fab fa-wordpress"></i> Wordpress or <i style="font-size: larger" class="far fa-user"></i> Membership plugins? <a style="cursor: pointer" href="https://plugins.miniorange.com/discord-wordpress-single-sign-on-integration" target="_blank">Click here</a> for more details.
34
- </div>
35
-
36
- <div id="mo_share_plan" style="background: antiquewhite; line-height: initial; border-radius:5px;font-size: large;margin-top:10px;padding:10px;border-style: solid;">
37
- <i style="font-size: larger" class="far fa-share-alt"></i> A new S<span style="color: orangered">o</span>cial Sharing plan with attractive features and <b>45 sharing applications</b> is available only for <b>$19</b> <a style="cursor: pointer" href="https://login.xecurify.com/moas/login?redirectUrl=https://login.xecurify.com/moas/initializepayment&requestOrigin=wp_social_login_share_plan" target="_blank">Click here</a> to upgrade and <a style="cursor: pointer" href="#" onclick="mo_all_features_clk('social_share')">Click here</a> for more details.
38
- </div>
39
-
40
- <ul id="list-type" class="mo-openid-cd-pricing-list cd-bounce-invert" >
41
-
42
- <li>
43
- <ul class="mo-openid-cd-pricing-wrapper" id="col1">
44
- <li data-type="singlesite" class="mosslp is-visible" style="">
45
- <header class="mo-openid-cd-pricing-header">
46
- <h2 style="margin-bottom: 10%;" >Standard<span style="font-size:0.5em"></span></h2>
47
-
48
- <label for="mo_openid_std">Select No. of Instances : </label>
49
- <select name="mo_openid_std" id="mo_openid_std">
50
- <option value="1">1</option>
51
- <option value="5">5</option>
52
- <option value="10">10</option>
53
- </select>
54
-
55
- <div class="cd-price" style="margin-top: 9%;">
56
- <span class="mo-openid-cd-currency">$</span>
57
- <span id="mo_openid_std1" class="mo-openid-cd-value">29</span> &nbsp;&nbsp;
58
- <span class="mo-openid-cd-currency">$</span>
59
- <span id="mo_openid_std2" class="mo-openid-cd-value"><s>39</s></span>
60
- </div>
61
- </header> <!-- .mo-openid-cd-pricing-header -->
62
- <footer class="mo-openid-cd-pricing-footer">
63
- <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_standard_plan')" >Upgrade Now</a>
64
- </footer>
65
- <div class="mo-openid-cd-pricing-body">
66
- <ul class="mo-openid-cd-pricing-features">
67
- <li onclick="mo_all_features_clk('free_feature')" style="cursor:pointer;" title="Click here for Feature list" class="mo_openid-on-hover-free-fetr"><b>All Free Features +</b></li>
68
- <li class="mo-openid-lic-bold-cl" style="color: red">X</li>
69
- <li>
70
- <div class="mo_openid_tooltip" style="padding-left: 40px;">13 Social Sharing Apps <i class="far fa-comment-dots " style="font-size:18px; color:#85929E"></i><span class="mo_openid_tooltiptext" style="width:100%;"> Facebook, Twitter, Vkontakte, WhatsApp, Tunmblr, StumbleUpon, LinkedIn, Reddit, Pinterest, Pocket, Digg, Email, Print.<br></span></div></li>
71
- <li>
72
- <div class="mo_openid_tooltip" style="padding-left: 40px;">34 Social Login Apps <i class="far fa-comment-dots " style="font-size:18px; color:#85929E"></i><span class="mo_openid_tooltiptext" style="width:100%;"> Google, Facebook, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Salesforce, Yahoo, <span id="mo_openid_dots4">...</span><span id="mo_openid_more4" style="display:none" >Wordpress, Mail.RU, Disqus, Pinterest, Yandex, Spotify, Reddit, Tumblr, Vimeo, Kakao, Dribbble, Flickr, MeetUp, Line, Stackexchange, Livejournal, Snapchat, Foursquare, Teamsnap, Naver, Odnoklassniki, Wiebo, Baidu, Renren, QQ.</span><button style="border:transparent;background-color: transparent;color: tomato;" onclick="myFunction('mo_openid_dots4','mo_openid_more4','mo_openid_myBtn4')" id="mo_openid_myBtn4">Read more</button>
73
- </div>
74
- </li>
75
- <li class="mo-openid-lic-bold-cl";>X</li>
76
- <li>
77
- <div class="mo_openid_tooltip" style="padding-left: 40px;">7 Pre-Configured Apps <i class="far fa-comment-dots " style="font-size:18px; color:#85929E"></i><span class="mo_openid_tooltiptext" style="width:100%;"> Google, Vkontakte, LinkedIn, Amazon, Salesforce, Yahoo, Wordpress</span></div></li>
78
- <li>Sharing Display Option</li>
79
-
80
- <li class="mo-openid-lic-bold-cl";>X</li>
81
- <li class="mo-openid-lic-bold-cl";>X</li>
82
- <li class="mo-openid-lic-bold-cl";>X</li>
83
- <li class="mo-openid-lic-bold-cl";>X</li>
84
- <li class="mo-openid-lic-bold-cl";>X</li>
85
- <li class="mo-openid-lic-bold-cl";>X</li>
86
- <li class="mo-openid-lic-bold-cl";>X</li>
87
- <li class="mo-openid-lic-bold-cl";>X</li>
88
-
89
- <li>Facebook Share Count</li>
90
- <li class="mo-openid-lic-bold-cl";>X</li>
91
- <li class="mo-openid-lic-bold-cl";>X</li>
92
- <li class="mo-openid-lic-bold-cl";>X</li>
93
- <li class="mo-openid-lic-bold-cl";>X</li>
94
- <li class="mo-openid-lic-bold-cl";>X</li>
95
- <li class="mo-openid-lic-bold-cl";>X</li>
96
- <li class="mo-openid-lic-bold-cl";>X</li>
97
- <li>Vertical Icons & Horizontal Icons</li>
98
- <li style="padding: 7.2%;" class="mo-openid-lic-bold-cl">X</li>
99
- <li style="padding: 7.2%;" class="mo-openid-lic-bold-cl">X</li>
100
- <li>General Data Protection Regulation (GDPR)</li>
101
- <li>Google recaptcha</li>
102
- <li>BuddyPress Display Option</li>
103
- <li>Woocommerce Display Options</li>
104
- <li class="mo-openid-lic-bold-cl";>X</li>
105
- <li class="mo-openid-lic-bold-cl";>X</li>
106
-
107
- <li>Advance Account Linking</li>
108
- <li>Redirect After Login & Logout Option</li>
109
- <li>Role Mapping</li>
110
- <li style="padding: 7.2%;" class="mo-openid-lic-bold-cl">X</li>
111
- <li class="mo-openid-lic-bold-cl";>X</li>
112
- <li class="mo-openid-lic-bold-cl";>X</li>
113
- <li class="mo-openid-lic-bold-cl";>X</li>
114
- <li>Account Linking & Unlinking for Users</li>
115
- <li>Email notification to multiple admins</li>
116
- <li>Welcome Email to end users</li>
117
- <li>Customizable Email Notification template</li>
118
- <li>Customizable welcome Email template</li>
119
- <li>Custom CSS for Social Login buttons</li>
120
- <li>Social Login Opens in a New Window</li>
121
- <li>Domain restriction</li>
122
- <li>Force Admin To Login Using Password</li>
123
- <li>Send Username and Password Reset link</li>
124
- <li>Redirect Login To a New Window</li>
125
- <li>Disable Admin Bar</li>
126
- <li class="mo-openid-lic-bold-cl";>X</li>
127
-
128
- <li class="mo-openid-lic-bold-cl";>X</li>
129
- <li style="padding: 7.4%;" class="mo-openid-lic-bold-cl">X</li>
130
- <li class="mo-openid-lic-bold-cl";>X</li>
131
- <li class="mo-openid-lic-bold-cl";>X</li>
132
- <li class="mo-openid-lic-bold-cl";>X</li>
133
- <li class="mo-openid-lic-bold-cl";>X</li>
134
- <li class="mo-openid-lic-bold-cl";>X</li>
135
- <li>Shortcodes to display social icons on<br/>any homepage page, post, popup and php pages.</li>
136
-
137
- <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
138
- </ul>
139
- </div> <!-- .mo-openid-cd-pricing-body -->
140
- </li>
141
- <li data-type="multisite" class="momslp is-hidden" style="">
142
- <header class="mo-openid-cd-pricing-header">
143
- <h2 style="margin-bottom: 10%;" >Standard<span style="font-size:0.5em"></span></h2>
144
- <label for="mo_openid_m_std">Select No. of Instances : </label>
145
- <select name="mo_openid_m_std" id="mo_openid_m_std" onchange="update_val_std('mo_openid_m_std','mo_openid_m_std_sub','mo_openid_m_std1','mo_openid_m_std2')">
146
- <option value="1">1</option>
147
- <option value="2">2</option>
148
- <option value="3">3</option>
149
- <option value="4">4</option>
150
- <option value="5">5</option>
151
- <option value="6">6</option>
152
- <option value="7">7</option>
153
- <option value="8">8</option>
154
- <option value="9">9</option>
155
- <option value="10">10</option>
156
- </select><br/><br/>
157
- <label for="mo_openid_m_std_sub">Select No. of Sub-Site : </label>
158
- <select name="mo_openid_m_std_sub" id="mo_openid_m_std_sub" onchange="update_val_std('mo_openid_m_std','mo_openid_m_std_sub','mo_openid_m_std1','mo_openid_m_std2')">
159
- <option value="3">3</option>
160
- <option value="5">5</option>
161
- <option value="10">10</option>
162
- <option value="15">15</option>
163
- <option value="20">20</option>
164
- <option value="30">30</option>
165
- <option value="40">40</option>
166
- <option value="50">50</option>
167
- <option value="100">100</option>
168
- </select>
169
-
170
- <div class="cd-price" style="margin-top: 9%;">
171
- <span class="mo-openid-cd-currency">$</span>
172
- <span id="mo_openid_m_std1" class="mo-openid-cd-value">89</span> &nbsp;&nbsp;
173
- <span class="mo-openid-cd-currency">$</span>
174
- <span id="mo_openid_m_std2" class="mo-openid-cd-value"><s>156</s></span>
175
- </div>
176
- </header> <!-- .mo-openid-cd-pricing-header -->
177
- <footer class="mo-openid-cd-pricing-footer">
178
- <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_standard_multisite_plan')" >Upgrade Now</a>
179
- </footer>
180
-
181
- <div class="mo-openid-cd-pricing-body">
182
- <ul class="mo-openid-cd-pricing-features">
183
- <li onclick="mo_all_features_clk('free_feature')" style="cursor:pointer;" title="Click here for Feature list" class="mo_openid-on-hover-free-fetr"><b>All Free Features +</b></li>
184
- <li class="mo-openid-lic-bold-cl" style="color: red">X</li>
185
- <li>
186
- <div class="mo_openid_tooltip" style="padding-left: 40px;">13 Social Sharing Apps <i class="far fa-comment-dots " style="font-size:18px; color:#85929E"></i><span class="mo_openid_tooltiptext" style="width:100%;"> Facebook, Twitter, Vkontakte, WhatsApp, Tunmblr, StumbleUpon, LinkedIn, Reddit, Pinterest, Pocket, Digg, Email, Print.<br></span></div></li>
187
- <li>
188
- <div class="mo_openid_tooltip" style="padding-left: 40px;">34 Social Login Apps <i class="far fa-comment-dots " style="font-size:18px; color:#85929E"></i><span class="mo_openid_tooltiptext" style="width:100%;"> Google, Facebook, Twitter, Vkontakte, LinkedIn, Instagram, Amazon, Salesforce, Yahoo, <span id="mo_openid_dots4">...</span><span id="mo_openid_more4" style="display:none" >Wordpress, Mail.RU, Disqus, Pinterest, Yandex, Spotify, Reddit, Tumblr, Vimeo, Kakao, Dribbble, Flickr, MeetUp, Line, Stackexchange, Livejournal, Snapchat, Foursquare, Teamsnap, Naver, Odnoklassniki, Wiebo, Baidu, Renren, QQ.</span><button style="border:transparent;background-color: transparent;color: tomato;" onclick="myFunction('mo_openid_dots4','mo_openid_more4','mo_openid_myBtn4')" id="mo_openid_myBtn4">Read more</button>
189
- </div>
190
- </li>
191
- <li class="mo-openid-lic-bold-cl";>X</li>
192
- <li>
193
- <div class="mo_openid_tooltip" style="padding-left: 40px;">7 Pre-Configured Apps <i class="far fa-comment-dots " style="font-size:18px; color:#85929E"></i><span class="mo_openid_tooltiptext" style="width:100%;"> Google, Vkontakte, LinkedIn, Amazon, Salesforce, Yahoo, Wordpress</span></div></li>
194
- <li>Sharing Display Option</li>
195
-
196
- <li class="mo-openid-lic-bold-cl";>X</li>
197
- <li class="mo-openid-lic-bold-cl";>X</li>
198
- <li class="mo-openid-lic-bold-cl";>X</li>
199
- <li class="mo-openid-lic-bold-cl";>X</li>
200
- <li class="mo-openid-lic-bold-cl";>X</li>
201
- <li class="mo-openid-lic-bold-cl";>X</li>
202
- <li class="mo-openid-lic-bold-cl";>X</li>
203
- <li class="mo-openid-lic-bold-cl";>X</li>
204
-
205
- <li>Facebook Share Count</li>
206
- <li class="mo-openid-lic-bold-cl";>X</li>
207
- <li class="mo-openid-lic-bold-cl";>X</li>
208
- <li class="mo-openid-lic-bold-cl";>X</li>
209
- <li class="mo-openid-lic-bold-cl";>X</li>
210
- <li class="mo-openid-lic-bold-cl";>X</li>
211
- <li class="mo-openid-lic-bold-cl";>X</li>
212
- <li class="mo-openid-lic-bold-cl";>X</li>
213
- <li>Vertical Icons & Horizontal Icons</li>
214
- <li style="padding: 7.2%;" class="mo-openid-lic-bold-cl">X</li>
215
- <li class="mo-openid-lic-bold-cl">X</li>
216
- <li>General Data Protection Regulation (GDPR)</li>
217
- <li>Google recaptcha</li>
218
- <li>BuddyPress Display Option</li>
219
- <li>Woocommerce Display Options</li>
220
- <li class="mo-openid-lic-bold-cl";>X</li>
221
- <li class="mo-openid-lic-bold-cl";>X</li>
222
-
223
- <li>Advance Account Linking</li>
224
- <li>Redirect After Login & Logout Option</li>
225
- <li>Role Mapping</li>
226
- <li class="mo-openid-lic-bold-cl">X</li>
227
- <li class="mo-openid-lic-bold-cl";>X</li>
228
- <li class="mo-openid-lic-bold-cl";>X</li>
229
- <li class="mo-openid-lic-bold-cl";>X</li>
230
- <li>Account Linking & Unlinking for Users</li>
231
- <li>Email notification to multiple admins</li>
232
- <li>Welcome Email to end users</li>
233
- <li>Customizable Email Notification template</li>
234
- <li>Customizable welcome Email template</li>
235
- <li>Custom CSS for Social Login buttons</li>
236
- <li>Social Login Opens in a New Window</li>
237
- <li>Domain restriction</li>
238
- <li>Force Admin To Login Using Password</li>
239
- <li>Send Username and Password Reset link</li>
240
- <li>Redirect Login To a New Window</li>
241
- <li>Disable Admin Bar</li>
242
- <li class="mo-openid-lic-bold-cl";>X</li>
243
 
244
- <li class="mo-openid-lic-bold-cl";>X</li>
245
- <li style="padding: 5.5%" class="mo-openid-lic-bold-cl">X</li>
246
- <li class="mo-openid-lic-bold-cl";>X</li>
247
- <li class="mo-openid-lic-bold-cl";>X</li>
248
- <li class="mo-openid-lic-bold-cl";>X</li>
249
- <li class="mo-openid-lic-bold-cl";>X</li>
250
- <li class="mo-openid-lic-bold-cl";>X</li>
251
- <li>Shortcodes to display social icons on<br/>any homepage page, post, popup and php pages.</li>
252
-
253
- <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
254
- </ul>
255
- </div> <!-- .mo-openid-cd-pricing-body -->
256
- </li>
257
- <li data-type="mo_add-on" class="moaslp is-hidden" style="">
258
- <header class="mo-openid-cd-pricing-header">
259
-
260
- <h2 style="margin-bottom: 10%;" >Custom Registration Form Add-On </h2>
261
-
262
- <label for="mo_openid_cra">Select No. of Instances : </label>
263
- <select name="mo_openid_cra" id="mo_openid_cra">
264
- <option value="1">1</option>
265
- <option value="5">5</option>
266
- <option value="10">10</option>
267
- </select>
268
-
269
- <div class="cd-price" style="margin-top: 9%;">
270
- <span class="mo-openid-cd-currency">$</span>
271
- <span id="mo_openid_cra1" class="mo-openid-cd-value">35</span> &nbsp;&nbsp;
272
- <span class="mo-openid-cd-currency">$</span>
273
- <span id="mo_openid_cra2" class="mo-openid-cd-value"><s>39</s></span>
274
-
275
- </div>
276
- </header>
277
- <!-- .mo-openid-cd-pricing-header -->
278
- <footer class="mo-openid-cd-pricing-footer">
279
- <a href="#" class="mo-openid-cd-select" id="mosocial_purchase_cust_addon" onclick="mosocial_addonform('wp_social_login_extra_attributes_addon')" >Upgrade Now</a>
280
- </footer>
281
 
282
- <div class="mo-openid-cd-pricing-body">
283
- <ul class="mo-openid-cd-pricing-features">
284
- <li onclick="mo_all_features_clk('custom_registration_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
285
- <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
286
- </ul>
287
- </div> <!-- .mo-openid-cd-pricing-body -->
288
- </li>
289
- <br>
290
- <li data-type="mo_add-on" class="moaslp is-hidden">
291
- <header class="mo-openid-cd-pricing-header">
292
- <h2 style="margin-bottom: 10%;">MailChimp Integration Add-on</h2>
293
- <label for="mo_openid_mca">Select No. of Instances : </label>
294
- <select name="mo_openid_mca" id="mo_openid_mca">
295
- <option value="1">1</option>
296
- <option value="5">5</option>
297
- <option value="10">10</option>
298
- </select>
299
 
300
- <div class="cd-price" style="margin-top: 9%;">
301
- <span class="mo-openid-cd-currency">$</span>
302
- <span id="mo_openid_mca1" class="mo-openid-cd-value">25</span> &nbsp;&nbsp;
303
- <span class="mo-openid-cd-currency">$</span>
304
- <span id="mo_openid_mca2" class="mo-openid-cd-value"><s>29</s></span>
305
- </div>
306
- </header> <!-- .mo-openid-cd-pricing-header -->
307
- <footer class="mo-openid-cd-pricing-footer">
308
- <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_mailchimp_addon')" >Upgrade Now</a>
309
- </footer>
310
- <div class="mo-openid-cd-pricing-body">
311
- <ul class="mo-openid-cd-pricing-features">
312
- <li onclick="mo_all_features_clk('mailchimp_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
313
- <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
314
- </ul>
315
- </div> <!-- .mo-openid-cd-pricing-body -->
316
- </li>
317
-
318
- </ul> <!-- .mo-openid-cd-pricing-wrapper -->
319
- </li>
320
-
321
- <li class="mo-openid-cd-popular">
322
  <ul class="mo-openid-cd-pricing-wrapper" id="col2">
323
  <li data-type="singlesite" class="mosslp is-visible" style="">
324
  <header class="mo-openid-cd-pricing-header">
325
  <h2 style="margin-bottom: 10%;">Premium</h2>
326
- <label for="mo_openid_pre">Select No. of Instances : </label>
327
- <select name="mo_openid_pre" id="mo_openid_pre">
328
- <option value="1">1</option>
329
- <option value="5">5</option>
330
- <option value="10">10</option>
331
- </select>
332
 
333
  <div class="cd-price" style="margin-top: 9%;">
334
  <span class="mo-openid-cd-currency">$</span>
335
- <span id="mo_openid_pre1" class="mo-openid-cd-value">49</span> &nbsp;&nbsp;
336
- <span class="mo-openid-cd-currency">$</span>
337
- <span id="mo_openid_pre2" class="mo-openid-cd-value"><s>59</s></span>
338
  </div>
339
  </header> <!-- .mo-openid-cd-pricing-header -->
340
  <footer class="mo-openid-cd-pricing-footer">
@@ -418,36 +130,19 @@ function mo_openid_licensing_plans()
418
  <li data-type="multisite" class="momslp is-hidden" style="">
419
  <header class="mo-openid-cd-pricing-header">
420
  <h2 style="margin-bottom: 10%;">Premium</h2>
421
- <label for="mo_openid_m_prem">Select No. of Instances : </label>
422
- <select name="mo_openid_m_prem" id="mo_openid_m_prem" onchange="update_val_prem('mo_openid_m_prem','mo_openid_m_prem_sub','mo_openid_m_pre1','mo_openid_m_pre2')">
423
- <option value="1">1</option>
424
- <option value="2">2</option>
425
- <option value="3">3</option>
426
- <option value="4">4</option>
427
- <option value="5">5</option>
428
- <option value="6">6</option>
429
- <option value="7">7</option>
430
- <option value="8">8</option>
431
- <option value="9">9</option>
432
- <option value="10">10</option>
433
- </select><br/><br/>
434
- <label for="mo_openid_m_prem_sub">Select No. of Sub-Site : </label>
435
- <select name="mo_openid_m_prem_sub" id="mo_openid_m_prem_sub" onchange="update_val_prem('mo_openid_m_prem','mo_openid_m_prem_sub','mo_openid_m_pre1','mo_openid_m_pre2')">
436
- <option value="3">3</option>
437
- <option value="5">5</option>
438
- <option value="10">10</option>
439
- <option value="15">15</option>
440
- <option value="20">20</option>
441
- <option value="30">30</option>
442
- <option value="40">40</option>
443
- <option value="50">50</option>
444
- <option value="100">100</option>
445
- </select>
446
  <div class="cd-price" style="margin-top: 9%;">
447
  <span class="mo-openid-cd-currency">$</span>
448
- <span id="mo_openid_m_pre1" class="mo-openid-cd-value">109</span> &nbsp;&nbsp;
449
- <span class="mo-openid-cd-currency">$</span>
450
- <span id="mo_openid_m_pre2" class="mo-openid-cd-value"><s>236</s></span>
451
  </div>
452
  </header> <!-- .mo-openid-cd-pricing-header -->
453
  <footer class="mo-openid-cd-pricing-footer">
@@ -528,31 +223,25 @@ function mo_openid_licensing_plans()
528
  </ul>
529
  </div> <!-- .mo-openid-cd-pricing-body -->
530
  </li>
531
- <li data-type="mo_add-on" class="moaslp is-hidden" style="">
532
  <header class="mo-openid-cd-pricing-header">
533
- <h2 style="margin-bottom: 10%;">WooCommerce Integration Add-On</h2>
534
- <label for="mo_openid_wca_in">Select No. of Instances : </label>
535
- <select name="mo_openid_wca_in" id="mo_openid_wca_in">
536
- <option value="1">1</option>
537
- <option value="5">5</option>
538
- <option value="10">10</option>
539
- </select>
540
-
541
  <div class="cd-price" style="margin-top: 9%;">
542
  <span class="mo-openid-cd-currency">$</span>
543
- <span id="mo_openid_wca_in1" class="mo-openid-cd-value">25</span> &nbsp;&nbsp;
544
- <span class="mo-openid-cd-currency">$</span>
545
- <span id="mo_openid_wca_in2" class="mo-openid-cd-value"><s>29</s></span>
546
  </div>
547
  </header> <!-- .mo-openid-cd-pricing-header -->
548
  <footer class="mo-openid-cd-pricing-footer">
549
- <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_woocommerce_addon')" >Upgrade Now</a>
550
  </footer>
551
  <div class="mo-openid-cd-pricing-body">
552
  <ul class="mo-openid-cd-pricing-features">
553
- <li onclick="mo_all_features_clk('woocommerce_int_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
554
-
555
-
556
  <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
557
  </ul>
558
  </div> <!-- .mo-openid-cd-pricing-body -->
@@ -561,18 +250,13 @@ function mo_openid_licensing_plans()
561
  <li data-type="mo_add-on" class="moaslp is-hidden">
562
  <header class="mo-openid-cd-pricing-header">
563
  <h2 style="margin-bottom: 10%;">Basic Discord Integration Add-on</h2>
564
- <label for="mo_openid_dis">Select No. of Instances : </label>
565
- <select name="mo_openid_dis" id="mo_openid_dis">
566
- <option value="1">1</option>
567
- <option value="5">5</option>
568
- <option value="10">10</option>
569
- </select>
570
-
571
  <div class="cd-price" style="margin-top: 9%;">
572
  <span class="mo-openid-cd-currency">$</span>
573
- <span id="mo_openid_dis1" class="mo-openid-cd-value">99</span>
574
- <span class="mo-openid-cd-currency">$</span>
575
- <span id="mo_openid_dis2" class="mo-openid-cd-value"><s>140</s></span>&nbsp;&nbsp;
576
 
577
  </div>
578
  </header> <!-- .mo-openid-cd-pricing-header -->
@@ -589,23 +273,19 @@ function mo_openid_licensing_plans()
589
  </ul> <!-- .mo-openid-cd-pricing-wrapper -->
590
  </li>
591
 
592
- <li>
593
  <ul class="mo-openid-cd-pricing-wrapper" id="col3">
594
  <li data-type="singlesite" class="mosslp is-visible" style="">
595
  <header class="mo-openid-cd-pricing-header">
596
  <h2 style="margin-bottom: 10%;">All-Inclusive</h2>
597
- <label for="mo_openid_ai">Select No. of Instances : </label>
598
- <select name="mo_openid_ai" id="mo_openid_ai">
599
- <option value="1">1</option>
600
- <option value="5">5</option>
601
- <option value="10">10</option>
602
- </select>
603
 
604
  <div class="cd-price" style="margin-top: 9%;">
605
  <span class="mo-openid-cd-currency">$</span>
606
- <span id="mo_openid_ai1" class="mo-openid-cd-value">89</span> &nbsp;&nbsp;
607
- <span class="mo-openid-cd-currency">$</span>
608
- <span id="mo_openid_ai2" class="mo-openid-cd-value"><s>99</s></span>
609
  </div>
610
  </header> <!-- .mo-openid-cd-pricing-header -->
611
  <footer class="mo-openid-cd-pricing-footer">
@@ -688,37 +368,19 @@ function mo_openid_licensing_plans()
688
  <li data-type="multisite" class="momslp is-hidden" style="">
689
  <header class="mo-openid-cd-pricing-header">
690
  <h2 style="margin-bottom: 10%;">All-Inclusive</h2>
691
- <label for="mo_openid_m_ai">Select No. of Instances : </label>
692
- <select name="mo_openid_m_ai" id="mo_openid_m_ai" onchange="update_val_allinc('mo_openid_m_ai','mo_openid_m_ai_prem_sub','mo_openid_m_ai1','mo_openid_m_ai2')">
693
- <option value="1">1</option>
694
- <option value="2">2</option>
695
- <option value="3">3</option>
696
- <option value="4">4</option>
697
- <option value="5">5</option>
698
- <option value="6">6</option>
699
- <option value="7">7</option>
700
- <option value="8">8</option>
701
- <option value="9">9</option>
702
- <option value="10">10</option>
703
- </select><br/><br/>
704
- <label for="mo_openid_m_ai_sub">Select No. of Sub-Site : </label>
705
- <select name="mo_openid_m_ai_sub" id="mo_openid_m_ai_prem_sub" onchange="update_val_allinc('mo_openid_m_ai','mo_openid_m_ai_prem_sub','mo_openid_m_ai1','mo_openid_m_ai2')">
706
- <option value="3">3</option>
707
- <option value="5">5</option>
708
- <option value="10">10</option>
709
- <option value="15">15</option>
710
- <option value="20">20</option>
711
- <option value="30">30</option>
712
- <option value="40">40</option>
713
- <option value="50">50</option>
714
- <option value="100">100</option>
715
- </select>
716
 
717
  <div class="cd-price" style="margin-top: 9%;">
718
  <span class="mo-openid-cd-currency">$</span>
719
- <span id="mo_openid_m_ai1" class="mo-openid-cd-value">149</span> &nbsp;&nbsp;
720
- <span class="mo-openid-cd-currency">$</span>
721
- <span id="mo_openid_m_ai2" class="mo-openid-cd-value"><s>396</s></span>
722
  </div>
723
  </header> <!-- .mo-openid-cd-pricing-header -->
724
  <footer class="mo-openid-cd-pricing-footer">
@@ -798,56 +460,50 @@ function mo_openid_licensing_plans()
798
  </ul>
799
  </div> <!-- .mo-openid-cd-pricing-body -->
800
  </li>
 
 
801
  <li data-type="mo_add-on" class="moaslp is-hidden" style="">
802
- <a id="popover5" data-toggle="popover">
803
- <header class="mo-openid-cd-pricing-header">
804
- <h2 style="margin-bottom: 10%;">BuddyPress Integration Add-On</h2>
805
- <label for="mo_openid_bpa">Select No. of Instances : </label>
806
- <select name="mo_openid_bpa" id="mo_openid_bpa">
807
- <option value="1">1</option>
808
- <option value="5">5</option>
809
- <option value="10">10</option>
810
- </select>
811
-
812
- <div class="cd-price" style="margin-top: 9%;">
813
- <span class="mo-openid-cd-currency">$</span>
814
- <span id="mo_openid_bpa1" class="mo-openid-cd-value">25</span> &nbsp;&nbsp;
815
- <span class="mo-openid-cd-currency">$</span>
816
- <span id="mo_openid_bpa2" class="mo-openid-cd-value"><s>29</s></span>
817
- </div>
818
- </header> <!-- .mo-openid-cd-pricing-header -->
819
- </a>
820
  <footer class="mo-openid-cd-pricing-footer">
821
- <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_buddypress_addon')" >Upgrade Now</a>
822
  </footer>
823
  <div class="mo-openid-cd-pricing-body">
824
  <ul class="mo-openid-cd-pricing-features">
825
- <li onclick="mo_all_features_clk('buddypress_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
 
 
826
  <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
827
  </ul>
828
- </div> <!-- .mo-openid-cd-pricing-body -->
829
  </li>
830
  <br>
831
  </ul> <!-- .mo-openid-cd-pricing-wrapper -->
832
  </li>
833
 
834
- <li class="mo-openid-cd-popular">
835
  <ul class="mo-openid-cd-pricing-wrapper" id="col4">
836
  <li data-type="singlesite" class="mosslp is-visible" style="">
837
  <header class="mo-openid-cd-pricing-header">
838
  <h2 style="margin-bottom: 10%;">Enterprise Plan</h2>
839
- <label for="mo_openid_ai">Select No. of Instances : </label>
840
- <select name="mo_openid_ent" id="mo_openid_ent">
841
- <option value="1">1</option>
842
- <option value="5">5</option>
843
- <option value="10">10</option>
844
- </select>
845
 
846
  <div class="cd-price" style="margin-top: 9%;">
847
  <span class="mo-openid-cd-currency">$</span>
848
- <span id="mo_openid_ent1" class="mo-openid-cd-value">199</span> &nbsp;&nbsp;
849
- <span class="mo-openid-cd-currency">$</span>
850
- <span id="mo_openid_ent2" class="mo-openid-cd-value"><s>399</s></span>
851
  </div>
852
  </header> <!-- .mo-openid-cd-pricing-header -->
853
  <footer class="mo-openid-cd-pricing-footer">
@@ -930,37 +586,18 @@ function mo_openid_licensing_plans()
930
  <li data-type="multisite" class="momslp is-hidden style="">
931
  <header class="mo-openid-cd-pricing-header">
932
  <h2 style="margin-bottom: 10%;">Enterprise Plan</h2>
933
- <label for="mo_openid_m_ent">Select No. of Instances : </label>
934
- <select name="mo_openid_m_ent" id="mo_openid_m_ent" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
935
- <option value="1">1</option>
936
- <option value="2">2</option>
937
- <option value="3">3</option>
938
- <option value="4">4</option>
939
- <option value="5">5</option>
940
- <option value="6">6</option>
941
- <option value="7">7</option>
942
- <option value="8">8</option>
943
- <option value="9">9</option>
944
- <option value="10">10</option>
945
- </select><br/><br/>
946
- <label for="mo_openid_m_ent_sub">Select No. of Sub-Site : </label>
947
- <select name="mo_openid_m_ent_sub" id="mo_openid_m_ent_sub" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
948
- <option value="3">3</option>
949
- <option value="5">5</option>
950
- <option value="10">10</option>
951
- <option value="15">15</option>
952
- <option value="20">20</option>
953
- <option value="30">30</option>
954
- <option value="40">40</option>
955
- <option value="50">50</option>
956
- <option value="100">100</option>
957
- </select>
958
 
959
  <div class="cd-price" style="margin-top: 9%;">
960
  <span class="mo-openid-cd-currency">$</span>
961
- <span id="mo_openid_m_ent1" class="mo-openid-cd-value">379</span> &nbsp;&nbsp;
962
- <span class="mo-openid-cd-currency">$</span>
963
- <span id="mo_openid_m_ent2" class="mo-openid-cd-value"><s>1596</s></span>
964
  </div>
965
  </header> <!-- .mo-openid-cd-pricing-header -->
966
  <footer class="mo-openid-cd-pricing-footer">
@@ -1042,33 +679,36 @@ function mo_openid_licensing_plans()
1042
  </li>
1043
  <li data-type="mo_add-on" class="moaslp is-hidden" style="">
1044
  <header class="mo-openid-cd-pricing-header">
1045
- <h2 style="margin-bottom: 10%;">HubSpot Integration Add-on</h2>
1046
- <label for="mo_openid_hub">Select No. of Instances : </label>
1047
- <select name="mo_openid_hub" id="mo_openid_hub">
1048
- <option value="1">1</option>
1049
- <option value="5">5</option>
1050
- <option value="10">10</option>
1051
- </select>
 
1052
  <div class="cd-price" style="margin-top: 9%;">
1053
  <span class="mo-openid-cd-currency">$</span>
1054
- <span id="mo_openid_hub1" class="mo-openid-cd-value">45</span> &nbsp;&nbsp;
1055
- <span class="mo-openid-cd-currency">$</span>
1056
- <span id="mo_openid_hub2" class="mo-openid-cd-value"><s>59</s></span>
1057
  </div>
1058
  </header>
 
1059
  <footer class="mo-openid-cd-pricing-footer">
1060
- <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_hubspot_addon')" >Upgrade Now</a>
1061
  </footer>
 
1062
  <div class="mo-openid-cd-pricing-body">
1063
  <ul class="mo-openid-cd-pricing-features">
1064
- <li onclick="mo_all_features_clk('hubspot_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
1065
-
1066
-
1067
  <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
1068
  </ul>
1069
- </div>
1070
  </li>
1071
  <br>
 
 
 
1072
 
1073
 
1074
 
@@ -1128,86 +768,7 @@ function mo_openid_licensing_plans()
1128
  }
1129
  });
1130
 
1131
- //standard plan
1132
- jQuery('#mo_openid_std').on('change', function () {
1133
- if (this.value === "1") {
1134
- jQuery('#mo_openid_std1').html("29");
1135
- jQuery('#mo_openid_std2').html("<s>50</s>");
1136
- } else if (this.value === "5") {
1137
- jQuery('#mo_openid_std1').html("99");
1138
- jQuery('#mo_openid_std2').html("<s>250</s>");
1139
- }
1140
- else if (this.value === "10") {
1141
- jQuery('#mo_openid_std1').html("169");
1142
- jQuery('#mo_openid_std2').html("<s>500</s>");
1143
- }
1144
- });
1145
-
1146
- //standard plan for multisite
1147
- function update_val_std(no_of_ins, no_of_sub_sites, value, actual_value){
1148
- no_of_sites=document.getElementById(no_of_ins).value;
1149
- no_of_sub=document.getElementById(no_of_sub_sites).value;
1150
- if(no_of_sites==1)
1151
- {
1152
- jQuery('#' + value).html(29+(20 * no_of_sub ));
1153
- no_of_sub=parseInt(no_of_sub) +1;
1154
- jQuery('#' + actual_value).html("<s>"+39 * no_of_sub +"</s>");
1155
- }
1156
- else if(no_of_sites==2)
1157
- {
1158
- jQuery('#' + value).html(55+(20 * no_of_sub * no_of_sites));
1159
- no_of_sub=parseInt(no_of_sub) +1;
1160
- jQuery('#' + actual_value).html("<s>"+78 * no_of_sub+"</s>");
1161
- }
1162
- else if(no_of_sites==3)
1163
- {
1164
- jQuery('#' + value).html(75+(20 * no_of_sub * no_of_sites));
1165
- no_of_sub=parseInt(no_of_sub) +1;
1166
- jQuery('#' + actual_value).html("<s>"+117 * no_of_sub+"</s>");
1167
- }
1168
- else if(no_of_sites==4)
1169
- {
1170
- jQuery('#' + value).html(90+(20 * no_of_sub * no_of_sites));
1171
- no_of_sub=parseInt(no_of_sub) +1;
1172
- jQuery('#' + actual_value).html("<s>"+156 * no_of_sub+"</s>");
1173
- }
1174
- else if(no_of_sites==5)
1175
- {
1176
- jQuery('#' + value).html(105+(20 * no_of_sub * no_of_sites));
1177
- no_of_sub=parseInt(no_of_sub) +1;
1178
- jQuery('#' + actual_value).html("<s>"+195 * no_of_sub+"</s>");
1179
- }
1180
- else if(no_of_sites==6)
1181
- {
1182
- jQuery('#' + value).html(129+(20 * no_of_sub * no_of_sites));
1183
- no_of_sub=parseInt(no_of_sub) +1;
1184
- jQuery('#' + actual_value).html("<s>"+234 * no_of_sub+"</s>");
1185
- }
1186
- else if(no_of_sites==7)
1187
- {
1188
- jQuery('#' + value).html(139+(20 * no_of_sub * no_of_sites));
1189
- no_of_sub=parseInt(no_of_sub) +1;
1190
- jQuery('#' + actual_value).html("<s>"+273 * no_of_sub+"</s>");
1191
- }
1192
- else if(no_of_sites==8)
1193
- {
1194
- jQuery('#' + value).html(149+(20 * no_of_sub * no_of_sites));
1195
- no_of_sub=parseInt(no_of_sub) +1;
1196
- jQuery('#' + actual_value).html("<s>"+312 * no_of_sub+"</s>");
1197
- }
1198
- else if(no_of_sites==9)
1199
- {
1200
- jQuery('#' + value).html(159+(20 * no_of_sub * no_of_sites));
1201
- no_of_sub=parseInt(no_of_sub) +1;
1202
- jQuery('#' + actual_value).html("<s>"+351 * no_of_sub+"</s>");
1203
- }
1204
- else if(no_of_sites==10)
1205
- {
1206
- jQuery('#' + value).html(169+(20 * no_of_sub * no_of_sites));
1207
- no_of_sub=parseInt(no_of_sub) +1;
1208
- jQuery('#' + actual_value).html("<s>"+390 * no_of_sub+"</s>");
1209
- }
1210
- }
1211
 
1212
  //apple plan for multisite
1213
  function update_val_apple(no_of_ins, no_of_sub_sites, value, actual_value){
28
  <!-- </div>-->
29
 
30
 
31
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
+ <ul style="margin-left:25px" id="list-type" class="mo-openid-cd-pricing-list cd-bounce-invert" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
+ <li style="width:400px" class="mo-openid-cd-popular">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  <ul class="mo-openid-cd-pricing-wrapper" id="col2">
39
  <li data-type="singlesite" class="mosslp is-visible" style="">
40
  <header class="mo-openid-cd-pricing-header">
41
  <h2 style="margin-bottom: 10%;">Premium</h2>
42
+ <label for="mo_openid_pre">No. of Instances : </label>
43
+ <label name="mo_openid_pre" id="mo_openid_pre">
44
+ 1
45
+ </label>
 
 
46
 
47
  <div class="cd-price" style="margin-top: 9%;">
48
  <span class="mo-openid-cd-currency">$</span>
49
+ <span id="mo_openid_pre1" class="mo-openid-cd-value">89</span> &nbsp;&nbsp;
 
 
50
  </div>
51
  </header> <!-- .mo-openid-cd-pricing-header -->
52
  <footer class="mo-openid-cd-pricing-footer">
130
  <li data-type="multisite" class="momslp is-hidden" style="">
131
  <header class="mo-openid-cd-pricing-header">
132
  <h2 style="margin-bottom: 10%;">Premium</h2>
133
+ <label for="mo_openid_m_prem">No. of Instances : </label>
134
+ <label id="mo_openid_m_ent" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
135
+ 1
136
+ </label><br/><br/>
137
+ <label for="mo_openid_m_ent_sub">No. of Sub-Site : </label>
138
+ <label name="mo_openid_m_ent_sub" id="mo_openid_m_ent_sub" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
139
+ 3
140
+ </label>
141
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  <div class="cd-price" style="margin-top: 9%;">
143
  <span class="mo-openid-cd-currency">$</span>
144
+ <span id="mo_openid_m_pre1" class="mo-openid-cd-value">149</span> &nbsp;&nbsp;
145
+
 
146
  </div>
147
  </header> <!-- .mo-openid-cd-pricing-header -->
148
  <footer class="mo-openid-cd-pricing-footer">
223
  </ul>
224
  </div> <!-- .mo-openid-cd-pricing-body -->
225
  </li>
226
+ <li data-type="mo_add-on" class="moaslp is-hidden">
227
  <header class="mo-openid-cd-pricing-header">
228
+ <h2 style="margin-bottom: 10%;">MailChimp Integration Add-on</h2>
229
+ <label for="mo_openid_mca">No. of Instances : </label>
230
+ <label name="mo_openid_mca" id="mo_openid_mca">
231
+ 1
232
+ </label>
 
 
 
233
  <div class="cd-price" style="margin-top: 9%;">
234
  <span class="mo-openid-cd-currency">$</span>
235
+ <span id="mo_openid_mca1" class="mo-openid-cd-value">111</span> &nbsp;&nbsp;
236
+
 
237
  </div>
238
  </header> <!-- .mo-openid-cd-pricing-header -->
239
  <footer class="mo-openid-cd-pricing-footer">
240
+ <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_mailchimp_addon')" >Upgrade Now</a>
241
  </footer>
242
  <div class="mo-openid-cd-pricing-body">
243
  <ul class="mo-openid-cd-pricing-features">
244
+ <li onclick="mo_all_features_clk('mailchimp_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
 
 
245
  <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
246
  </ul>
247
  </div> <!-- .mo-openid-cd-pricing-body -->
250
  <li data-type="mo_add-on" class="moaslp is-hidden">
251
  <header class="mo-openid-cd-pricing-header">
252
  <h2 style="margin-bottom: 10%;">Basic Discord Integration Add-on</h2>
253
+ <label for="mo_openid_dis">No. of Instances : </label>
254
+ <label name="mo_openid_dis" id="mo_openid_dis">
255
+ 1
256
+ </label>
 
 
 
257
  <div class="cd-price" style="margin-top: 9%;">
258
  <span class="mo-openid-cd-currency">$</span>
259
+ <span id="mo_openid_dis1" class="mo-openid-cd-value">149</span>
 
 
260
 
261
  </div>
262
  </header> <!-- .mo-openid-cd-pricing-header -->
273
  </ul> <!-- .mo-openid-cd-pricing-wrapper -->
274
  </li>
275
 
276
+ <li style="width:400px">
277
  <ul class="mo-openid-cd-pricing-wrapper" id="col3">
278
  <li data-type="singlesite" class="mosslp is-visible" style="">
279
  <header class="mo-openid-cd-pricing-header">
280
  <h2 style="margin-bottom: 10%;">All-Inclusive</h2>
281
+ <label for="mo_openid_ai">No. of Instances : </label>
282
+ <label name="mo_openid_ai" id="mo_openid_ai">
283
+ 1
284
+ </label>
 
 
285
 
286
  <div class="cd-price" style="margin-top: 9%;">
287
  <span class="mo-openid-cd-currency">$</span>
288
+ <span id="mo_openid_ai1" class="mo-openid-cd-value">199</span>
 
 
289
  </div>
290
  </header> <!-- .mo-openid-cd-pricing-header -->
291
  <footer class="mo-openid-cd-pricing-footer">
368
  <li data-type="multisite" class="momslp is-hidden" style="">
369
  <header class="mo-openid-cd-pricing-header">
370
  <h2 style="margin-bottom: 10%;">All-Inclusive</h2>
371
+ <label for="mo_openid_m_ai">No. of Instances : </label>
372
+ <label name="mo_openid_m_ai" id="mo_openid_m_ai" onchange="update_val_ent('mo_openid_m_','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
373
+ 1
374
+ </label><br/><br/>
375
+ <label for="mo_openid_m_ent_sub">No. of Sub-Site : </label>
376
+ <label name="mo_openid_m_ent_sub" id="mo_openid_m_ent_sub" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
377
+ 3
378
+ </label>
379
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
 
381
  <div class="cd-price" style="margin-top: 9%;">
382
  <span class="mo-openid-cd-currency">$</span>
383
+ <span id="mo_openid_m_ai1" class="mo-openid-cd-value">259</span>
 
 
384
  </div>
385
  </header> <!-- .mo-openid-cd-pricing-header -->
386
  <footer class="mo-openid-cd-pricing-footer">
460
  </ul>
461
  </div> <!-- .mo-openid-cd-pricing-body -->
462
  </li>
463
+
464
+
465
  <li data-type="mo_add-on" class="moaslp is-hidden" style="">
466
+ <header class="mo-openid-cd-pricing-header">
467
+ <h2 style="margin-bottom: 10%;">HubSpot Integration Add-on</h2>
468
+ <label for="mo_openid_hub">No. of Instances : </label>
469
+ <label name="mo_openid_hub" id="mo_openid_hub">
470
+ 1
471
+ </label>
472
+ <div class="cd-price" style="margin-top: 9%;">
473
+ <span class="mo-openid-cd-currency">$</span>
474
+ <span id="mo_openid_hub1" class="mo-openid-cd-value">149</span> &nbsp;&nbsp;
475
+ </div>
476
+ </header>
 
 
 
 
 
 
 
477
  <footer class="mo-openid-cd-pricing-footer">
478
+ <a href="#" class="mo-openid-cd-select" onclick="mosocial_addonform('wp_social_login_hubspot_addon')" >Upgrade Now</a>
479
  </footer>
480
  <div class="mo-openid-cd-pricing-body">
481
  <ul class="mo-openid-cd-pricing-features">
482
+ <li onclick="mo_all_features_clk('hubspot_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
483
+
484
+
485
  <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
486
  </ul>
487
+ </div>
488
  </li>
489
  <br>
490
  </ul> <!-- .mo-openid-cd-pricing-wrapper -->
491
  </li>
492
 
493
+ <li style="width:400px" class="mo-openid-cd-popular">
494
  <ul class="mo-openid-cd-pricing-wrapper" id="col4">
495
  <li data-type="singlesite" class="mosslp is-visible" style="">
496
  <header class="mo-openid-cd-pricing-header">
497
  <h2 style="margin-bottom: 10%;">Enterprise Plan</h2>
498
+ <label for="mo_openid_ai">No. of Instances : </label>
499
+ <label name="mo_openid_ent" id="mo_openid_ent">
500
+ 1
501
+ </label>
 
 
502
 
503
  <div class="cd-price" style="margin-top: 9%;">
504
  <span class="mo-openid-cd-currency">$</span>
505
+ <span id="mo_openid_ent1" class="mo-openid-cd-value">299</span> &nbsp;&nbsp;
506
+
 
507
  </div>
508
  </header> <!-- .mo-openid-cd-pricing-header -->
509
  <footer class="mo-openid-cd-pricing-footer">
586
  <li data-type="multisite" class="momslp is-hidden style="">
587
  <header class="mo-openid-cd-pricing-header">
588
  <h2 style="margin-bottom: 10%;">Enterprise Plan</h2>
589
+ <label for="mo_openid_m_ent">No. of Instances : </label>
590
+ <label name="mo_openid_m_ent" id="mo_openid_m_ent" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
591
+ 1
592
+ </label><br/><br/>
593
+ <label for="mo_openid_m_ent_sub">No. of Sub-Site : </label>
594
+ <label name="mo_openid_m_ent_sub" id="mo_openid_m_ent_sub" onchange="update_val_ent('mo_openid_m_ent','mo_openid_m_ent_sub','mo_openid_m_ent1','mo_openid_m_ent2')">
595
+ 3
596
+ </label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
597
 
598
  <div class="cd-price" style="margin-top: 9%;">
599
  <span class="mo-openid-cd-currency">$</span>
600
+ <span id="mo_openid_m_ent1" class="mo-openid-cd-value">359</span>
 
 
601
  </div>
602
  </header> <!-- .mo-openid-cd-pricing-header -->
603
  <footer class="mo-openid-cd-pricing-footer">
679
  </li>
680
  <li data-type="mo_add-on" class="moaslp is-hidden" style="">
681
  <header class="mo-openid-cd-pricing-header">
682
+
683
+ <h2 style="margin-bottom: 10%;" >Custom Registration Form Add-On </h2>
684
+
685
+ <label for="mo_openid_cra">No. of Instances : </label>
686
+ <label name="mo_openid_cra" id="mo_openid_cra">
687
+ 1
688
+ </label>
689
+
690
  <div class="cd-price" style="margin-top: 9%;">
691
  <span class="mo-openid-cd-currency">$</span>
692
+ <span id="mo_openid_cra1" class="mo-openid-cd-value">111</span> &nbsp;&nbsp;
693
+
 
694
  </div>
695
  </header>
696
+ <!-- .mo-openid-cd-pricing-header -->
697
  <footer class="mo-openid-cd-pricing-footer">
698
+ <a href="#" class="mo-openid-cd-select" id="mosocial_purchase_cust_addon" onclick="mosocial_addonform('wp_social_login_extra_attributes_addon')" >Upgrade Now</a>
699
  </footer>
700
+
701
  <div class="mo-openid-cd-pricing-body">
702
  <ul class="mo-openid-cd-pricing-features">
703
+ <li onclick="mo_all_features_clk('custom_registration_adon')"style="cursor:pointer">Click Here to see features<i class="far fa-hand-pointer" style="color: orangered;margin-left: .5%" aria-hidden="true"></i></li>
 
 
704
  <li><a style="cursor: pointer" onclick="mo_openid_support_form('')">Click here to Contact Us</a></li>
705
  </ul>
706
+ </div> <!-- .mo-openid-cd-pricing-body -->
707
  </li>
708
  <br>
709
+
710
+
711
+ <br>
712
 
713
 
714
 
768
  }
769
  });
770
 
771
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
772
 
773
  //apple plan for multisite
774
  function update_val_apple(no_of_ins, no_of_sub_sites, value, actual_value){
view/link_social_account/mo_openid_link_soc_acc_funct.php CHANGED
@@ -70,18 +70,3 @@ function mo_openid_account_linking($messages) {
70
  return $messages;
71
  }
72
 
73
- function mo_openid_social_linking_action(){
74
- if(!mo_openid_restrict_user()) {
75
- $nonce = sanitize_text_field($_POST['mo_openid_social_linking_nonce']);
76
- if (!wp_verify_nonce($nonce, 'mo-openid-social-linking')) {
77
- wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
78
- } else {
79
-
80
- if (sanitize_text_field($_POST['enabled']) == "true") {
81
- update_option('mo_openid_account_linking_enable', 1);
82
-
83
- } else
84
- update_option('mo_openid_account_linking_enable', 0);
85
- }
86
- }
87
- }
70
  return $messages;
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
view/profile_completion/mo_openid_prof_comp_funct.php CHANGED
@@ -251,7 +251,7 @@ function mo_openid_profile_comp_action(){
251
  if (!wp_verify_nonce($nonce, 'mo-openid-profile-comp')) {
252
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
253
  } else {
254
-
255
  if(sanitize_text_field($_POST['enabled'])=="true") {
256
  update_option('mo_openid_enable_profile_completion', 1);
257
 
@@ -259,4 +259,5 @@ function mo_openid_profile_comp_action(){
259
  else
260
  update_option('mo_openid_enable_profile_completion', 0);
261
  }
 
262
  }
251
  if (!wp_verify_nonce($nonce, 'mo-openid-profile-comp')) {
252
  wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
253
  } else {
254
+ if(current_user_can('administrator')){
255
  if(sanitize_text_field($_POST['enabled'])=="true") {
256
  update_option('mo_openid_enable_profile_completion', 1);
257
 
259
  else
260
  update_option('mo_openid_enable_profile_completion', 0);
261
  }
262
+ }
263
  }
view/rate_us/rate_us.php CHANGED
@@ -63,6 +63,7 @@ echo' <div id="mo_openid_rateus_myModal" class="mo_openid_modal_rateus">
63
 
64
  }
65
  function form_popup(rating){
 
66
  jQuery.ajax({
67
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
68
  method: "POST", //request type,
@@ -70,6 +71,7 @@ echo' <div id="mo_openid_rateus_myModal" class="mo_openid_modal_rateus">
70
  data: {
71
  action: 'mo_openid_rating_given',
72
  rating: rating,
 
73
  },
74
  success: function (result) {
75
  jQuery("#mo_openid_support_form_feedback").show();
63
 
64
  }
65
  function form_popup(rating){
66
+ var mo_openid_rating_given_nonce= '<?php echo wp_create_nonce('mo-openid-rating-given-nonce'); ?>';
67
  jQuery.ajax({
68
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
69
  method: "POST", //request type,
71
  data: {
72
  action: 'mo_openid_rating_given',
73
  rating: rating,
74
+ 'mo_openid_rating_given_nonce' : mo_openid_rating_given_nonce,
75
  },
76
  success: function (result) {
77
  jQuery("#mo_openid_support_form_feedback").show();
view/soc_sha/soc_apps/mo_openid_sharing.php CHANGED
@@ -647,12 +647,14 @@ function mo_openid_share_apps()
647
  }
648
 
649
  function check_sharing_enable_apps() {
 
650
  jQuery.ajax({
651
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
652
  method: "POST", //request type,
653
  data: {
654
  action: 'mo_sharing_app_value',
655
  app_name: application,
 
656
  },
657
  success: function (result){
658
  var strArray = result.split("#");
647
  }
648
 
649
  function check_sharing_enable_apps() {
650
+ var mo_sharing_app_value_nonce = <?php echo wp_create_nonce('mo-sharing-app-value-nonce'); ?>;
651
  jQuery.ajax({
652
  url: "<?php echo admin_url("admin-ajax.php");?>", //the page containing php script
653
  method: "POST", //request type,
654
  data: {
655
  action: 'mo_sharing_app_value',
656
  app_name: application,
657
+ 'mo_sharing_app_value_nonce': mo_sharing_app_value_nonce,
658
  },
659
  success: function (result){
660
  var strArray = result.split("#");