Ultimate CSV Importer - Version 3.6.71

Version Description

Download this release

Release Info

Developer smackcoders
Plugin Icon 128x128 Ultimate CSV Importer
Version 3.6.71
Comparing to
See all releases

Code changes from version 3.6.75 to 3.6.71

Readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === WP Ultimate CSV Importer Plugin ===
2
  Contributors: smackcoders
3
  Donate link: http://www.smackcoders.com/donate.html
4
- Tags: batch, csv, excel, import, spreadsheet, autoblog, Autoblogger, csvimporter, data, dataimport, importer, wpcsvimporter, wpimporter, acf, auto blog, csv import, csv to post, data import, Easy CSV Importer, eci, import plugin, admin, user, users, Advanced CSV Import, Advanced CSV Importer, affiliate, amazon, author, automatic, blog, bulk, bulk edit, bulk editor, categories, comments, content, csv file, csv format, csv importer, custom post, e-commerce, free, images, language, manage, media, meta, multisite, News, page, photos, pictures, plugin, Post, seo, shop, shortcode, tags, Taxonomy, text, title, video, eshop, woocommerce, wordpress, xml, youtube, export
5
  Requires at least: 3.9
6
- Tested up to: 4.1
7
- Stable tag: 3.6.75
8
- Version: 3.6.75
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
 
@@ -15,9 +15,7 @@ Advanced CSV Importer plugin to import/export posts, pages, eshop products, cust
15
 
16
  == Description ==
17
 
18
- Wordpress Ultimate CSV Importer Pro V4.0 Beta is available as live demo for users to test drive all new features, improvements and changes from http://demo.smackcoders.com/csv4beta. Users can get product manual and sample csv files etc., from - https://www.smackcoders.com/blog/wordpress-ultimate-csv-importer-pro-v4-0-beta-demo-is-available.html
19
-
20
- ** Now stable version 3.6.75 available to download with hot security fix. Visit [www.wpultimatecsvimporter.com](http://www.wpultimatecsvimporter.com) for more news and future plans.
21
 
22
  WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer With Ultimate User Friendly Features. It is much easy now even for newbies to import any csv file as any wordpress post type and associated fields by simple mapping feature. Now import any CSV file as thousands of post, page and custom post types. This is admin side free plugin helps you in bulk edit, create and import posts type for your blog or site.
23
 
@@ -26,7 +24,6 @@ WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer
26
  <p>https://www.youtube.com/watch?v=Guv5zR7fgW0&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
27
 
28
  = Highlights =
29
- * New Terminate & Continue feature is added.
30
  * Complete export feature with improved filters
31
  * Import external/internal images in line to any posts
32
  * Upload images related to each csv
@@ -41,12 +38,12 @@ WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer
41
  * Scheduled Publishing
42
  * Duplicate Title and content handling
43
  * Multi Lingual import (CSV format must be UTF-8 without BOM)
44
- * Mutisite also supported now
45
  * Compatible to wordpress themes
46
  * Better alternative for xml
47
  * Post Format option added
48
  * Page template attribute feature
49
- * EShop Products import (included from V3.6.3)
50
  = Power Import Features to Control your csv import =
51
  * Post title, content and even excerpt
52
  * Text, WYSIWYG/HTML, in line CSS in post content
@@ -180,28 +177,6 @@ This will solve your issue or get support from hosting if you dint have sufficie
180
 
181
  == Changelog ==
182
 
183
- = 3.6.75 =
184
- * Added: Terminate & Continue option in import section.
185
- * Improved: Log section. Issue fixed in Web View & Admin View.
186
- * Fixed: Secrity fix for export module.
187
-
188
- = 3.6.74 =
189
- * Added: Secrity fix.
190
-
191
- = 3.6.73 =
192
- * Added: WordPress 4.0 compatibility checked.
193
- * Added: https format support for all wp instances.
194
- * Added: Warning to guide user to create uploads directory with writeable permissions.
195
- * Fixed: Image handling issues in featured image.
196
- * Fixed: Multisite compatible issue.
197
- * Removed: Post Content field mandatory option.
198
- * Removed: All console warnings.
199
- * Improved: Details added in security and performance tab under settings module.
200
-
201
- = 3.6.72 =
202
- * Added: Debug mode enable/disable options.
203
- * Modified: Menu order changes.
204
-
205
  = 3.6.71 =
206
  * Minor bug fixed
207
 
@@ -399,18 +374,6 @@ This will solve your issue or get support from hosting if you dint have sufficie
399
 
400
  == Upgrade Notice ==
401
 
402
- = 3.6.75 =
403
- * Upgrade now for improved experience.
404
-
405
- = 3.6.74 =
406
- * Upgrade now for secrity fix.
407
-
408
- = 3.6.73 =
409
- * Upgrade now for WordPress 4.0 compatibility and minor bug fixes.
410
-
411
- = 3.6.72 =
412
- * Upgrade to enable/disable debug mode in settings.
413
-
414
  = 3.6.71 =
415
  * Upgrade now for complete export features as in Pro with bug fix.
416
 
1
  === WP Ultimate CSV Importer Plugin ===
2
  Contributors: smackcoders
3
  Donate link: http://www.smackcoders.com/donate.html
4
+ Tags: batch, csv, excel, import, spreadsheet, autoblog, Autoblogger, csvimporter, data, dataimport, importer, wpcsvimporter, wpimporter, acf, auto blog, csv import, csv to post, data import, Easy CSV Importer, eci, import plugin, admin, user, users, Advanced CSV Import, Advanced CSV Importer, affiliate, amazon, author, automatic, blog, buddypress, bulk, bulk edit, bulk editor, categories, comments, content, csv file, csv format, csv importer, custom post, e-commerce, free, images, language, manage, media, meta, multisite, News, page, photos, pictures, plugin, Post, seo, shop, shortcode, tags, Taxonomy, text, title, video, eshop, woocommerce, wordpress, xml, youtube, export
5
  Requires at least: 3.9
6
+ Tested up to: 4.0
7
+ Stable tag: 3.6.71
8
+ Version: 3.6.71
9
  Author: smackcoders
10
  Author URI: http://profiles.wordpress.org/smackcoders/
11
 
15
 
16
  == Description ==
17
 
18
+ ** Now version 3.6.7 (3.6.71 minor bug fixed) with complete export features with advanced filters was only available in pro edition. Visit [www.wpultimatecsvimporter.com](http://www.wpultimatecsvimporter.com) for more news and future plans.
 
 
19
 
20
  WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer With Ultimate User Friendly Features. It is much easy now even for newbies to import any csv file as any wordpress post type and associated fields by simple mapping feature. Now import any CSV file as thousands of post, page and custom post types. This is admin side free plugin helps you in bulk edit, create and import posts type for your blog or site.
21
 
24
  <p>https://www.youtube.com/watch?v=Guv5zR7fgW0&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
25
 
26
  = Highlights =
 
27
  * Complete export feature with improved filters
28
  * Import external/internal images in line to any posts
29
  * Upload images related to each csv
38
  * Scheduled Publishing
39
  * Duplicate Title and content handling
40
  * Multi Lingual import (CSV format must be UTF-8 without BOM)
41
+ * Mutisite and Buddypress also supported now
42
  * Compatible to wordpress themes
43
  * Better alternative for xml
44
  * Post Format option added
45
  * Page template attribute feature
46
+ * EShop Proucts import (included from V3.6.3)
47
  = Power Import Features to Control your csv import =
48
  * Post title, content and even excerpt
49
  * Text, WYSIWYG/HTML, in line CSS in post content
177
 
178
  == Changelog ==
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  = 3.6.71 =
181
  * Minor bug fixed
182
 
374
 
375
  == Upgrade Notice ==
376
 
 
 
 
 
 
 
 
 
 
 
 
 
377
  = 3.6.71 =
378
  * Upgrade now for complete export features as in Pro with bug fix.
379
 
css/main.css CHANGED
@@ -415,7 +415,7 @@ border: 2px solid red;
415
  border-radius:4px;
416
  -moz-border-radius: 4px;
417
  -webkit-border-radius: 4px;
418
- /* top:190px; */
419
  position:relative;
420
  }
421
 
415
  border-radius:4px;
416
  -moz-border-radius: 4px;
417
  -webkit-border-radius: 4px;
418
+ top:190px;
419
  position:relative;
420
  }
421
 
css/style.css CHANGED
@@ -251,10 +251,6 @@ position: absolute;
251
  padding: 15px 0;
