Version Description
Download this release
Release Info
Developer | smackcoders |
Plugin | Ultimate CSV Importer |
Version | 3.6.72 |
Comparing to | |
See all releases |
Code changes from version 3.6.75 to 3.6.72
- Readme.txt +13 -44
- css/main.css +1 -1
- css/style.css +1 -3
- includes/WPImporter_includes_helper.php +1 -1
- index.php +18 -26
- js/ultimate-importer-free.js +13 -45
- modules/comments/templates/index.php +2 -9
- modules/custompost/templates/index.php +2 -9
- modules/eshop/actions/actions.php +1 -1
- modules/eshop/templates/index.php +5 -12
- modules/export/actions/actions.php +3 -3
- modules/export/templates/export.php +4 -10
- modules/page/templates/index.php +2 -9
- modules/post/templates/index.php +2 -9
- modules/settings/templates/index.php +1 -22
- modules/users/actions/actions.php +1 -3
- modules/users/templates/index.php +2 -9
- templates/import.php +2 -3
- templates/menu.php +1 -2
- templates/savetemplate.php +55 -0
- templates/versioncheck.php +1 -2
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.
|
7 |
-
Stable tag: 3.6.
|
8 |
-
Version: 3.6.
|
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 |
-
|
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
|
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
|
@@ -113,10 +110,9 @@ This will solve your issue or get support from hosting if you dint have sufficie
|
|
113 |
* wp ecommerce Products CSV Importer with WP e-Commerce Custom Fields
|
114 |
* Categories & tags Import with Category icons plugin support
|
115 |
* Custom Taxonomy import
|
116 |
-
* [Get Complete List of supported 3rd party plugins here](http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html)
|
117 |
-
|
118 |
|
119 |
-
[
|
|
|
120 |
|
121 |
= Imp. Notes =
|
122 |
* All CSV files should be should be strictly UTF-8 CSV format. Now this can be handled by plugin.
|
@@ -140,12 +136,12 @@ Need More Help, Cool. Browse Below Links
|
|
140 |
* [Wiki and Documentation](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer)
|
141 |
* [Tutorials, Guides, Blog News and Updates](http://blog.smackcoders.com/category/free-wordpress-plugins/wordpress-ultimate-csv-importer-plugin/)
|
142 |
* [Video Walkthrough](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Videos)
|
143 |
-
* [Get the Sample CSV Files Here](
|
144 |
-
* [Download CSV Format Cheat Sheets Here](
|
145 |
|
146 |
== Installation ==
|
147 |
|
148 |
-
* [Step By Step Installation Wiki with Snaps](http://wiki.smackcoders.com/
|
149 |
|
150 |
|
151 |
== Screenshots ==
|
@@ -180,24 +176,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.
|
@@ -399,15 +377,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 |
|
1 |
=== WP Ultimate CSV Importer Plugin ===
|
2 |
Contributors: smackcoders
|
3 |
+
Donate link: http://www.smackcoders.com/store/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.72
|
8 |
+
Version: 3.6.72
|
9 |
Author: smackcoders
|
10 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
11 |
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
+
** Now version 3.6.7 (3.6.72 Debug enable/disable options in settings) 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
|
110 |
* wp ecommerce Products CSV Importer with WP e-Commerce Custom Fields
|
111 |
* Categories & tags Import with Category icons plugin support
|
112 |
* Custom Taxonomy import
|
|
|
|
|
113 |
|
114 |
+
[Get Complete List of supported 3rd party plugins here](https://www.smackcoders.com/store/wp-ultimate-csv-importer-pro.html) or
|
115 |
+
[Test Drive Our Live Demo](http://demo.smackcoders.com/demowpthree/wp-admin/admin.php?page=wp-ultimate-csv-importer-pro/index.php&__module=dashboard)
|
116 |
|
117 |
= Imp. Notes =
|
118 |
* All CSV files should be should be strictly UTF-8 CSV format. Now this can be handled by plugin.
|
136 |
* [Wiki and Documentation](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer)
|
137 |
* [Tutorials, Guides, Blog News and Updates](http://blog.smackcoders.com/category/free-wordpress-plugins/wordpress-ultimate-csv-importer-plugin/)
|
138 |
* [Video Walkthrough](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Videos)
|
139 |
+
* [Get the Sample CSV Files Here](https://www.smackcoders.com/blog/wordpress-ultimate-csv-importer-csv-sample-files-and-updates.html)
|
140 |
+
* [Download CSV Format Cheat Sheets Here](https://www.smackcoders.com/blog/csv-import-cheat-sheets-2014.html)
|
141 |
|
142 |
== Installation ==
|
143 |
|
144 |
+
* [Step By Step Installation Wiki with Snaps](http://wiki.smackcoders.com/WP_Ultimate_CSV_Importer_Free_Installation_and_Configuration)
|
145 |
|
146 |
|
147 |
== Screenshots ==
|
176 |
|
177 |
== Changelog ==
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
= 3.6.72 =
|
180 |
* Added: Debug mode enable/disable options.
|
181 |
* Modified: Menu order changes.
|
377 |
|
378 |
== Upgrade Notice ==
|
379 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
= 3.6.72 =
|
381 |
* Upgrade to enable/disable debug mode in settings.
|
382 |
|
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 |
-
|
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
@@ -652,6 +652,4 @@ margin-top: 10px;
|
|
652 |
height:315px !important;
|
653 |
}
|
654 |
/*End off summary*/
|
655 |
-
|
656 |
-
margin: 5% 12%;
|
657 |
-
}
|
652 |
height:315px !important;
|
653 |
}
|
654 |
/*End off summary*/
|
655 |
+
|
|
|
|
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 “%s”' ), $data_array['post_title'] ) ) . "' rel='permalink'
|
822 |
|
823 |
unset($data_array);
|
824 |
}
|
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 “%s”' ), $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 |
}
|
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.
|
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
|
@@ -50,32 +50,13 @@ if(isset($get_debug_mode['debug_mode']) && $get_debug_mode['debug_mode'] != 'ena
|
|
50 |
ini_set('display_errors', 'Off');
|
51 |
}
|
52 |
|
53 |
-
|
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.
|
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 +65,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 |
|
@@ -237,12 +217,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.72
|
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
|
50 |
ini_set('display_errors', 'Off');
|
51 |
}
|
52 |
|
53 |
+
ob_start();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html');
|
56 |
define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
|
57 |
define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
|
58 |
define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
|
59 |
+
define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.72');
|
60 |
define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
|
61 |
define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
|
62 |
define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
|
65 |
require_once('lib/skinnymvc/controller/SkinnyController.php');
|
66 |
}
|
67 |
|
|
|
68 |
require_once('plugins/class.inlineimages.php');
|
69 |
require_once('includes/WPImporter_includes_helper.php');
|
70 |
|
217 |
|
218 |
add_action('wp_dashboard_setup', 'wpcsvimporter_add_dashboard_widgets');
|
219 |
|
220 |
+
|
|
|
|
|
221 |
function importByRequest() {
|
222 |
require_once("templates/import.php");
|
223 |
die;
|
224 |
}
|
225 |
+
|
226 |
add_action('wp_ajax_importByRequest', 'importByRequest');
|
227 |
|
228 |
+
add_action('init', 'myStartSession', 1);
|
229 |
+
add_action('wp_logout', 'myEndSession');
|
230 |
+
add_action('wp_login', 'myEndSession');
|
231 |
+
|
232 |
+
function myStartSession() {
|
233 |
+
if (!session_id()) {
|
234 |
+
session_start();
|
235 |
+
}
|
236 |
+
}
|
237 |
+
|
238 |
+
function myEndSession() {
|
239 |
+
session_destroy();
|
240 |
+
}
|
js/ultimate-importer-free.js
CHANGED
@@ -374,26 +374,26 @@ function import_csv()
|
|
374 |
if (array[j] == 'post_title') {
|
375 |
val1 = 'On';
|
376 |
}
|
377 |
-
|
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'
|
389 |
return true;
|
390 |
}
|
391 |
else {
|
392 |
error_msg = '';
|
393 |
if (val1 == 'Off')
|
394 |
-
error_msg += " post_title";
|
395 |
-
|
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
|
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
|
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 += "
|
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 = '
|
1004 |
-
document.getElementById('contentbar').style.height = '
|
1005 |
-
document.getElementById('settingsholder').style.height = '
|
1006 |
} else if(parseInt(i) == 9) {
|
1007 |
document.getElementById('sidebar').style.height = '665px';
|
1008 |
document.getElementById('contentbar').style.height = '665px';
|
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';
|
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 |
-
|
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 } ?>
|
@@ -423,7 +417,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 } ?>
|
417 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
|
418 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
419 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
420 |
<!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
421 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
422 |
<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 |
-
|
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 } ?>
|
@@ -554,7 +548,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 } ?>
|
548 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
|
549 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
550 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
551 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
552 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
553 |
<div class="clear"></div>
|
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 “%s”' ), $data_array['post_title'] ) ) . "' rel='permalink'
|
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 “%s”' ), $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 |
-
|
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 |
?>
|
@@ -539,7 +533,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 |
?>
|
533 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
|
534 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
535 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
536 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
537 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
538 |
|
modules/export/actions/actions.php
CHANGED
@@ -27,9 +27,9 @@ class ExportActions extends SkinnyActions {
|
|
27 |
$helper->generateanddownloadcsv($type, $filename);
|
28 |
}
|
29 |
}
|
30 |
-
|
31 |
-
|
32 |
-
|
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 |
-
|
16 |
if ( ! wp_verify_nonce( $nonce, 'my-nonce' ) ) {
|
17 |
-
|
18 |
-
|
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 |
-
|
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 } ?>
|
@@ -491,7 +485,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 } ?>
|
485 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
|
486 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
487 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();">
|
|
|
488 |
<!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
489 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
490 |
<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 |
-
|
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 } ?>
|
@@ -501,7 +495,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 } ?>
|
495 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
|
496 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
497 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
498 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
499 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
500 |
|
modules/settings/templates/index.php
CHANGED
@@ -517,9 +517,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 +533,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">
|
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 |
<tr><td>IonCube Loader </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
|
522 |
echo '<label style="color:green;">Yes</label>';
|
523 |
} else {
|
533 |
} else {
|
534 |
echo '<label style="color:red;">No</label>';
|
535 |
} ?></td><td></td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
</table>
|
537 |
<h3 id="innertitle" colspan="2" >Debug Information:</h3>
|
538 |
<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(
|
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 |
-
|
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 } ?>
|
@@ -420,7 +414,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 } ?>
|
414 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
|
415 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
416 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none;" onclick="import_again();" />
|
|
|
417 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
418 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
419 |
<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 |
-
|
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:
|
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/menu.php
CHANGED
@@ -5,8 +5,7 @@
|
|
5 |
* Proprietary and confidential
|
6 |
* You can contact Smackcoders at email address info@smackcoders.com.
|
7 |
*******************************************************************************************/
|
8 |
-
|
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 |
-
|
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'];
|