Version Description
Download this release
Release Info
Developer | smackcoders |
Plugin | Ultimate CSV Importer |
Version | 3.6.73 |
Comparing to | |
See all releases |
Code changes from version 3.6.75 to 3.6.73
- Readme.txt +3 -20
- includes/WPImporter_includes_helper.php +1 -1
- index.php +2 -2
- js/ultimate-importer-free.js +3 -35
- modules/comments/templates/index.php +0 -1
- modules/custompost/templates/index.php +0 -1
- modules/eshop/actions/actions.php +1 -1
- modules/eshop/templates/index.php +0 -1
- modules/export/actions/actions.php +3 -3
- modules/export/templates/export.php +4 -10
- modules/page/templates/index.php +0 -1
- modules/post/templates/index.php +0 -1
- modules/users/actions/actions.php +1 -3
- modules/users/templates/index.php +0 -1
- templates/import.php +2 -3
- templates/menu.php +1 -2
- templates/savetemplate.php +55 -0
- templates/versioncheck.php +1 -2
Readme.txt
CHANGED
@@ -4,8 +4,8 @@ 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.
|
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
|
@@ -180,14 +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.
|
@@ -399,12 +388,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 |
|
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.73
|
8 |
+
Version: 3.6.73
|
9 |
Author: smackcoders
|
10 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
11 |
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
+
** Now version 3.6.73 available with more features. 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
|
177 |
|
178 |
== Changelog ==
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
= 3.6.73 =
|
181 |
* Added: WordPress 4.0 compatibility checked.
|
182 |
* Added: https format support for all wp instances.
|
388 |
|
389 |
== Upgrade Notice ==
|
390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
= 3.6.73 =
|
392 |
* Upgrade now for WordPress 4.0 compatibility and minor bug fixes.
|
393 |
|
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
|
@@ -75,7 +75,7 @@ define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-
|
|
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);
|
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.73
|
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
|
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.73');
|
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);
|
js/ultimate-importer-free.js
CHANGED
@@ -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){
|
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){
|
modules/comments/templates/index.php
CHANGED
@@ -423,7 +423,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>
|
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="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
427 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
428 |
<div class="clear"></div>
|
modules/custompost/templates/index.php
CHANGED
@@ -554,7 +554,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>
|
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="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
558 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
559 |
<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
@@ -539,7 +539,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 |
|
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="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
543 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
544 |
|
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
@@ -491,7 +491,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>
|
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="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
495 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
496 |
<div class="clear"></div>
|
modules/post/templates/index.php
CHANGED
@@ -501,7 +501,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 |
|
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="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
505 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
506 |
|
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
@@ -420,7 +420,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>
|
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="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
424 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
425 |
<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'];
|