252
  }
253
 
254
- .method1 img, .method2 img, .method3 img, .method4 img, #showmappingtemplate img, .databaseoptimization img {
255
- margin-top:-25px;
256
- }
257
-
258
  #boxmethod1, #boxmethod2, #boxmethod3, #boxmethod4 {
259
  padding: 10px;
260
  }
@@ -437,11 +433,11 @@ padding-bottom: 10px;
437
  margin-top: -33px;
438
  margin-right: 8px;
439
  }
440
- #wpusercheck,#allowimport,#schedulecheck,#dropon,#catenable,#postlabel,#debugmode_enable,
441
  #pagelabel,#userlabel,#commentslabel,#custaxlabel,#cplabel,#catlabel,#custrevlabel {
442
  border-radius:5px 0 0 5px;
443
  }
444
- #wpuseruncheck,#donallowimport,#scheduleuncheck,#dropoff,#catdisable,#nopostlabel, #debugmode_disable,
445
  #nopagelabel,#nouserlabel,#nocommentslabel,#nocustaxlabel,#nocplabel,#nocatlabel,#nocustrevlabel {
446
  border-radius:0 5px 5px 0;
447
  }
@@ -652,6 +648,4 @@ margin-top: 10px;
652
  height:315px !important;
653
  }
654
  /*End off summary*/
655
- #noPlugin {
656
- margin: 5% 12%;
657
- }
251
  padding: 15px 0;
252
  }
253
 
 
 
 
 
254
  #boxmethod1, #boxmethod2, #boxmethod3, #boxmethod4 {
255
  padding: 10px;
256
  }
433
  margin-top: -33px;
434
  margin-right: 8px;
435
  }
436
+ #wpusercheck,#allowimport,#schedulecheck,#dropon,#catenable,#postlabel,
437
  #pagelabel,#userlabel,#commentslabel,#custaxlabel,#cplabel,#catlabel,#custrevlabel {
438
  border-radius:5px 0 0 5px;
439
  }
440
+ #wpuseruncheck,#donallowimport,#scheduleuncheck,#dropoff,#catdisable,#nopostlabel,
441
  #nopagelabel,#nouserlabel,#nocommentslabel,#nocustaxlabel,#nocplabel,#nocatlabel,#nocustrevlabel {
442
  border-radius:0 5px 5px 0;
443
  }
648
  height:315px !important;
649
  }
650
  /*End off summary*/
651
+
 
 
images/pro_icon.gif DELETED
Binary file
includes/WPImporter_includes_helper.php CHANGED
@@ -818,7 +818,7 @@ class WPImporter_includes_helper {
818
  $skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
819
  }
820
  }
821
- $this->detailedLog[$currentLimit]['verify_here'] = "<b>Verify Here -</b> <a href='" . get_permalink( $post_id ) . "' title='" . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $data_array['post_title'] ) ) . "' rel='permalink' target='_blank'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "' target='_blank'>" . __( 'Admin View' ) . "</a>";
822
 
823
  unset($data_array);
824
  }
@@ -857,8 +857,6 @@ class WPImporter_includes_helper {
857
  $wpdb->query($sql4);
858
  }
859
  }
860
- $saveSettings = array('savesettings' => 'Save', 'post' => 'post', 'page' => 'page', 'custompost' => 'custompost', 'drop_table' => 'off', 'debug_mode' => 'disable_debug', 'export_delimiter' => ';',);
861
- update_option('wpcsvfreesettings', $saveSettings);
862
  }
863
 
864
  //Drop Database While Deactivate plugin
@@ -870,7 +868,7 @@ class WPImporter_includes_helper {
870
  $sql2 = "DROP TABLE smackcsv_line_log;";
871
  $wpdb->query($sql2);
872
 
873
- update_option('wpcsvfreesettings','');
874
  }
875
  public function addPieChartEntry($imported_as, $count) {
876
  //add total counts
@@ -1051,13 +1049,13 @@ class WPImporter_includes_helper {
1051
  </div>
1052
  <div style = "opacity: 0.3;background-color: ghostwhite;">
1053
  <div id="boxmethod2" class="method2">
1054
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP') . '</span> </label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1055
  </div>
1056
  <div id="boxmethod3" class="method3">
1057
- <label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL') . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1058
  </div>
1059
  <div id="boxmethod4" class="method4">
1060
- <label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded') . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
1061
  </div>
1062
  </div>
1063
 
818
  $skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
819
  }
820
  }
821
+ $this->detailedLog[$currentLimit]['verify_here'] = "<b>Verify Here -</b> <a href='" . get_permalink( $post_id ) . "' title='" . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $data_array['post_title'] ) ) . "' rel='permalink'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "'>" . __( 'Admin View' ) . "</a>";
822
 
823
  unset($data_array);
824
  }
857
  $wpdb->query($sql4);
858
  }
859
  }
 
 
860
  }
861
 
862
  //Drop Database While Deactivate plugin
868
  $sql2 = "DROP TABLE smackcsv_line_log;";
869
  $wpdb->query($sql2);
870
 
871
+
872
  }
