--- a/nex-forms-express-wp-form-builder/includes/classes/class.db.php
+++ b/nex-forms-express-wp-form-builder/includes/classes/class.db.php
@@ -11,7 +11,6 @@
public function __construct(){
- add_action('wp_ajax_deactivate_license', array($this,'deactivate_license'));
add_action('wp_ajax_nf_insert_record', array($this,'insert_record'));
add_action('wp_ajax_nf_update_record', array($this,'update_record'));
add_action('wp_ajax_nf_delete_record', array($this,'delete_record'));
@@ -48,7 +47,6 @@
add_action('wp_ajax_nf_send_test_email', array($this,'nf_send_test_email'));
add_action('wp_ajax_update_paypal', array($this,'update_paypal'));
- add_action('wp_ajax_get_data', array($this,'NEXForms_get_data'));
add_action('wp_ajax_get_c_logic_ui', array($this,'get_c_logic_ui'));
@@ -825,42 +823,7 @@
die();
}
- public function NEXForms_get_data(){
-
-
- $api_params = array(
- 'verify-2' => 1, //'',
- 'license' => sanitize_text_field($_POST['pc']),
- 'user_name' => sanitize_text_field($_POST['eu']),
- 'item_code' => '7103891',
- 'email_address' => get_option('admin_email'),
- 'for_site' => get_option('siteurl'),
- 'unique_key' => get_option('7103891'),
- 're_register' => (($_POST['rereg']=='false') ? false : true),
- 'version' => '9'
- );
-
- // Call the custom API.
- $response = wp_remote_post( 'https://basixonline.net/activate-license-new-api-v3', array(
- 'timeout' => 30,
- 'sslverify' => false,
- 'body' => $api_params
- ) );
- // make sure the response came back okay
-
- if ( is_wp_error( $response ) )
- NEXForms_clean_echo( '<div class="alert alert-danger"><strong>Could not connect</div><br /><br />Please try again later.');
-
- // decode the license data
- $license_data = json_decode($response['body'],true);
- if($license_data['error']<=0)
- {
- update_option( '1983017'.$license_data['key'] , array( $license_data['pc']));
- }
-
- NEXForms_clean_echo( sanitize_text_field($license_data['message']));
- die();
- }
+
/* ALTER TABLE */
public function alter_plugin_table($table='', $col = '', $type='text'){
@@ -3213,18 +3176,7 @@
die();
}
- function deactivate_license(){
- $theme = wp_get_theme();
- if($theme->Name!='NEX-Forms Demo')
- {
- global $wpdb;
- $delete = $wpdb->query('DELETE FROM '.$wpdb->prefix.'options WHERE option_name LIKE "1983017%"'); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
- $api_params = array( 'client_deactivate_license' => 1,'version' => '9','key'=>get_option('7103891'));
- $response = wp_remote_post( 'https://basixonline.net/activate-license-new-api-v3', array('timeout' => 10,'sslverify' => false,'body' => $api_params) );
- update_option( 'nf_activated', false );
- update_option( 'nf_fs_activated', false );
- }
- }
+
public function load_template() {
--- a/nex-forms-express-wp-form-builder/main.php
+++ b/nex-forms-express-wp-form-builder/main.php
@@ -4,7 +4,7 @@
Plugin URI: https://basixonline.net/nex-forms/pricing/?utm_source=wordpress_fs&utm_medium=upgrade&utm_content=feature_unlock"
Description: Premium WordPress Plugin - Ultimate Drag and Drop WordPress Forms Builder.
Author: Basix
-Version: 9.1.9
+Version: 9.1.10
Author URI: https://basixonline.net/nex-forms/pricing/?utm_source=wordpress_fs&utm_medium=upgrade&utm_content=feature_unlock"
License: GPL
Text Domain: nex-forms
@@ -2701,16 +2701,7 @@
);
die();
}
-$update_entry = isset($_REQUEST['nf_update_entry']) ? sanitize_text_field($_REQUEST['nf_update_entry']) : false;
-$create_entry = isset($_REQUEST['nf_create_entry']) ? sanitize_text_field($_REQUEST['nf_create_entry']) : false;
-if($update_entry || $create_entry)
- {
- if($update_entry)
- submit_nex_form($entry_action = 'update_entry');
- if($create_entry)
- submit_nex_form($entry_action = 'update_entry');
- }
function submit_nex_form($entry_action = false){
@@ -2942,85 +2933,9 @@
if($save_to_db)
{
- $check_entry_update = isset($_REQUEST['nf_set_entry_update_id']) ? sanitize_text_field($_REQUEST['nf_set_entry_update_id']) : false;
- $check_entry_redirect_update = isset($_REQUEST['nf_entry_redirect_id']) ? sanitize_text_field($_REQUEST['nf_entry_redirect_id']) : false;
- if($check_entry_redirect_update)
- {
- $get_data = $wpdb->get_var($wpdb->prepare('SELECT form_data FROM '. $wpdb->prefix .'wap_nex_forms_entries WHERE Id = %d',sanitize_text_field($check_entry_redirect_update))); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
-
- $set_data = json_decode($get_data);
-
- $merge_data = array_merge($set_data,$data_array);
-
- $insert = $wpdb->update($wpdb->prefix.'wap_nex_forms_entries', // phpcs:ignore WordPress.DB.DirectDatabaseQuery
- array(
- 'nex_forms_Id' => $set_nex_forms_id,
- 'page' => sanitize_text_field($_POST['page']),
- 'ip' => sanitize_text_field($_POST['ip']),
- 'paypal_invoice' => sanitize_text_field($_POST['paypal_invoice']),
- 'user_Id' => get_current_user_id(),
- 'hostname' => $geo_data->hostname,
- 'city' => $geo_data->city,
- 'region' => $geo_data->region,
- 'country' => $geo_data->country,
- 'loc' => $geo_data->loc,
- 'org' => $geo_data->org,
- 'postal' => $geo_data->postal,
- 'date_time' => $set_date->format('Y-m-d H:i:s'),
- 'form_data' => json_encode($merge_data),
- 'paypal_payment_token' => $paypal_transaction['payment_token'],
- 'paypal_payment_id' => $paypal_transaction['payment_id'],
- 'payment_ammount' => $paypal_transaction['payment_ammount'],
- 'payment_currency' => $paypal_transaction['payment_currency'],
- 'payment_status' => 'pending',
- 'attachments' => (count($insert_file_array)>0) ? 1 : NULL
- ), array( 'Id' => sanitize_text_field($check_entry_redirect_update))
- );
- $get_result = $wpdb->get_var($wpdb->prepare('SELECT entry_count FROM '. $wpdb->prefix .'wap_nex_forms WHERE Id = %d',sanitize_text_field($form_attr->Id))); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
- $set_count = $get_result + 1;
- $update = $wpdb->update ( $wpdb->prefix . 'wap_nex_forms', array('entry_count'=>$set_count), array( 'Id' => sanitize_text_field($form_attr->Id)) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
-
- $entry_id = $check_entry_redirect_update;
-
- }
- else if($check_entry_update)
- {
- $insert = $wpdb->update($wpdb->prefix.'wap_nex_forms_entries', // phpcs:ignore WordPress.DB.DirectDatabaseQuery
- array(
- 'nex_forms_Id' => $set_nex_forms_id,
- 'page' => sanitize_text_field($_POST['page']),
- 'ip' => sanitize_text_field($_POST['ip']),
- 'paypal_invoice' => sanitize_text_field($_POST['paypal_invoice']),
- 'user_Id' => get_current_user_id(),
- 'hostname' => $geo_data->hostname,
- 'city' => $geo_data->city,
- 'region' => $geo_data->region,
- 'country' => $geo_data->country,
- 'loc' => $geo_data->loc,
- 'org' => $geo_data->org,
- 'postal' => $geo_data->postal,
- 'date_time' => $set_date->format('Y-m-d H:i:s'),
- 'form_data' => json_encode($data_array),
- 'paypal_payment_token' => $paypal_transaction['payment_token'],
- 'paypal_payment_id' => $paypal_transaction['payment_id'],
- 'payment_ammount' => $paypal_transaction['payment_ammount'],
- 'payment_currency' => $paypal_transaction['payment_currency'],
- 'payment_status' => 'pending',
- 'attachments' => (count($insert_file_array)>0) ? 1 : NULL
- ), array( 'Id' => sanitize_text_field($check_entry_update))
- );
- $get_result = $wpdb->get_var($wpdb->prepare('SELECT entry_count FROM '. $wpdb->prefix .'wap_nex_forms WHERE Id = %d',sanitize_text_field($form_attr->Id))); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
- $set_count = $get_result + 1;
- $update = $wpdb->update ( $wpdb->prefix . 'wap_nex_forms', array('entry_count'=>$set_count), array( 'Id' => sanitize_text_field($form_attr->Id)) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
-
- $entry_id = $check_entry_update;
-
- }
- else
- {
$insert = $wpdb->insert($wpdb->prefix.'wap_nex_forms_entries', // phpcs:ignore WordPress.DB.DirectDatabaseQuery
array(
'nex_forms_Id' => $set_nex_forms_id,
@@ -3050,9 +2965,6 @@
$update = $wpdb->update ( $wpdb->prefix . 'wap_nex_forms', array('entry_count'=>$set_count), array( 'Id' => sanitize_text_field($form_attr->Id)) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery
$entry_id = $wpdb->insert_id;
- }
-
-
}
if($entry_action)