Contact Form for WordPress – Ultimate Form Builder Lite - Version 1.4.0

Version Description

  • Removed use of php session
  • Updated few sanitizations
  • WordPress 5.0 compatibility checked
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Contact Form for WordPress – Ultimate Form Builder Lite
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.9 to 1.4.0

inc/cores/save-form.php CHANGED
@@ -136,8 +136,8 @@ $wpdb->update(
136
  '%s' //form_modified
137
  ), array( '%d' )
138
  );
139
- $_SESSION['ufbl_message'] = __( 'Form Updated Successfully', 'ultimate-form-builder-lite' );
140
- $redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id );
141
  wp_redirect( $redirect_url );
142
  exit;
143
 
136
  '%s' //form_modified
137
  ), array( '%d' )
138
  );
139
+ //$_SESSION['ufbl_message'] = __( 'Form Updated Successfully', 'ultimate-form-builder-lite' );
140
+ $redirect_url = admin_url( 'admin.php?page=ufbl&action=edit-form&form_id=' . $form_id.'&message=1' );
141
  wp_redirect( $redirect_url );
142
  exit;
143
 
inc/views/backend/form-builder.php CHANGED
@@ -15,12 +15,12 @@
15
  <a href="javascript:void(0);" class="nav-tab ufbl-tab-trigger" data-id="morewp"><?php _e( 'More WordPress Resources', 'ultimate-form-builder-lite' ); ?></a>
16
 
17
  </h2>
18
- <?php if ( isset( $_SESSION['ufbl_message'] ) ) { ?>
19
  <div class="ufbl-message">
20
  <p>
21
  <?php
22
- echo $_SESSION['ufbl_message'];
23
- unset( $_SESSION['ufbl_message'] );
24
  ?>
25
  </p>
26
  <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
15
  <a href="javascript:void(0);" class="nav-tab ufbl-tab-trigger" data-id="morewp"><?php _e( 'More WordPress Resources', 'ultimate-form-builder-lite' ); ?></a>
16
 
17
  </h2>
18
+ <?php if ( !empty( $_GET['message'] ) ) { ?>
19
  <div class="ufbl-message">
20
  <p>
21
  <?php
22
+ _e( 'Form Updated Successfully', 'ultimate-form-builder-lite' );
23
+
24
  ?>
25
  </p>
26
  <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
3
  Tags: contact form, form builder, form, forms, contact forms, enquiry forms, form manager, email form, lead form, email, database store form, form entry, form entries, email forms
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
- Tested up to: 4.9
7
- Stable tag: 1.3.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -164,6 +164,11 @@ Once you install the plugin , you can check some general documentation about how
164
  10. Backend Entry Detail
165
 
166
  == Changelog ==
 
 
 
 
 
167
  = 1.3.9 =
168
  * Updaed More WordPress Resources tab
169
 
3
  Tags: contact form, form builder, form, forms, contact forms, enquiry forms, form manager, email form, lead form, email, database store form, form entry, form entries, email forms
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
+ Tested up to: 5.0
7
+ Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
164
  10. Backend Entry Detail
165
 
166
  == Changelog ==
167
+ = 1.4.0 =
168
+ * Removed use of php session
169
+ * Updated few sanitizations
170
+ * WordPress 5.0 compatibility checked
171
+
172
  = 1.3.9 =
173
  * Updaed More WordPress Resources tab
174
 
ultimate-form-builder-lite.php CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
6
  Plugin Name: Ultimate Form Builder Lite
7
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
8
  Description: A plugin to build any type of forms
9
- Version: 1.3.9
10
  Author: AccessPress Themes
11
  Author URI: http://accesspressthemes.com
12
  License: GPL2
@@ -19,7 +19,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
19
  * Necessary Constants for plugin
20
  */
21
  global $wpdb;
22
- defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.3.9' ); //plugin version
23
  defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
24
  defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
25
  defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
@@ -122,9 +122,6 @@ if ( !class_exists( 'UFBL_Class' ) ) {
122
  */
123
  function ufbl_init() {
124
  load_plugin_textdomain( 'ultimate-form-builder-lite', false, basename( dirname( __FILE__ ) ) . '/languages' ); //Loads plugin text domain for the translation
125
- if ( !session_id() && !headers_sent() ) {
126
- session_start(); //starts session if already not started
127
- }
128
  do_action( 'ufbl_init' );
129
  }
130
 
@@ -354,7 +351,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
354
  function entry_delete_action() {
355
  if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'ufbl-admin-ajax-nonce' ) ) {
356
  //$this->library->print_array($_POST);die();
357
- $entry_id = sanitize_text_field( $_POST['entry_id'] );
358
  $delete = $this->model->delete_entry( $entry_id );
359
  } else {
360
  die( 'No script kiddies please!' );
@@ -367,7 +364,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
367
  function get_entry_detail_action() {
368
  if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'ufbl-admin-ajax-nonce' ) ) {
369
  //$this->library->print_array($_POST);die();
370
- $entry_id = sanitize_text_field( $_POST['entry_id'] );
371
  $entry_row = $this->model->get_entry_detail( $entry_id );
372
  $data['entry_row'] = $entry_row;
373
  $this->library->load_view( 'backend/entry-detail', $data );
6
  Plugin Name: Ultimate Form Builder Lite
7
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
8
  Description: A plugin to build any type of forms
9
+ Version: 1.4.0
10
  Author: AccessPress Themes
11
  Author URI: http://accesspressthemes.com
12
  License: GPL2
19
  * Necessary Constants for plugin
20
  */
21
  global $wpdb;
22
+ defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.4.0' ); //plugin version
23
  defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
24
  defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
25
  defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
122
  */
123
  function ufbl_init() {
124
  load_plugin_textdomain( 'ultimate-form-builder-lite', false, basename( dirname( __FILE__ ) ) . '/languages' ); //Loads plugin text domain for the translation
 
 
 
125
  do_action( 'ufbl_init' );
126
  }
127
 
351
  function entry_delete_action() {
352
  if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'ufbl-admin-ajax-nonce' ) ) {
353
  //$this->library->print_array($_POST);die();
354
+ $entry_id = intval( $_POST['entry_id'] );
355
  $delete = $this->model->delete_entry( $entry_id );
356
  } else {
357
  die( 'No script kiddies please!' );
364
  function get_entry_detail_action() {
365
  if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'ufbl-admin-ajax-nonce' ) ) {
366
  //$this->library->print_array($_POST);die();
367
+ $entry_id = intval( $_POST['entry_id'] );
368
  $entry_row = $this->model->get_entry_detail( $entry_id );
369
  $data['entry_row'] = $entry_row;
370
  $this->library->load_view( 'backend/entry-detail', $data );