873
  public function addPieChartEntry($imported_as, $count) {
874
  //add total counts
1049
  </div>
1050
  <div style = "opacity: 0.3;background-color: ghostwhite;">
1051
  <div id="boxmethod2" class="method2">
1052
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP') . '</span> </label> <br>
1053
  </div>
1054
  <div id="boxmethod3" class="method3">
1055
+ <label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL') . '</span></label> <br>
1056
  </div>
1057
  <div id="boxmethod4" class="method4">
1058
+ <label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded') . '</span></label> <br>
1059
  </div>
1060
  </div>
1061
 
index.php CHANGED
@@ -2,7 +2,7 @@
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: A plugin that helps to import the data's from a CSV file.
5
- * Version: 3.6.75
6
  * Author: smackcoders.com
7
  * Plugin URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
8
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
@@ -43,39 +43,15 @@
43
  * Notices must display the words
44
  * "Copyright Smackcoders. 2014. All rights reserved".
45
  ********************************************************************************/
46
-
47
- $get_debug_mode = get_option('wpcsvfreesettings');
48
- if(isset($get_debug_mode['debug_mode']) && $get_debug_mode['debug_mode'] != 'enable_debug') {
49
- error_reporting(0);
50
- ini_set('display_errors', 'Off');
51
- }
52
-
53
- @ob_start();
54
- add_action('init', 'myStartSession', 1);
55
- add_action('wp_logout', 'myEndSession');
56
- add_action('wp_login', 'myEndSession');
57
- /**
58
- * To Start Session
59
- */
60
- function myStartSession() {
61
- if (!session_id()) {
62
- session_start();
63
- }
64
- }
65
- /**
66
- * To Destroy session
67
- */
68
- function myEndSession() {
69
- session_destroy();
70
- }
71
- if ( empty( $GLOBALS['wp_rewrite'] ) )
72
- $GLOBALS['wp_rewrite'] = new WP_Rewrite();
73
 
74
  define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html');
75
  define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
76
  define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
77
  define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
78
- define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.75');
79
  define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
80
  define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
81
  define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
@@ -84,7 +60,6 @@ if (!class_exists('SkinnyControllerWPCsvFree')) {
84
  require_once('lib/skinnymvc/controller/SkinnyController.php');
85
  }
86
 
87
-
88
  require_once('plugins/class.inlineimages.php');
89
  require_once('includes/WPImporter_includes_helper.php');
90
 
@@ -93,31 +68,26 @@ register_activation_hook(__FILE__, array('WPImporter_includes_helper', 'activate
93
  register_deactivation_hook(__FILE__, array('WPImporter_includes_helper', 'deactivate'));
94
 
95
  function action_csv_imp_admin_menu() {
96
- if(!function_exists('wp_get_current_user')) {
97
  include(ABSPATH . "wp-includes/pluggable.php");
98
  }
99
- if(is_multisite()) {
100
- if ( current_user_can( 'administrator' ) ) {
101
- add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
102
- } else if ( current_user_can( 'author' ) || current_user_can( 'editor' ) ) {
103
- $HelperObj = new WPImporter_includes_helper();
104
- $settings = $HelperObj->getSettings();
105
- if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
106
- add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, '2', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
107
- }
108
- }
109
- }
110
- else {
111
- if ( current_user_can( 'author' ) || current_user_can( 'editor' ) ) {
112
- $HelperObj = new WPImporter_includes_helper();
113
- $settings = $HelperObj->getSettings();
114
- if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
115
- add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, '2', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
116
- }
117
- } else if ( current_user_can( 'administrator' ) ) {
118
- add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
119
  }
 
 
120
  }
 
121
  }
122
  add_action("admin_menu" , "action_csv_imp_admin_menu");
123
 
@@ -154,20 +124,6 @@ function action_csv_imp_admin_init() {
154
  }
155
 
156
  add_action('admin_init', 'action_csv_imp_admin_init');
157
-
158
- // Move Pages above Media
159
- function smackcsvfree_change_menu_order( $menu_order ) {
160
- return array(
161
- 'index.php',
162
- 'edit.php',
163
- 'edit.php?post_type=page',
164
- 'upload.php',
165
- 'wp-ultimate-csv-importer/index.php',
166
- );
167
- }
168
- add_filter( 'custom_menu_order', '__return_true' );
169
- add_filter( 'menu_order', 'smackcsvfree_change_menu_order' );
170
-
171
  function firstchart() {
172
  require_once("modules/dashboard/actions/chartone.php");
173
  die();
@@ -227,7 +183,7 @@ function linetwoStats() {
227
 
228
  function wpcsvimporter_add_dashboard_widgets() {
229
 
230
- wp_enqueue_script('dashpiechart', plugins_url('js/dashchart-widget.js', __FILE__));
231
  wp_enqueue_script('high_chart', plugins_url('js/highcharts.js', __FILE__));
232
  wp_enqueue_script('export_module', plugins_url('js/exporting.js', __FILE__));
233
  wp_enqueue_script('pie_chart', plugins_url('js/highcharts-3d.js', __FILE__));
@@ -237,12 +193,24 @@ function wpcsvimporter_add_dashboard_widgets() {
237
 
238
  add_action('wp_dashboard_setup', 'wpcsvimporter_add_dashboard_widgets');
239
 
240
- /**
241
- * To Process the Import
242
- */
243
  function importByRequest() {
244
  require_once("templates/import.php");
245
  die;
246
  }
 
247
  add_action('wp_ajax_importByRequest', 'importByRequest');
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /******************************
3
  * Plugin Name: WP Ultimate CSV Importer
4
  * Description: A plugin that helps to import the data's from a CSV file.
5
+ * Version: 3.6.71
6
  * Author: smackcoders.com
7
  * Plugin URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
8
  * Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
43
  * Notices must display the words
44
  * "Copyright Smackcoders. 2014. All rights reserved".
45
  ********************************************************************************/
46
+ error_reporting(0);
47
+ ini_set('display_errors', 'Off');
48
+ ob_start();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
  define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html');
51
  define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
52
  define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
53
  define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
54
+ define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.71');
55
  define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
56
  define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
57
  define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
60
  require_once('lib/skinnymvc/controller/SkinnyController.php');
61
  }
62
 
 
63
  require_once('plugins/class.inlineimages.php');
64
  require_once('includes/WPImporter_includes_helper.php');
65
 
68
  register_deactivation_hook(__FILE__, array('WPImporter_includes_helper', 'deactivate'));
69
 
70
  function action_csv_imp_admin_menu() {
71
+ if(!function_exists('wp_get_current_user')) {
72
  include(ABSPATH . "wp-includes/pluggable.php");
73
  }
74
+ if(is_multisite()) {
75
+ if ( current_user_can( 'administrator' ) ) {
76
+ add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
77
+ }
78
+
79
+ }
80
+ else {
81
+ if ( current_user_can( 'author' ) ) {
82
+ $HelperObj = new WPImporter_includes_helper();
83
+ $settings = $HelperObj->getSettings();
84
+ if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
85
+ add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, '2', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
 
 
 
 
 
 
 
 
86
  }
87
+ } else if ( current_user_can( 'administrator' ) ) {
88
+ add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
89
  }
90
+ }
91
  }
92
  add_action("admin_menu" , "action_csv_imp_admin_menu");
93
 
124
  }
125
 
126
  add_action('admin_init', 'action_csv_imp_admin_init');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  function firstchart() {
128
  require_once("modules/dashboard/actions/chartone.php");
129
  die();
183
 
184
  function wpcsvimporter_add_dashboard_widgets() {
185
 
186
+ wp_enqueue_script('dashpiechart', plugins_url('js/dashchart.js', __FILE__));
187
  wp_enqueue_script('high_chart', plugins_url('js/highcharts.js', __FILE__));
188
  wp_enqueue_script('export_module', plugins_url('js/exporting.js', __FILE__));
189
  wp_enqueue_script('pie_chart', plugins_url('js/highcharts-3d.js', __FILE__));
193
 
194
  add_action('wp_dashboard_setup', 'wpcsvimporter_add_dashboard_widgets');
195
 
196
+
 
 
197
  function importByRequest() {
198
  require_once("templates/import.php");
199
  die;
200
  }
201
+
202
  add_action('wp_ajax_importByRequest', 'importByRequest');
203
 
204
+ add_action('init', 'myStartSession', 1);
205
+ add_action('wp_logout', 'myEndSession');
206
+ add_action('wp_login', 'myEndSession');
207
+
208
+ function myStartSession() {
209
+ if (!session_id()) {
210
+ session_start();
211
+ }
212
+ }
213
+
214
+ function myEndSession() {
215
+ session_destroy();
216
+ }
js/dashchart-widget.js DELETED
@@ -1,109 +0,0 @@
1
- jQuery( document ).ready(function() {
2
- pieStats();
3
- lineStats();
4
- });
5
- function pieStats()
6
- {
7
- jQuery.ajax({
8
- type: 'POST',
9
- url: ajaxurl,
10
- data: {
11
- 'action' : 'firstchart',
12
- 'postdata' : 'firstchartdata',
13
- },
14
- dataType: 'json',
15
- cache: false,
16
- success: function(data) {
17
- var browser = JSON.parse(data);
18
- if (browser['label'] == 'No Imports Yet') {
19
- document.getElementById('pieStats').innerHTML = "<h2 style='color: red;text-align: center;padding-top: 100px;' >No Imports Yet</h2>";
20
- return false;
21
- }
22
-
23
- jQuery('#pieStats').highcharts({
24
- chart: {
25
- type: 'pie',
26
- options3d: {
27
- enabled: true,
28
- alpha: 45,
29
- beta: 0
30
- }
31
- },
32
- title: {
33
- text: ''
34
- },
35
- tooltip: {
36
- pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
37
- },
38
- plotOptions: {
39
- pie: {
40
- allowPointSelect: true,
41
- cursor: 'pointer',
42
- depth: 35,
43
- dataLabels: {
44
- enabled: true,
45
- format: '{point.name}'
46
- }
47
- }
48
- },
49
- series: [{
50
- type: 'pie',
51
- name: 'overall statistics',
52
- // data: JSON.parse(data),
53
- data: browser
54
- }]
55
- });
56
- }
57
- });
58
- }
59
- function lineStats()
60
- {
61
- jQuery.ajax({
62
- type: 'POST',
63
- url: ajaxurl,
64
- data: {
65
- 'action' : 'secondchart',
66
- 'postdata' : 'secondchartdata',
67
- },
68
- dataType: 'json',
69
- cache: false,
70
- success: function(data) {
71
- var val = JSON.parse(data);
72
- var line = [val[0],val[1],val[2],val[3],val[4],val[5]];
73
- jQuery('#lineStats').highcharts({
74
- title: {
75
- text: '',
76
- x: -5 //center
77
- },
78
- subtitle: {
79
- text: '',
80
- x: -5
81
- },
82
- xAxis: {
83
- categories:val.cat
84
- },
85
- yAxis: {
86
- title: {
87
- text: 'Import (Nos)'
88
- },
89
- plotLines: [{
90
- value: 0,
91
- width: 1,
92
- color: '#808080'
93
- }]
94
- },
95
- tooltip: {
96
- valueSuffix: ' Nos'
97
- },
98
- legend: {
99
- layout: 'vertical',
100
- align: 'right',
101
- verticalAlign: 'middle',
102
- borderWidth: 0
103
- },
104
- series:line });
105
- }
106
- });
107
- }
108
-
109
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/dashchart.js CHANGED
@@ -1,9 +1,6 @@
1
  jQuery( document ).ready(function() {
2
- var get_module = document.getElementById('checkmodule').value;
3
- if(get_module == 'dashboard') {
4
- pieStats();
5
- lineStats();
6
- }
7
  });
8
  function pieStats()
9
  {
1
  jQuery( document ).ready(function() {
2
+ pieStats();
3
+ lineStats();
 
 
 
4
  });
5
  function pieStats()
6
  {
js/ultimate-importer-free.js CHANGED
@@ -7,8 +7,8 @@ jQuery( document ).ready(function() {
7
  document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>';
8
  }
9
 
10
- //pieStats();
11
- //lineStats();
12
 
13
 
14
  }
@@ -374,26 +374,26 @@ function import_csv()
374
  if (array[j] == 'post_title') {
375
  val1 = 'On';
376
  }
377
- /* if (array[j] == 'post_content') {
378
  val2 = 'On';
379
- } */
380
  if (post_status_msg == 'Off') {
381
  if (array[j] == 'post_status')
382
  post_status_msg = 'On';
383
  }
384
  }
385
- if (importer != 'custompost' && val1 == 'On' && post_status_msg == 'On') {
386
  return true;
387
  }
388
- else if (importer == 'custompost' && val1 == 'On' && post_status_msg == 'On' && post_type=='On') {
389
  return true;
390
  }
391
  else {
392
  error_msg = '';
393
  if (val1 == 'Off')
394
- error_msg += " post_title";
395
- /* if (val2 == 'Off')
396
- error_msg += " post_content,"; */
397
  if(importer == 'custompost') {
398
  if (SelectedIndex == 'select')
399
  error_msg += " post_type,";
@@ -566,13 +566,13 @@ function importRecordsbySettings(siteurl)
566
  return false;
567
  }
568
  if(get_log == '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>'){
569
- document.getElementById('log').innerHTML = '<p style="margin-left:10px;color:red;">Your Import Is In Progress...</p>';
570
  document.getElementById('startbutton').disabled = true;
571
  }
572
  document.getElementById('ajaxloader').style.display="";
573
  var tempCount = parseInt(tmpCnt);
574
  var totalCount = parseInt(tot_no_of_records);
575
- if(tempCount >= totalCount){
576
  document.getElementById('ajaxloader').style.display="none";
577
  document.getElementById('startbutton').style.display="none";
578
  document.getElementById('importagain').style.display="";
@@ -605,11 +605,7 @@ function importRecordsbySettings(siteurl)
605
  document.getElementById('tmpcount').value = parseInt(tmpCnt)+parseInt(importlimit);
606
  setTimeout(function(){importRecordsbySettings()},0);
607
  } else {
608
- document.getElementById('log').innerHTML += "<p style='margin-left:10px;color:red;'>Import process has been terminated.</p>";
609
- document.getElementById('ajaxloader').style.display="none";
610
- document.getElementById('startbutton').style.display = "none";
611
- document.getElementById('terminatenow').style.display = "none";
612
- document.getElementById('continuebutton').style.display = "";
613
  return false;
614
  }
615
  }else{
@@ -632,34 +628,6 @@ function terminateProcess(){
632
  document.getElementById('terminateaction').value = 'terminate';
633
  }
634
 
635
- function continueprocess() {
636
- var tot_no_of_records = document.getElementById('checktotal').value;
637
- var tmpCnt = document.getElementById('tmpcount').value;
638
- var currentlimit = document.getElementById('currentlimit').value;
639
- var importlimit = document.getElementById('importlimit').value;
640
- // var get_requested_count = importlimit;
641
- var tot_no_of_records = document.getElementById('checktotal').value;
642
-
643
- if (parseInt(tmpCnt) > parseInt(tot_no_of_records)) {
644
- document.getElementById('terminatenow').style.display = "none";
645
- } else {
646
- document.getElementById('terminatenow').style.display = "";
647
- }
648
- document.getElementById('log').innerHTML += "<div style='margin-left:10px;color:green;'> Import process has been continued.</div></br>";
649
- document.getElementById('ajaxloader').style.display = "";
650
- document.getElementById('startbutton').style.display = "";
651
- document.getElementById('continuebutton').style.display = "none";
652
- //document.getElementById('dwnld_log_link').style.display = "none";
653
- document.getElementById('terminateaction').value = 'continue';
654
- // document.getElementById('currentlimit').value = currentlimit;
655
- //currentlimit = parseInt(currentlimit)+parseInt(importlimit);
656
- // console.log('impLmt: '+importlimit+'totRecds: '+tot_no_of_records);
657
- // document.getElementById('tmpcount').value = parseInt(tmpCnt)+parseInt(importlimit);
658
-
659
- setTimeout(function () {
660
- importRecordsbySettings()
661
- }, 0);
662
- }
663
 
664
  // Enable/Disable WP-e-Commerce Custom Fields
665
  function enablewpcustomfield(val){
@@ -1000,9 +968,9 @@ function showsettingsoption(id) {
1000
  for(i=1;i<=9;i++) {
1001
  if(parseInt(id) == parseInt(i)) {
1002
  if(parseInt(i) == 8) {
1003
- document.getElementById('sidebar').style.height = '1189px';
1004
- document.getElementById('contentbar').style.height = '1189px';
1005
- document.getElementById('settingsholder').style.height = '1190px';
1006
  } else if(parseInt(i) == 9) {
1007
  document.getElementById('sidebar').style.height = '665px';
1008
  document.getElementById('contentbar').style.height = '665px';
@@ -1023,10 +991,6 @@ function showsettingsoption(id) {
1023
  document.getElementById('sidebar').style.height = '965px';
1024
  document.getElementById('contentbar').style.height = '965px';
1025
  document.getElementById('settingsholder').style.height = '966px';
1026
- } else if(parseInt(i) == 6) {
1027
- document.getElementById('sidebar').style.height = '565px';
1028
- document.getElementById('contentbar').style.height = '565px';
1029
- document.getElementById('settingsholder').style.height = '566px';
1030
  } else {
1031
  document.getElementById('sidebar').style.height = 'auto';
1032
  document.getElementById('contentbar').style.height = 'auto';
@@ -1051,7 +1015,7 @@ function showsettingsoption(id) {
1051
 
1052
  //seo setting enable and disable
1053
  function seosetting(id) {
1054
- if(id == 'nonerseooption') {
1055
  jQuery('#seosetting1').removeClass("disablesetting");
1056
  jQuery('#seosetting1').addClass("enablesetting");
1057
  document.getElementById("seosetting1text").innerHTML="Enabled";
@@ -1444,21 +1408,6 @@ function dropsetting(id) {
1444
  }
1445
  }
1446
 
1447
- // Enable / Disable the debug mode
1448
- function debugmode_check (id) {
1449
- if(id == 'enabled') {
1450
- jQuery('#debugmode_enable').removeClass("disablesetting");
1451
- jQuery('#debugmode_enable').addClass("enablesetting");
1452
- jQuery('#debugmode_disable').removeClass("enablesetting");
1453
- jQuery('#debugmode_disable').addClass("disablesetting");
1454
- } else {
1455
- jQuery('#debugmode_disable').removeClass("disablesetting");
1456
- jQuery('#debugmode_disable').addClass("enablesetting");
1457
- jQuery('#debugmode_enable').removeClass("enablesetting");
1458
- jQuery('#debugmode_enable').addClass("disablesetting");
1459
- }
1460
- }
1461
-
1462
  //Ecommerce setting
1463
  function ecommercesetting(id) {
1464
  if(id == 'nonerecommerce') {
7
  document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>';
8
  }
9
 
10
+ pieStats();
11
+ lineStats();
12
 
13
 
14
  }
374
  if (array[j] == 'post_title') {
375
  val1 = 'On';
376
  }
377
+ if (array[j] == 'post_content') {
378
  val2 = 'On';
379
+ }
380
  if (post_status_msg == 'Off') {
381
  if (array[j] == 'post_status')
382
  post_status_msg = 'On';
383
  }
384
  }
385
+ if (importer != 'custompost' && val1 == 'On' && val2 == 'On' && post_status_msg == 'On') {
386
  return true;
387
  }
388
+ else if (importer == 'custompost' && val1 == 'On' && val2 == 'On' && post_status_msg == 'On' && post_type=='On') {
389
  return true;
390
  }
391
  else {
392
  error_msg = '';
393
  if (val1 == 'Off')
394
+ error_msg += " post_title,";
395
+ if (val2 == 'Off')
396
+ error_msg += " post_content,";
397
  if(importer == 'custompost') {
398
  if (SelectedIndex == 'select')
399
  error_msg += " post_type,";
566
  return false;
567
  }
568
  if(get_log == '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>'){
569
+ document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">Your Import Is In Progress...</p>';
570
  document.getElementById('startbutton').disabled = true;
571
  }
572
  document.getElementById('ajaxloader').style.display="";
573
  var tempCount = parseInt(tmpCnt);
574
  var totalCount = parseInt(tot_no_of_records);
575
+ if(tempCount>totalCount){
576
  document.getElementById('ajaxloader').style.display="none";
577
  document.getElementById('startbutton').style.display="none";
578
  document.getElementById('importagain').style.display="";
605
  document.getElementById('tmpcount').value = parseInt(tmpCnt)+parseInt(importlimit);
606
  setTimeout(function(){importRecordsbySettings()},0);
607
  } else {
608
+ document.getElementById('log').innerHTML += "Import process has been terminated.</br>";
 
 
 
 
609
  return false;
610
  }
611
  }else{
628
  document.getElementById('terminateaction').value = 'terminate';
629
  }
630
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
631
 
632
  // Enable/Disable WP-e-Commerce Custom Fields
633
  function enablewpcustomfield(val){
968
  for(i=1;i<=9;i++) {
969
  if(parseInt(id) == parseInt(i)) {
970
  if(parseInt(i) == 8) {
971
+ document.getElementById('sidebar').style.height = '1149px';
972
+ document.getElementById('contentbar').style.height = '1149px';
973
+ document.getElementById('settingsholder').style.height = '1150px';
974
  } else if(parseInt(i) == 9) {
975
  document.getElementById('sidebar').style.height = '665px';
976
  document.getElementById('contentbar').style.height = '665px';
991
  document.getElementById('sidebar').style.height = '965px';
992
  document.getElementById('contentbar').style.height = '965px';
993
  document.getElementById('settingsholder').style.height = '966px';
 
 
 
 
994
  } else {
995
  document.getElementById('sidebar').style.height = 'auto';
996
  document.getElementById('contentbar').style.height = 'auto';
1015
 
1016
  //seo setting enable and disable
1017
  function seosetting(id) {
1018
+ if(id == 'none') {
1019
  jQuery('#seosetting1').removeClass("disablesetting");
1020
  jQuery('#seosetting1').addClass("enablesetting");
1021
  document.getElementById("seosetting1text").innerHTML="Enabled";
1408
  }
1409
  }
1410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1411
  //Ecommerce setting
1412
  function ecommercesetting(id) {
1413
  if(id == 'nonerecommerce') {
modules/comments/templates/index.php CHANGED
@@ -44,14 +44,8 @@
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
- <?php if(is_dir($impCE->getUploadDirectory('default'))){
48
- if (!is_writable($impCE->getUploadDirectory('default'))) {
49
- if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
50
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
51
- }
52
- } else { ?>
53
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
54
- <?php }?>
55
  <?php } else { ?>
56
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
57
  <?php } ?>
@@ -81,7 +75,6 @@
81
  <select disabled>
82
  <option value ='select template' /> select template </option>
83
  </select>
84
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
85
  </div>
86
 
87
  </div>
@@ -423,7 +416,6 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
423
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
424
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
425
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
426
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
427
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
428
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
429
  <div class="clear"></div>
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
+ <?php if(is_dir($impCE->getUploadDirectory('default'))){ ?>
48
+ <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
 
 
 
 
 
 
49
  <?php } else { ?>
50
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
51
  <?php } ?>
75
  <select disabled>
76
  <option value ='select template' /> select template </option>
77
  </select>
 
78
  </div>
79
 
80
  </div>
416
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
417
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
418
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
 
419
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
420
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
421
  <div class="clear"></div>
modules/custompost/templates/index.php CHANGED
@@ -44,14 +44,8 @@ $impCE = new WPImporter_includes_helper();
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
- <?php if(is_dir($impCE->getUploadDirectory('default'))){
48
- if (!is_writable($impCE->getUploadDirectory('default'))) {
49
- if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
50
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
51
- }
52
- } else { ?>
53
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
54
- <?php }?>
55
  <?php } else { ?>
56
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
57
  <?php } ?>
@@ -78,7 +72,6 @@ $impCE = new WPImporter_includes_helper();
78
  <select disabled>
79
  <option value ='select template' > select template </option>
80
  </select>
81
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
82
  </div>
83
 
84
  </div>
@@ -554,7 +547,6 @@ $impCE = new WPImporter_includes_helper();
554
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
555
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
556
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
557
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
558
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
559
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
560
  <div class="clear"></div>
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
+ <?php if(is_dir($impCE->getUploadDirectory('default'))){ ?>
48
+ <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
 
 
 
 
 
 
49
  <?php } else { ?>
50
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
51
  <?php } ?>
72
  <select disabled>
73
  <option value ='select template' > select template </option>
74
  </select>
 
75
  </div>
76
 
77
  </div>
547
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
548
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
549
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
 
550
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
551
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
552
  <div class="clear"></div>
modules/dashboard/templates/index.php CHANGED
@@ -79,8 +79,8 @@ if(isset($_REQUEST['msg']) && $_REQUEST['msg'] == 'filenotfound'){
79
  <?php if(isset($_REQUEST['errormsg'])){
80
  ?>
81
  <script type="text/javascript">
82
- showMapMessages('error' , "<?php echo $_REQUEST['errormsg']; ?>");
83
  </script>
84
- <?php
85
  }
86
  ?>
79
  <?php if(isset($_REQUEST['errormsg'])){
80
  ?>
81
  <script type="text/javascript">
82
+ showMapMessages('error' , "<?php echo $_REQUEST['errormsg']; ?>")
83
  </script>
84
+ <?
85
  }
86
  ?>
modules/eshop/actions/actions.php CHANGED
@@ -707,7 +707,7 @@ class EshopActions extends SkinnyActions {
707
  $skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
708
  }
709
  }
710
- $this->detailedLog[$currentLimit]['verify_here'] = "<b>Verify Here -</b> <a href='" . get_permalink( $post_id ) . "' title='" . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $data_array['post_title'] ) ) . "' rel='permalink' target='_blank'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "' target='_blank'>" . __( 'Admin View' ) . "</a>";
711
 
712
  unset($data_array);
713
  }
707
  $skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
708
  }
709
  }
710
+ $this->detailedLog[$currentLimit]['verify_here'] = "<b>Verify Here -</b> <a href='" . get_permalink( $post_id ) . "' title='" . esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $data_array['post_title'] ) ) . "' rel='permalink'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "'>" . __( 'Admin View' ) . "</a>";
711
 
712
  unset($data_array);
713
  }
modules/eshop/templates/index.php CHANGED
@@ -46,23 +46,17 @@ $eshopObj->isplugin();
46
  <td>
47
  <h3>CSV Import Options</h3>
48
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
49
- <?php if(is_dir($impCE->getUploadDirectory('default'))){
50
- if (!is_writable($impCE->getUploadDirectory('default'))) {
51
- if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
52
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
53
- }
54
- } else { ?>
55
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
56
- <?php }?>
57
  <?php } else { ?>
58
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
59
  <?php } ?>
60
  <div class="warning" id="warning" name="warning" style="display:none;margin: 4% 0 4% 22%;"></div>
61
- <div align=center>
62
- <div id="noPlugin" class="warnings" style="display:none"></div>
63
- </div>
64
  <form action='<?php echo admin_url().'admin.php?page='.WP_CONST_ULTIMATE_CSV_IMP_SLUG.'/index.php&__module='.$_REQUEST['__module'].'&step=mapping_settings'?>' id='browsefile' method='post' name='browsefile' enctype="multipart/form-data">
65
  <div class="importfile" align='center'>
 
 
 
66
  <?php
67
  if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] == 'not_avail') {
68
  ?>
@@ -115,7 +109,6 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
115
  <select disabled/>
116
  <option value ='select template' > select template </option>
117
  </select>
118
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
119
  </div>
120
  <!-- code ends here -->
121
  </div>
@@ -539,7 +532,6 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
539
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
540
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
541
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
542
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
543
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
544
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
545
 
46
  <td>
47
  <h3>CSV Import Options</h3>
48
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
49
+ <?php if(is_dir($impCE->getUploadDirectory('default'))){ ?>
50
+ <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
 
 
 
 
 
 
51
  <?php } else { ?>
52
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
53
  <?php } ?>
54
  <div class="warning" id="warning" name="warning" style="display:none;margin: 4% 0 4% 22%;"></div>
 
 
 
55
  <form action='<?php echo admin_url().'admin.php?page='.WP_CONST_ULTIMATE_CSV_IMP_SLUG.'/index.php&__module='.$_REQUEST['__module'].'&step=mapping_settings'?>' id='browsefile' method='post' name='browsefile' enctype="multipart/form-data">
56
  <div class="importfile" align='center'>
57
+ <div align=center>
58
+ <div id="noPlugin" class="warnings" style="display:none"></div>
59
+ </div>
60
  <?php
61
  if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] == 'not_avail') {
62
  ?>
109
  <select disabled/>
110
  <option value ='select template' > select template </option>
111
  </select>
 
112
  </div>
113
  <!-- code ends here -->
114
  </div>
532
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
533
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
534
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
 
535
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
536
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
537
 
modules/export/actions/actions.php CHANGED
@@ -27,9 +27,9 @@ class ExportActions extends SkinnyActions {
27
  $helper->generateanddownloadcsv($type, $filename);
28
  }
29
  }
30
- $nonce = '';
31
- $nonce = wp_create_nonce('my-nonce');
32
- $data['wp_nonce'] = $nonce;
33
  return $data;
34
  }
35
 
27
  $helper->generateanddownloadcsv($type, $filename);
28
  }
29
  }
30
+ $nonce = '';
31
+ $nonce = wp_create_nonce('my-nonce');
32
+ $data['wp_nonce'] = $nonce;
33
  return $data;
34
  }
35
 
modules/export/templates/export.php CHANGED
@@ -6,21 +6,15 @@
6
  * You can contact Smackcoders at email address info@smackcoders.com.
7
  *******************************************************************************************/
8
 
9
- if(!isset($_SERVER['HTTP_REFERER'])) {
10
- die('Your requested url were wrong! Please contact your admin.');
11
- }
12
  require_once('../../../../../../wp-load.php');
13
-
14
  $nonce = $_POST['nonce'];
15
- //echo '<pre>'; print_r($sitedomain); echo '</pre>';
16
  if ( ! wp_verify_nonce( $nonce, 'my-nonce' ) ) {
17
- // This nonce is not valid.
18
- die( 'Security check: Your requested URL is wrong! Please, Contact your administrator.' );
19
  } else {
20
- // The nonce was valid.
21
- // Do stuff here.
22
- }
23
 
 
24
  $ExportObj = new WPCSVProExportData();
25
  #print('<pre>'); print_r($_POST); //die;
26
  $ExportObj->executeIndex($_POST);
6
  * You can contact Smackcoders at email address info@smackcoders.com.
7
  *******************************************************************************************/
8
 
 
 
 
9
  require_once('../../../../../../wp-load.php');
 
10
  $nonce = $_POST['nonce'];
11
+
12
  if ( ! wp_verify_nonce( $nonce, 'my-nonce' ) ) {
13
+
14
+ die( 'Security check: Your requested URL is wrong! Please, Contact your administrator.' );
15
  } else {
 
 
 
16
 
17
+ }
18
  $ExportObj = new WPCSVProExportData();
19
  #print('<pre>'); print_r($_POST); //die;
20
  $ExportObj->executeIndex($_POST);
modules/page/templates/index.php CHANGED
@@ -44,14 +44,8 @@ $impCE = new WPImporter_includes_helper();
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
- <?php if(is_dir($impCE->getUploadDirectory('default'))){
48
- if (!is_writable($impCE->getUploadDirectory('default'))) {
49
- if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
50
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
51
- }
52
- } else { ?>
53
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
54
- <?php }?>
55
  <?php } else { ?>
56
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
57
  <?php } ?>
