Advanced Contact form 7 DB - Version 1.6.0

Version Description

  • We have upgraded with Security patched to securing user's uploaded data which managed on advanced-cf7-upload directory.
Download this release

Release Info

Developer vsourz1td
Plugin Icon 128x128 Advanced Contact form 7 DB
Version 1.6.0
Comparing to
See all releases

Code changes from version 1.5.1 to 1.6.0

Files changed (2) hide show
  1. README.txt +4 -1
  2. advanced-cf7-db.php +27 -2
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vsourz1td
3
  Tags: contact form 7 db, advanced cf7 db, contact form 7 database, contact form db, contact form 7, save form data, save contact form, save cf7, database, cf7db, save-contact-form, Save-Forms-Data, import-cf7, export-contact-data, view-cf7-entry
4
  Requires at least: 4.0
5
  Tested up to: 5.0
6
- Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -169,6 +169,9 @@ function vsz_restrict_form_data_submission($contact_form_ids){
169
 
170
  == Changelog ==
171
 
 
 
 
172
  = 1.5.1 =
173
  * Minor bug fixing related to variable mismatch for wordpress 5.0.1.
174
 
3
  Tags: contact form 7 db, advanced cf7 db, contact form 7 database, contact form db, contact form 7, save form data, save contact form, save cf7, database, cf7db, save-contact-form, Save-Forms-Data, import-cf7, export-contact-data, view-cf7-entry
4
  Requires at least: 4.0
5
  Tested up to: 5.0
6
+ Stable tag: 1.6.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
169
 
170
  == Changelog ==
171
 
172
+ = 1.6.0 =
173
+ * We have upgraded with Security patched to securing user's uploaded data which managed on advanced-cf7-upload directory.
174
+
175
  = 1.5.1 =
176
  * Minor bug fixing related to variable mismatch for wordpress 5.0.1.
177
 
advanced-cf7-db.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: Advanced CF7 DB
10
  * Plugin URI: https://wordpress.org/plugins/advanced-cf7-db/
11
  * Description: Save all contact form 7 submitted data to the database, View, Export, ordering, Change field labels, Import data using CSV very easily.
12
- * Version: 1.5.1
13
  * Author: Vsourz Digital
14
  * Author URI: https://www.vsourz.com
15
  * License: GPL-2.0+
@@ -23,7 +23,7 @@ if ( ! defined( 'WPINC' ) ) {
23
  die;
24
  }
25
  global $vsz_cf7db_current_version;
26
- $vsz_cf7db_current_version = '1.5.1';
27
  /**
28
  * Defining all the table names and setting their prefix here
29
  */
@@ -115,4 +115,29 @@ if(!function_exists("remove_smart_quotes")){
115
 
116
  return $content;
117
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  }
9
  * Plugin Name: Advanced CF7 DB
10
  * Plugin URI: https://wordpress.org/plugins/advanced-cf7-db/
11
  * Description: Save all contact form 7 submitted data to the database, View, Export, ordering, Change field labels, Import data using CSV very easily.
12
+ * Version: 1.6.0
13
  * Author: Vsourz Digital
14
  * Author URI: https://www.vsourz.com
15
  * License: GPL-2.0+
23
  die;
24
  }
25
  global $vsz_cf7db_current_version;
26
+ $vsz_cf7db_current_version = '1.6.0';
27
  /**
28
  * Defining all the table names and setting their prefix here
29
  */
115
 
116
  return $content;
117
  }
118
+ }
119
+
120
+ /***
121
+ * Check if the index file exists in our uploads ADCF7 DB or not
122
+ * If dir exists, check for the index.html file
123
+ * If not exists index.html then create it
124
+ */
125
+ add_action('init', 'vsz_create_index_file');
126
+
127
+ function vsz_create_index_file()
128
+ {
129
+ $upload_dir = wp_upload_dir();
130
+ $acf7db_upload_folder = VSZ_CF7_UPLOAD_FOLDER;
131
+ $acf7db_upload_dir = $upload_dir['basedir'].'/'.$acf7db_upload_folder;
132
+
133
+ if ( file_exists( $acf7db_upload_dir ) ) {
134
+
135
+ $index_file = $acf7db_upload_dir."/index.html";
136
+
137
+ if ( !file_exists( $index_file ) ) {
138
+
139
+ fopen($index_file, "w");
140
+ }
141
+
142
+ }
143
  }