@@ -78,7 +72,6 @@ $impCE = new WPImporter_includes_helper();
78
  <select disabled>
79
  <option value ='select template' /> select template </option>
80
  </select>
81
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
82
  </div>
83
  </div>
84
  <div style="float:right;">
@@ -491,7 +484,6 @@ $impCE = new WPImporter_includes_helper();
491
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
492
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
493
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();">
494
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
495
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
496
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
497
  <div class="clear"></div>
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
+ <?php if(is_dir($impCE->getUploadDirectory('default'))){ ?>
48
+ <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
 
 
 
 
 
 
49
  <?php } else { ?>
50
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
51
  <?php } ?>
72
  <select disabled>
73
  <option value ='select template' /> select template </option>
74
  </select>
 
75
  </div>
76
  </div>
77
  <div style="float:right;">
484
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
485
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
486
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();">
 
487
  <!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
488
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
489
  <div class="clear"></div>
modules/post/templates/index.php CHANGED
@@ -44,14 +44,8 @@ $impCE = new WPImporter_includes_helper();
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
- <?php if(is_dir($impCE->getUploadDirectory('default'))) {
48
- if (!is_writable($impCE->getUploadDirectory('default'))) {
49
- if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
50
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
51
- }
52
- } else { ?>
53
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
54
- <?php }?>
55
  <?php } else { ?>
56
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
57
  <?php } ?>
@@ -77,9 +71,8 @@ $impCE = new WPImporter_includes_helper();
77
  <tr>
78
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
79
  <select disabled/>
80
- <option value ='select template' > select template </option>
81
  </select>
82
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
83
  </div>
84
  <!-- code ends here -->
85
  </div>
@@ -501,7 +494,6 @@ $impCE = new WPImporter_includes_helper();
501
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
502
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
503
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
504
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
505
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
506
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
507
 
44
  <td>
45
  <h3>CSV Import Options</h3>
46
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
47
+ <?php if(is_dir($impCE->getUploadDirectory('default'))){ ?>
48
+ <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
 
 
 
 
 
 
49
  <?php } else { ?>
50
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
51
  <?php } ?>
71
  <tr>
72
  <div id='showmappingtemplate' style='float:left;padding-left:10px;'>
73
  <select disabled/>
74
+ <option value ='select template' > select template </option>
75
  </select>
 
76
  </div>
77
  <!-- code ends here -->
78
  </div>
494
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
495
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
496
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
 
497
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
498
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
499
 
modules/settings/actions/actions.php CHANGED
@@ -57,7 +57,7 @@ class SettingsActions extends SkinnyActions
57
  update_option('wpcsvfreesettings',$_POST);
58
  $data['savesettings'] = 'done';
59
  }
60
- $setingsArr = array('post', 'page', 'custompost', 'comments', 'categories', 'customtaxonomy', 'users', 'eshop', 'wpcommerce', 'woocommerce', 'custompostuitype', 'cctm', 'acf', 'aioseo', 'yoastseo', 'enable', 'disable', 'nonerseooption', 'nonercustompost', 'nonerecommerce', 'recommerce','enable_plugin_access_for_author', 'send_log_email', 'enable_debug', 'disable_debug', 'debug_mode');
61
  foreach($setingsArr as $option)
62
  $data[$option] = "";
63
 
@@ -66,6 +66,7 @@ class SettingsActions extends SkinnyActions
66
  foreach($settings as $settings_key)
67
  $data[$settings_key] = 'checked';
68
 
 
69
  //Settings action
70
  //SEO option
71
  $tableseo = get_option('wpcsvfreesettings');
@@ -227,19 +228,9 @@ class SettingsActions extends SkinnyActions
227
  $data['customerreviews'] = 'disablesetting';
228
  }
229
 
230
- // Debug mode enable / disable
231
- if(isset($tableseo['debug_mode'])) {
232
- $debug_mode = $tableseo['debug_mode'];
233
- } else {
234
- $debug_mode = '';
235
- }
236
- if($debug_mode == 'enable_debug') {
237
- $data['debugmode_enable'] = 'checked enablesetting';
238
- $data['debugmode_disable'] = 'disablesetting';
239
- } else if($debug_mode == 'disable_debug') {
240
- $data['debugmode_enable'] = 'disablesetting';
241
- $data['debugmode_disable'] = 'checked enablesetting';
242
- }
243
 
244
  //Custom Fields
245
  #$wpmemberoption = $tableseo['rwpmembers'];
57
  update_option('wpcsvfreesettings',$_POST);
58
  $data['savesettings'] = 'done';
59
  }
60
+ $setingsArr = array('post', 'page', 'custompost', 'comments', 'categories', 'customtaxonomy', 'users', 'eshop', 'wpcommerce', 'woocommerce', 'custompostuitype', 'cctm', 'acf', 'aioseo', 'yoastseo', 'enable', 'disable', 'nonerseooption', 'nonercustompost', 'nonerecommerce', 'recommerce','enable_plugin_access_for_author');
61
  foreach($setingsArr as $option)
62
  $data[$option] = "";
63
 
66
  foreach($settings as $settings_key)
67
  $data[$settings_key] = 'checked';
68
 
69
+
70
  //Settings action
71
  //SEO option
72
  $tableseo = get_option('wpcsvfreesettings');
228
  $data['customerreviews'] = 'disablesetting';
229
  }
230
 
231
+
232
+
233
+
 
 
 
 
 
 
 
 
 
 
234
 
235
  //Custom Fields
236
  #$wpmemberoption = $tableseo['rwpmembers'];
modules/settings/templates/index.php CHANGED
@@ -348,12 +348,12 @@ global $wpdb; ?>
348
  <tr><td>
349
  <h3 id="innertitle">None</h3>
350
  <label>SEO Meta import is disabled.</label> </td><td>
351
- <label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php #echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="seosetting(this.id);" style="display:none"><span id="seosetting1text"> <?php echo $skinnyData['none_status']; ?> </span> </label>
352
  </td></tr>
353
  <tr><td>
354
  <h3 id="innertitle">All-in-one SEO </h3>
355
  <label>Enable All-in-one SEO import.</label> </td><td>
356
- <label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> onclick="seosetting(this.id);" style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
357
  <div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
358
  </td></tr>
359
  <tr><td>
@@ -390,12 +390,6 @@ global $wpdb; ?>
390
  </select>
391
  </label>
392
  </td></tr>
393
- <tr class="databorder"><td>
394
- <h3 id="innertitle">Debug Mode</h3>
395
- <label>You can enable/disable the debug mode.</label> </td><td>
396
- <label id="debugmode_enable" class="<?php echo $skinnyData['debugmode_enable']; ?>"><input type='radio' name='debug_mode' value='enable_debug' <?php echo $skinnyData['debugmode_enable']; ?> id="enabled" style="display:none" onclick="debugmode_check(this.id);" > On </label>
397
- <label id="debugmode_disable" class="<?php echo $skinnyData['debugmode_disable']; ?>"><input type='radio' name='debug_mode' value='disable_debug' <?php echo $skinnyData['debugmode_disable']; ?> id="disabled" style="display:none" onclick="debugmode_check(this.id);" > Off </label>
398
- </td></tr>
399
  <tr class="databorder"><td>
400
  <h3 id="innertitle">Scheduled log mails</h3>
401
  <label>Enable to get scheduled log mails.</label> </td><td>
@@ -423,7 +417,7 @@ global $wpdb; ?>
423
  <!--div-7-->
424
  <div id="section7" class="databaseoptimization" style="display:none;">
425
  <div class="title">
426
- <h3>Database Optimization <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/pro_icon.gif" title='PRO Feature' /></h3>
427
  <span style="float:right;margin-right:168px;margin-top:-35px;">
428
  <a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> Check All </a>
429
  </span>
@@ -482,8 +476,8 @@ global $wpdb; ?>
482
  <div id="data" class="databorder security-perfoemance" >
483
  <table class="securityfeatures">
484
  <tr><td>
485
- <h3 id="innertitle">Allow authors/editors to import</h3>
486
- <label><div>It helps authors/editors can import using importer.</div>
487
  <div>It does not support users.</div></label></td><td>
488
 
489
  <!--<label><input type='checkbox' name='enable_plugin_access_for_author' value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> /> Allow authors to import </label>-->
@@ -517,9 +511,7 @@ global $wpdb; ?>
517
  </table>
518
  <h3 id="innertitle" colspan="2" >Required Loaders and Extentions:</h3>
519
  <table class="table table-striped">
520
- <?php $loaders_extensions = get_loaded_extensions();
521
- $mod_security = apache_get_modules();
522
- ?>
523
  <tr><td>IonCube Loader </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
524
  echo '<label style="color:green;">Yes</label>';
525
  } else {
@@ -535,25 +527,6 @@ global $wpdb; ?>
535
  } else {
536
  echo '<label style="color:red;">No</label>';
537
  } ?></td><td></td></tr>
538
- <tr><td>Mod Security </td><td><?php if(in_array('mod_security.c', $mod_security)) {
539
- echo '<label style="color:green;">Yes</label>';
540
- } else {
541
- echo '<label style="color:red;">No</label>';
542
- } ?></td><td>
543
- <div style='float:left'>
544
- <a href="#" class="tooltip">
545
- <img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/help.png" style="margin-left:-74px;"/>
546
- <span style="margin-left:20px;margin-top:-10px;width:150px;">
547
- <img class="callout" src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/callout.gif"/>
548
- <strong>htaccess settings:</strong>
549
- <p>Locate the .htaccess file in Apache web root,if not create a new file named .htaccess and add the following:</p>
550
- <b><?php echo '<IfModule mod_security.c>';?> SecFilterEngine Off SecFilterScanPOST Off <?php echo ' </IfModule>';?></b>
551
-
552
- </span>
553
- </a>
554
- </div>
555
- </td></tr>
556
-
557
  </table>
558
  <h3 id="innertitle" colspan="2" >Debug Information:</h3>
559
  <table class="table table-striped">
348
  <tr><td>
349
  <h3 id="innertitle">None</h3>
350
  <label>SEO Meta import is disabled.</label> </td><td>
351
+ <label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="check_if_avail(this.id);" style="display:none"><span id="seosetting1text"> <?php echo $skinnyData['none_status']; ?> </span> </label>
352
  </td></tr>
353
  <tr><td>
354
  <h3 id="innertitle">All-in-one SEO </h3>
355
  <label>Enable All-in-one SEO import.</label> </td><td>
356
+ <label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
357
  <div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
358
  </td></tr>
359
  <tr><td>
390
  </select>
391
  </label>
392
  </td></tr>
 
 
 
 
 
 
393
  <tr class="databorder"><td>
394
  <h3 id="innertitle">Scheduled log mails</h3>
395
  <label>Enable to get scheduled log mails.</label> </td><td>
417
  <!--div-7-->
418
  <div id="section7" class="databaseoptimization" style="display:none;">
419
  <div class="title">
420
+ <h3>Database Optimization </h3>
421
  <span style="float:right;margin-right:168px;margin-top:-35px;">
422
  <a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> Check All </a>
423
  </span>
476
  <div id="data" class="databorder security-perfoemance" >
477
  <table class="securityfeatures">
478
  <tr><td>
479
+ <h3 id="innertitle">Allow authors to import</h3>
480
+ <label><div>This enables authors to import.</div>
481
  <div>It does not support users.</div></label></td><td>
482
 
483
  <!--<label><input type='checkbox' name='enable_plugin_access_for_author' value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> /> Allow authors to import </label>-->
511
  </table>
512
  <h3 id="innertitle" colspan="2" >Required Loaders and Extentions:</h3>
513
  <table class="table table-striped">
514
+ <?php $loaders_extensions = get_loaded_extensions();?>
 
 
515
  <tr><td>IonCube Loader </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
516
  echo '<label style="color:green;">Yes</label>';
517
  } else {
527
  } else {
528
  echo '<label style="color:red;">No</label>';
529
  } ?></td><td></td></tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  </table>
531
  <h3 id="innertitle" colspan="2" >Debug Information:</h3>
532
  <table class="table table-striped">
modules/users/actions/actions.php CHANGED
@@ -174,14 +174,12 @@ class UsersActions extends SkinnyActions {
174
  if(!empty($getUserId)){
175
  $user_id = $getUserId[0]->ID;
176
  }
177
- if(is_array($getUserId) && !empty($getUserId)){
178
  $this->dupPostCount = $this->dupPostCount+1;
179
  $this->detailedLog[$currentLimit][] = "<b>Username</b> - " . $UserLogin . " - already exists(skipped), <b>E-mail</b> - " . $UserEmail . " - found as duplicate.";
180
  }
181
  else{
182
  $user_id = wp_insert_user( $data_array );
183
- if(is_wp_error($user_id))
184
- return false;
185
  $user = new WP_User( $user_id );
186
  if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
187
  foreach ( $user->roles as $role )
174
  if(!empty($getUserId)){
175
  $user_id = $getUserId[0]->ID;
176
  }
177
+ if($user_id){
178
  $this->dupPostCount = $this->dupPostCount+1;
179
  $this->detailedLog[$currentLimit][] = "<b>Username</b> - " . $UserLogin . " - already exists(skipped), <b>E-mail</b> - " . $UserEmail . " - found as duplicate.";
180
  }
181
  else{
182
  $user_id = wp_insert_user( $data_array );
 
 
183
  $user = new WP_User( $user_id );
184
  if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
185
  foreach ( $user->roles as $role )
modules/users/templates/index.php CHANGED
@@ -48,14 +48,8 @@ $impCE = new WPImporter_includes_helper();
48
  <td>
49
  <h3>CSV Import Options</h3>
50
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
51
- <?php if(is_dir($impCE->getUploadDirectory('default'))){
52
- if (!is_writable($impCE->getUploadDirectory('default'))) {
53
- if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
54
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
55
- }
56
- } else { ?>
57
- <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
58
- <?php }?>
59
  <?php } else { ?>
60
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
61
  <?php } ?>
@@ -82,7 +76,6 @@ $impCE = new WPImporter_includes_helper();
82
  <select disabled/>
83
  <option value ='select template' /> select template </option>
84
  </select>
85
- <img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
86
  </div>
87
 
88
  </div>
@@ -420,7 +413,6 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
420
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
421
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
422
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none;" onclick="import_again();" />
423
- <input id="continuebutton" class="btn btn-lg btn-success" type="button" value="Continue" style="display:none;color: #ffffff;" onclick="continueprocess();">
424
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
425
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
426
  <div class="clear"></div>
48
  <td>
49
  <h3>CSV Import Options</h3>
50
  <div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
51
+ <?php if(is_dir($impCE->getUploadDirectory('default'))){ ?>
52
+ <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
 
 
 
 
 
 
53
  <?php } else { ?>
54
  <input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
55
  <?php } ?>
76
  <select disabled/>
77
  <option value ='select template' /> select template </option>
78
  </select>
 
79
  </div>
80
 
81
  </div>
413
  <input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
414
  <input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
415
  <input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none;" onclick="import_again();" />
 
416
  <!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
417
  <div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
418
  <div class="clear"></div>
templates/import.php CHANGED
@@ -34,8 +34,7 @@
34
  * Notices must display the words
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
- if(!defined('ABSPATH'))
38
- die('Your requested url were wrong! Please contact your admin.');
39
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/base/SkinnyBaseActions.php');
40
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/SkinnyActions.php');
41
  $skinnyObj = new CallWPImporterObj();
@@ -221,7 +220,7 @@ if ($totRecords <= ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['insPostCount'] +
221
  unset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['captureId']);
222
  }
223
  if ($limit == $totRecords) {
224
- echo "<br><div style='margin-left:10px; color:green;'>Import successfully completed!.</div>";
225
  }
226
  /*if ($curr_action == 'users') {
227
  echo "<div style='margin-left:7px;'>";
34
  * Notices must display the words
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
+
 
38
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/base/SkinnyBaseActions.php');
39
  require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/SkinnyActions.php');
40
  $skinnyObj = new CallWPImporterObj();
220
  unset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['captureId']);
221
  }
222
  if ($limit == $totRecords) {
223
+ echo "<br><div style='margin-left:3px;'>Import successfully completed!.</div>";
224
  }
225
  /*if ($curr_action == 'users') {
226
  echo "<div style='margin-left:7px;'>";
templates/layout.php CHANGED
@@ -46,18 +46,7 @@
46
  }
47
  else if(isset($_REQUEST['__module']))
48
  {
49
- # print_r($skinny_content);
50
- if (isset($_REQUEST['__module'])) {
51
- if ( current_user_can( 'administrator' ) ) { //uthor' ) && current_user_can( 'editor' ) ) {
52
- print_r($skinny_content);
53
- } else {
54
- if($_REQUEST['__module'] == 'users' || $_REQUEST['__module'] == 'settings') {
55
- die('<p id="warning-msg" class="alert alert-warning" style="margin-top:50px;">You are not having the permission to access this page. Please, Contact your administrator.</p>');
56
- } else {
57
- print_r($skinny_content);
58
- }
59
- }
60
- }
61
  }
62
  else
63
  {
46
  }
47
  else if(isset($_REQUEST['__module']))
48
  {
49
+ print_r($skinny_content);
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
  else
52
  {
templates/menu.php CHANGED
@@ -5,8 +5,7 @@
5
  * Proprietary and confidential
6
  * You can contact Smackcoders at email address info@smackcoders.com.
7
  *******************************************************************************************/
8
- if(!defined('ABSPATH'))
9
- die('Your requested url were wrong! Please contact your admin.');
10
  $post = $page = $custompost = $categories = $users = $customtaxonomy = $comments = $eshop = $wpcommerce = $woocommerce = $settings = $support = $dashboard = $export = $mappingtemplate = $filemanager = $schedulemapping = $marketpress = $customerreviews = '';
11
  $impCEM = CallWPImporterObj::getInstance();
12
  $get_settings = array();
5
  * Proprietary and confidential
6
  * You can contact Smackcoders at email address info@smackcoders.com.
7
  *******************************************************************************************/
8
+
 
9
  $post = $page = $custompost = $categories = $users = $customtaxonomy = $comments = $eshop = $wpcommerce = $woocommerce = $settings = $support = $dashboard = $export = $mappingtemplate = $filemanager = $schedulemapping = $marketpress = $customerreviews = '';
10
  $impCEM = CallWPImporterObj::getInstance();
11
  $get_settings = array();
templates/savetemplate.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*********************************************************************************
3
+ * WP Ultimate CSV Importer is a Tool for importing CSV for the Wordpress
4
+ * plugin developed by Smackcoder. Copyright (C) 2014 Smackcoders.
5
+ *
6
+ * WP Ultimate CSV Importer is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Affero General Public License version 3
8
+ * as published by the Free Software Foundation with the addition of the
9
+ * following permission added to Section 15 as permitted in Section 7(a): FOR
10
+ * ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY WP Ultimate
11
+ * CSV Importer, WP Ultimate CSV Importer DISCLAIMS THE WARRANTY OF NON
12
+ * INFRINGEMENT OF THIRD PARTY RIGHTS.
13
+ *
14
+ * WP Ultimate CSV Importer is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
17
+ * License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public License
20
+ * along with this program; if not, see http://www.gnu.org/licenses or write
21
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22
+ * Boston, MA 02110-1301 USA.
23
+ *
24
+ * You can contact Smackcoders at email address info@smackcoders.com.
25
+ *
26
+ * The interactive user interfaces in original and modified versions
27
+ * of this program must display Appropriate Legal Notices, as required under
28
+ * Section 5 of the GNU Affero General Public License version 3.
29
+ *
30
+ * In accordance with Section 7(b) of the GNU Affero General Public License
31
+ * version 3, these Appropriate Legal Notices must retain the display of the
32
+ * WP Ultimate CSV Importer copyright notice. If the display of the logo is
33
+ * not reasonably feasible for technical reasons, the Appropriate Legal
34
+ * Notices must display the words
35
+ * "Copyright Smackcoders. 2014. All rights reserved".
36
+ ********************************************************************************/
37
+
38
+ require_once('../config/settings.php');
39
+ require_once('../lib/skinnymvc/controller/SkinnyController.php');
40
+ require_once('../../../../wp-load.php');
41
+ if($_REQUEST['stepstatus']){
42
+ foreach($_REQUEST as $reqKey => $reqVal){
43
+ if($reqKey == 'h2'){
44
+ $getArr = explode(',',$reqVal);
45
+ foreach($getArr as $v){
46
+ $mapArr[] = $v;
47
+ }
48
+ $_SESSION['SMACK_IMP_OPTIONS']['mapArr'] = $mapArr;
49
+ }elseif($reqKey != 'h2'){
50
+ $_SESSION['SMACK_IMP_OPTIONS'][$reqKey] = $reqVal;
51
+ }
52
+ }
53
+ print_r(json_encode($_REQUEST));
54
+ }
55
+ die;
templates/versioncheck.php CHANGED
@@ -34,8 +34,7 @@
34
  * Notices must display the words
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
- if(!defined('ABSPATH'))
38
- die('Your requested url were wrong! Please contact your admin.');
39
  global $wpdb;
40
  $all_arr = array();
41
  $all_arr = $_REQUEST['postdata'];
34
  * Notices must display the words
35
  * "Copyright Smackcoders. 2014. All rights reserved".
36
  ********************************************************************************/
37
+
 
38
  global $wpdb;
39
  $all_arr = array();
40
  $all_arr = $_REQUEST['postdata'];