Version Description
Download this release
Release Info
Developer | smackcoders |
Plugin | Ultimate CSV Importer |
Version | 3.6.76 |
Comparing to | |
See all releases |
Code changes from version 3.6.71 to 3.6.76
- Readme.txt +68 -7
- css/main.css +1 -1
- css/style.css +9 -3
- images/pro_icon.gif +0 -0
- includes/WPImporter_includes_helper.php +35 -5
- index.php +72 -37
- js/dashchart-widget.js +109 -0
- js/dashchart.js +5 -2
- js/ultimate-importer-free.js +67 -16
- modules/comments/templates/index.php +10 -2
- modules/custompost/templates/index.php +10 -2
- modules/dashboard/templates/index.php +2 -2
- modules/eshop/actions/actions.php +1 -1
- modules/eshop/templates/index.php +13 -5
- modules/export/actions/actions.php +3 -3
- modules/export/templates/export.php +10 -4
- modules/page/templates/index.php +10 -2
- modules/post/templates/index.php +11 -3
- modules/settings/actions/actions.php +14 -5
- modules/settings/templates/index.php +36 -9
- modules/support/templates/index.php +27 -89
- modules/users/actions/actions.php +3 -1
- modules/users/templates/index.php +10 -2
- templates/import.php +3 -2
- templates/layout.php +12 -1
- templates/menu.php +2 -1
- templates/savetemplate.php +0 -55
- templates/versioncheck.php +2 -1
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,
|
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,7 +15,24 @@ Advanced CSV Importer plugin to import/export posts, pages, eshop products, cust
|
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,6 +41,7 @@ WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer
|
|
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,12 +56,12 @@ WP Ultimate CSV Importer Plugin proven much effective advanced CSV File Importer
|
|
38 |
* Scheduled Publishing
|
39 |
* Duplicate Title and content handling
|
40 |
* Multi Lingual import (CSV format must be UTF-8 without BOM)
|
41 |
-
* Mutisite
|
42 |
* Compatible to wordpress themes
|
43 |
* Better alternative for xml
|
44 |
* Post Format option added
|
45 |
* Page template attribute feature
|
46 |
-
* EShop
|
47 |
= Power Import Features to Control your csv import =
|
48 |
* Post title, content and even excerpt
|
49 |
* Text, WYSIWYG/HTML, in line CSS in post content
|
@@ -177,6 +195,34 @@ This will solve your issue or get support from hosting if you dint have sufficie
|
|
177 |
|
178 |
== Changelog ==
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
= 3.6.71 =
|
181 |
* Minor bug fixed
|
182 |
|
@@ -374,6 +420,21 @@ This will solve your issue or get support from hosting if you dint have sufficie
|
|
374 |
|
375 |
== Upgrade Notice ==
|
376 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
= 3.6.71 =
|
378 |
* Upgrade now for complete export features as in Pro with bug fix.
|
379 |
|
1 |
=== WP Ultimate CSV Importer Plugin ===
|
2 |
Contributors: smackcoders
|
3 |
Donate link: http://www.smackcoders.com/donate.html
|
4 |
+
Tags: batch, csv, excel, import, spreadsheet, autoblog, Autoblogger, csvimporter, data, dataimport, importer, wpcsvimporter, wpimporter, acf, auto blog, csv import, csv to post, data import, Easy CSV Importer, eci, import plugin, admin, user, users, Advanced CSV Import, Advanced CSV Importer, affiliate, amazon, author, automatic, blog, bulk, bulk edit, bulk editor, categories, comments, content, csv file, csv format, csv importer, custom post, e-commerce, free, images, language, manage, media, meta, multisite, News, page, photos, pictures, plugin, Post, seo, shop, shortcode, tags, Taxonomy, text, title, video, eshop, woocommerce, wordpress, xml, youtube, export
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 3.6.76
|
8 |
+
Version: 3.6.76
|
9 |
Author: smackcoders
|
10 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
11 |
|
15 |
|
16 |
== Description ==
|
17 |
|
18 |
+
Wordpress Ultimate CSV Importer Pro V4.0 is available as live demo for users to test drive all new features, improvements and changes from http://www.wpultimatecsvimporter.com/. Users can get product manual and sample csv files etc., from - http://www.wpultimatecsvimporter.com/
|
19 |
+
|
20 |
+
** New Features of Wordpress Ultimate CSV Importer Pro V4.0 **
|
21 |
+
|
22 |
+
* Added common module for all features.
|
23 |
+
* Static/Dynamic/Formula content feature.
|
24 |
+
* Advanced image handling with content and featured image short codes.
|
25 |
+
* Added update feature from File Manager.
|
26 |
+
* Managing logs with anytime downloadable logs.
|
27 |
+
* Auto delimiter detection.
|
28 |
+
* Nested category & Nested Taxonomies with Yoast SEO support.
|
29 |
+
* Added Ajax save in Setting module.
|
30 |
+
* Summarize view,Security fix and Migrations are added.
|
31 |
+
* ACF Pro support for all available fields.
|
32 |
+
* Mapping template feature with edit option.
|
33 |
+
* Auto mapping and specific column update in Update feature.
|
34 |
+
|
35 |
+
** Now stable version 3.6.76 available to download with hot security fix. Visit [www.wpultimatecsvimporter.com](http://www.wpultimatecsvimporter.com) for more news and future plans.
|
36 |
|
37 |
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.
|
38 |
|
41 |
<p>https://www.youtube.com/watch?v=Guv5zR7fgW0&list=PL2k3Ck1bFtbQqFhOK7g08kxENI4qQkmC</p>
|
42 |
|
43 |
= Highlights =
|
44 |
+
* New Terminate & Continue feature is added.
|
45 |
* Complete export feature with improved filters
|
46 |
* Import external/internal images in line to any posts
|
47 |
* Upload images related to each csv
|
56 |
* Scheduled Publishing
|
57 |
* Duplicate Title and content handling
|
58 |
* Multi Lingual import (CSV format must be UTF-8 without BOM)
|
59 |
+
* Mutisite also supported now
|
60 |
* Compatible to wordpress themes
|
61 |
* Better alternative for xml
|
62 |
* Post Format option added
|
63 |
* Page template attribute feature
|
64 |
+
* EShop Products import (included from V3.6.3)
|
65 |
= Power Import Features to Control your csv import =
|
66 |
* Post title, content and even excerpt
|
67 |
* Text, WYSIWYG/HTML, in line CSS in post content
|
195 |
|
196 |
== Changelog ==
|
197 |
|
198 |
+
= 3.6.76 =
|
199 |
+
* Improved: Post Format.
|
200 |
+
* Fixed: Export eshop data issue.
|
201 |
+
* Fixed: Import with image name issue.
|
202 |
+
* Fixed: Groups plugin conflict.
|
203 |
+
|
204 |
+
= 3.6.75 =
|
205 |
+
* Added: Terminate & Continue option in import section.
|
206 |
+
* Improved: Log section. Issue fixed in Web View & Admin View.
|
207 |
+
* Fixed: Security fix for export module.
|
208 |
+
|
209 |
+
= 3.6.74 =
|
210 |
+
* Added: Security fix.
|
211 |
+
|
212 |
+
= 3.6.73 =
|
213 |
+
* Added: WordPress 4.0 compatibility checked.
|
214 |
+
* Added: https format support for all wp instances.
|
215 |
+
* Added: Warning to guide user to create uploads directory with writeable permissions.
|
216 |
+
* Fixed: Image handling issues in featured image.
|
217 |
+
* Fixed: Multisite compatible issue.
|
218 |
+
* Removed: Post Content field mandatory option.
|
219 |
+
* Removed: All console warnings.
|
220 |
+
* Improved: Details added in security and performance tab under settings module.
|
221 |
+
|
222 |
+
= 3.6.72 =
|
223 |
+
* Added: Debug mode enable/disable options.
|
224 |
+
* Modified: Menu order changes.
|
225 |
+
|
226 |
= 3.6.71 =
|
227 |
* Minor bug fixed
|
228 |
|
420 |
|
421 |
== Upgrade Notice ==
|
422 |
|
423 |
+
= 3.6.76 =
|
424 |
+
* Upgrade now for more bug fixes.
|
425 |
+
|
426 |
+
= 3.6.75 =
|
427 |
+
* Upgrade now for improved experience.
|
428 |
+
|
429 |
+
= 3.6.74 =
|
430 |
+
* Upgrade now for security fix.
|
431 |
+
|
432 |
+
= 3.6.73 =
|
433 |
+
* Upgrade now for WordPress 4.0 compatibility and minor bug fixes.
|
434 |
+
|
435 |
+
= 3.6.72 =
|
436 |
+
* Upgrade to enable/disable debug mode in settings.
|
437 |
+
|
438 |
= 3.6.71 =
|
439 |
* Upgrade now for complete export features as in Pro with bug fix.
|
440 |
|
css/main.css
CHANGED
@@ -415,7 +415,7 @@ border: 2px solid red;
|
|
415 |
border-radius:4px;
|
416 |
-moz-border-radius: 4px;
|
417 |
-webkit-border-radius: 4px;
|
418 |
-
top:190px;
|
419 |
position:relative;
|
420 |
}
|
421 |
|
415 |
border-radius:4px;
|
416 |
-moz-border-radius: 4px;
|
417 |
-webkit-border-radius: 4px;
|
418 |
+
/* top:190px; */
|
419 |
position:relative;
|
420 |
}
|
421 |
|
css/style.css
CHANGED
@@ -251,6 +251,10 @@ position: absolute;
|
|
251 |
padding: 15px 0;
|
252 |
}
|
253 |
|
|
|
|
|
|
|
|
|
254 |
#boxmethod1, #boxmethod2, #boxmethod3, #boxmethod4 {
|
255 |
padding: 10px;
|
256 |
}
|
@@ -433,11 +437,11 @@ padding-bottom: 10px;
|
|
433 |
margin-top: -33px;
|
434 |
margin-right: 8px;
|
435 |
}
|
436 |
-
#wpusercheck,#allowimport,#schedulecheck,#dropon,#catenable,#postlabel,
|
437 |
#pagelabel,#userlabel,#commentslabel,#custaxlabel,#cplabel,#catlabel,#custrevlabel {
|
438 |
border-radius:5px 0 0 5px;
|
439 |
}
|
440 |
-
#wpuseruncheck,#donallowimport,#scheduleuncheck,#dropoff,#catdisable,#nopostlabel,
|
441 |
#nopagelabel,#nouserlabel,#nocommentslabel,#nocustaxlabel,#nocplabel,#nocatlabel,#nocustrevlabel {
|
442 |
border-radius:0 5px 5px 0;
|
443 |
}
|
@@ -648,4 +652,6 @@ margin-top: 10px;
|
|
648 |
height:315px !important;
|
649 |
}
|
650 |
/*End off summary*/
|
651 |
-
|
|
|
|
251 |
padding: 15px 0;
|
252 |
}
|
253 |
|
254 |
+
.method1 img, .method2 img, .method3 img, .method4 img, #showmappingtemplate img, .databaseoptimization img {
|
255 |
+
margin-top:-25px;
|
256 |
+
}
|
257 |
+
|
258 |
#boxmethod1, #boxmethod2, #boxmethod3, #boxmethod4 {
|
259 |
padding: 10px;
|
260 |
}
|
437 |
margin-top: -33px;
|
438 |
margin-right: 8px;
|
439 |
}
|
440 |
+
#wpusercheck,#allowimport,#schedulecheck,#dropon,#catenable,#postlabel,#debugmode_enable,
|
441 |
#pagelabel,#userlabel,#commentslabel,#custaxlabel,#cplabel,#catlabel,#custrevlabel {
|
442 |
border-radius:5px 0 0 5px;
|
443 |
}
|
444 |
+
#wpuseruncheck,#donallowimport,#scheduleuncheck,#dropoff,#catdisable,#nopostlabel, #debugmode_disable,
|
445 |
#nopagelabel,#nouserlabel,#nocommentslabel,#nocustaxlabel,#nocplabel,#nocatlabel,#nocustrevlabel {
|
446 |
border-radius:0 5px 5px 0;
|
447 |
}
|
652 |
height:315px !important;
|
653 |
}
|
654 |
/*End off summary*/
|
655 |
+
#noPlugin {
|
656 |
+
margin: 5% 12%;
|
657 |
+
}
|
images/pro_icon.gif
ADDED
Binary file
|
includes/WPImporter_includes_helper.php
CHANGED
@@ -633,6 +633,34 @@ class WPImporter_includes_helper {
|
|
633 |
$post_format = 'post-format-gallery';
|
634 |
break;
|
635 |
default :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
$post_format = 0;
|
637 |
|
638 |
}
|
@@ -818,7 +846,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'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "'>" . __( 'Admin View' ) . "</a>";
|
822 |
|
823 |
unset($data_array);
|
824 |
}
|
@@ -857,6 +885,8 @@ class WPImporter_includes_helper {
|
|
857 |
$wpdb->query($sql4);
|
858 |
}
|
859 |
}
|
|
|
|
|
860 |
}
|
861 |
|
862 |
//Drop Database While Deactivate plugin
|
@@ -868,7 +898,7 @@ class WPImporter_includes_helper {
|
|
868 |
$sql2 = "DROP TABLE smackcsv_line_log;";
|
869 |
$wpdb->query($sql2);
|
870 |
|
871 |
-
|
872 |
}
|
873 |
public function addPieChartEntry($imported_as, $count) {
|
874 |
//add total counts
|
@@ -1049,13 +1079,13 @@ class WPImporter_includes_helper {
|
|
1049 |
</div>
|
1050 |
<div style = "opacity: 0.3;background-color: ghostwhite;">
|
1051 |
<div id="boxmethod2" class="method2">
|
1052 |
-
<label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP') . '</span> </label> <br>
|
1053 |
</div>
|
1054 |
<div id="boxmethod3" class="method3">
|
1055 |
-
<label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL') . '</span></label> <br>
|
1056 |
</div>
|
1057 |
<div id="boxmethod4" class="method4">
|
1058 |
-
<label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded') . '</span></label> <br>
|
1059 |
</div>
|
1060 |
</div>
|
1061 |
|
633 |
$post_format = 'post-format-gallery';
|
634 |
break;
|
635 |
default :
|
636 |
+
if($data_array['post_format']=='post-format-aside'){
|
637 |
+
$post_format='post-format-aside';
|
638 |
+
break;
|
639 |
+
}
|
640 |
+
if($data_array['post_format']=='post-format-image'){
|
641 |
+
$post_format='post-format-image';
|
642 |
+
break;
|
643 |
+
}
|
644 |
+
if($data_array['post_format']=='post-format-video'){
|
645 |
+
$post_format='post-format-video';
|
646 |
+
break;
|
647 |
+
}
|
648 |
+
if($data_array['post_format']=='post-format-audio'){
|
649 |
+
$post_format='post-format-audio';
|
650 |
+
break;
|
651 |
+
}
|
652 |
+
if($data_array['post_format']=='post-format-quote'){
|
653 |
+
$post_format='post-format-quote';
|
654 |
+
break;
|
655 |
+
}
|
656 |
+
if($data_array['post_format']=='post-format-link'){
|
657 |
+
$post_format='post-format-link';
|
658 |
+
break;
|
659 |
+
}
|
660 |
+
if($data_array['post_format']=='post-format-gallery'){
|
661 |
+
$post_format='post-format-gallery';
|
662 |
+
break;
|
663 |
+
}
|
664 |
$post_format = 0;
|
665 |
|
666 |
}
|
846 |
$skippedRecords[] = $_SESSION['SMACK_SKIPPED_RECORDS'];
|
847 |
}
|
848 |
}
|
849 |
+
$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' target='_blank'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "' target='_blank'>" . __( 'Admin View' ) . "</a>";
|
850 |
|
851 |
unset($data_array);
|
852 |
}
|
885 |
$wpdb->query($sql4);
|
886 |
}
|
887 |
}
|
888 |
+
$saveSettings = array('savesettings' => 'Save', 'post' => 'post', 'page' => 'page', 'custompost' => 'custompost', 'drop_table' => 'off', 'debug_mode' => 'disable_debug', 'export_delimiter' => ';',);
|
889 |
+
update_option('wpcsvfreesettings', $saveSettings);
|
890 |
}
|
891 |
|
892 |
//Drop Database While Deactivate plugin
|
898 |
$sql2 = "DROP TABLE smackcsv_line_log;";
|
899 |
$wpdb->query($sql2);
|
900 |
|
901 |
+
update_option('wpcsvfreesettings','');
|
902 |
}
|
903 |
public function addPieChartEntry($imported_as, $count) {
|
904 |
//add total counts
|
1079 |
</div>
|
1080 |
<div style = "opacity: 0.3;background-color: ghostwhite;">
|
1081 |
<div id="boxmethod2" class="method2">
|
1082 |
+
<label><span class="radio-icon"><input type="radio" name="importmethod" id="dwnldftpfile" /></span> <span class="header-text" id="importopt">' . __('From FTP') . '</span> </label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
|
1083 |
</div>
|
1084 |
<div id="boxmethod3" class="method3">
|
1085 |
+
<label> <span class="radio-icon"><input type="radio" name="importmethod" id="dwnldextrfile" /></span> <span class="header-text" id="importopt">' . __('From URL') . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
|
1086 |
</div>
|
1087 |
<div id="boxmethod4" class="method4">
|
1088 |
+
<label><span class="radio-icon"><input type="radio" name="importmethod" id="useuploadedfile" /></span> <span class="header-text" id="importopt">' . __('From Already Uploaded') . '</span></label> <img src="' . WP_CONTENT_URL . '/plugins/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/images/pro_icon.gif" title="PRO Feature" /> <br>
|
1089 |
</div>
|
1090 |
</div>
|
1091 |
|
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
|
@@ -43,15 +43,39 @@
|
|
43 |
* Notices must display the words
|
44 |
* "Copyright Smackcoders. 2014. All rights reserved".
|
45 |
********************************************************************************/
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html');
|
51 |
define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
|
52 |
define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
|
53 |
define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
|
54 |
-
define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.
|
55 |
define('WP_CONST_ULTIMATE_CSV_IMP_DIR', WP_PLUGIN_URL . '/' . WP_CONST_ULTIMATE_CSV_IMP_SLUG . '/');
|
56 |
define('WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY', plugin_dir_path(__FILE__));
|
57 |
define('WP_CSVIMP_PLUGIN_BASE', WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY);
|
@@ -60,6 +84,7 @@ if (!class_exists('SkinnyControllerWPCsvFree')) {
|
|
60 |
require_once('lib/skinnymvc/controller/SkinnyController.php');
|
61 |
}
|
62 |
|
|
|
63 |
require_once('plugins/class.inlineimages.php');
|
64 |
require_once('includes/WPImporter_includes_helper.php');
|
65 |
|
@@ -68,26 +93,34 @@ register_activation_hook(__FILE__, array('WPImporter_includes_helper', 'activate
|
|
68 |
register_deactivation_hook(__FILE__, array('WPImporter_includes_helper', 'deactivate'));
|
69 |
|
70 |
function action_csv_imp_admin_menu() {
|
71 |
-
|
72 |
include(ABSPATH . "wp-includes/pluggable.php");
|
73 |
}
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
$settings = $HelperObj->getSettings();
|
84 |
-
if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
|
85 |
-
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, '2', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
86 |
}
|
87 |
-
} else if ( current_user_can( 'administrator' ) ) {
|
88 |
-
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
89 |
}
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
add_action("admin_menu" , "action_csv_imp_admin_menu");
|
93 |
|
@@ -124,6 +157,20 @@ function action_csv_imp_admin_init() {
|
|
124 |
}
|
125 |
|
126 |
add_action('admin_init', 'action_csv_imp_admin_init');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
function firstchart() {
|
128 |
require_once("modules/dashboard/actions/chartone.php");
|
129 |
die();
|
@@ -183,7 +230,7 @@ function linetwoStats() {
|
|
183 |
|
184 |
function wpcsvimporter_add_dashboard_widgets() {
|
185 |
|
186 |
-
wp_enqueue_script('dashpiechart', plugins_url('js/dashchart.js', __FILE__));
|
187 |
wp_enqueue_script('high_chart', plugins_url('js/highcharts.js', __FILE__));
|
188 |
wp_enqueue_script('export_module', plugins_url('js/exporting.js', __FILE__));
|
189 |
wp_enqueue_script('pie_chart', plugins_url('js/highcharts-3d.js', __FILE__));
|
@@ -193,24 +240,12 @@ function wpcsvimporter_add_dashboard_widgets() {
|
|
193 |
|
194 |
add_action('wp_dashboard_setup', 'wpcsvimporter_add_dashboard_widgets');
|
195 |
|
196 |
-
|
|
|
|
|
197 |
function importByRequest() {
|
198 |
require_once("templates/import.php");
|
199 |
die;
|
200 |
}
|
201 |
-
|
202 |
add_action('wp_ajax_importByRequest', 'importByRequest');
|
203 |
|
204 |
-
add_action('init', 'myStartSession', 1);
|
205 |
-
add_action('wp_logout', 'myEndSession');
|
206 |
-
add_action('wp_login', 'myEndSession');
|
207 |
-
|
208 |
-
function myStartSession() {
|
209 |
-
if (!session_id()) {
|
210 |
-
session_start();
|
211 |
-
}
|
212 |
-
}
|
213 |
-
|
214 |
-
function myEndSession() {
|
215 |
-
session_destroy();
|
216 |
-
}
|
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.76
|
6 |
* Author: smackcoders.com
|
7 |
* Plugin URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
|
8 |
* Author URI: http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html
|
43 |
* Notices must display the words
|
44 |
* "Copyright Smackcoders. 2014. All rights reserved".
|
45 |
********************************************************************************/
|
46 |
+
|
47 |
+
$get_debug_mode = get_option('wpcsvfreesettings');
|
48 |
+
if(isset($get_debug_mode['debug_mode']) && $get_debug_mode['debug_mode'] != 'enable_debug') {
|
49 |
+
error_reporting(0);
|
50 |
+
ini_set('display_errors', 'Off');
|
51 |
+
}
|
52 |
+
|
53 |
+
@ob_start();
|
54 |
+
add_action('init', 'myStartSession', 1);
|
55 |
+
add_action('wp_logout', 'myEndSession');
|
56 |
+
add_action('wp_login', 'myEndSession');
|
57 |
+
/**
|
58 |
+
* To Start Session
|
59 |
+
*/
|
60 |
+
function myStartSession() {
|
61 |
+
if (!session_id()) {
|
62 |
+
session_start();
|
63 |
+
}
|
64 |
+
}
|
65 |
+
/**
|
66 |
+
* To Destroy session
|
67 |
+
*/
|
68 |
+
function myEndSession() {
|
69 |
+
session_destroy();
|
70 |
+
}
|
71 |
+
if ( empty( $GLOBALS['wp_rewrite'] ) )
|
72 |
+
$GLOBALS['wp_rewrite'] = new WP_Rewrite();
|
73 |
|
74 |
define('WP_CONST_ULTIMATE_CSV_IMP_URL', 'http://www.smackcoders.com/wp-ultimate-csv-importer-pro.html');
|
75 |
define('WP_CONST_ULTIMATE_CSV_IMP_NAME', 'WP Ultimate CSV Importer');
|
76 |
define('WP_CONST_ULTIMATE_CSV_IMP_SLUG', 'wp-ultimate-csv-importer');
|
77 |
define('WP_CONST_ULTIMATE_CSV_IMP_SETTINGS', 'WP Ultimate CSV Importer');
|
78 |
+
define('WP_CONST_ULTIMATE_CSV_IMP_VERSION', '3.6.76');
|
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 |
require_once('lib/skinnymvc/controller/SkinnyController.php');
|
85 |
}
|
86 |
|
87 |
+
|
88 |
require_once('plugins/class.inlineimages.php');
|
89 |
require_once('includes/WPImporter_includes_helper.php');
|
90 |
|
93 |
register_deactivation_hook(__FILE__, array('WPImporter_includes_helper', 'deactivate'));
|
94 |
|
95 |
function action_csv_imp_admin_menu() {
|
96 |
+
if(!function_exists('wp_get_current_user')) {
|
97 |
include(ABSPATH . "wp-includes/pluggable.php");
|
98 |
}
|
99 |
+
if(is_multisite()) {
|
100 |
+
if ( current_user_can( 'administrator' ) ) {
|
101 |
+
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
102 |
+
} else if ( current_user_can( 'author' ) || current_user_can( 'editor' ) ) {
|
103 |
+
$HelperObj = new WPImporter_includes_helper();
|
104 |
+
$settings = $HelperObj->getSettings();
|
105 |
+
if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
|
106 |
+
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, '2', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
107 |
+
}
|
|
|
|
|
|
|
108 |
}
|
|
|
|
|
109 |
}
|
110 |
+
else {
|
111 |
+
if ( current_user_can( 'administrator' ) ) {
|
112 |
+
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
113 |
+
}
|
114 |
+
else if ( current_user_can( 'author' ) || current_user_can( 'editor' ) ) {
|
115 |
+
$HelperObj = new WPImporter_includes_helper();
|
116 |
+
$settings = $HelperObj->getSettings();
|
117 |
+
if(isset($settings['enable_plugin_access_for_author']) && $settings['enable_plugin_access_for_author'] == 'enable_plugin_access_for_author') {
|
118 |
+
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, '2', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
119 |
+
}
|
120 |
+
} /*else if ( current_user_can( 'administrator' ) ) {
|
121 |
+
add_menu_page(WP_CONST_ULTIMATE_CSV_IMP_SETTINGS, WP_CONST_ULTIMATE_CSV_IMP_NAME, 'manage_options', __FILE__, array('WPImporter_includes_helper', 'output_fd_page'), WP_CONST_ULTIMATE_CSV_IMP_DIR . "images/icon.png");
|
122 |
+
}*/
|
123 |
+
}
|
124 |
}
|
125 |
add_action("admin_menu" , "action_csv_imp_admin_menu");
|
126 |
|
157 |
}
|
158 |
|
159 |
add_action('admin_init', 'action_csv_imp_admin_init');
|
160 |
+
|
161 |
+
// Move Pages above Media
|
162 |
+
function smackcsvfree_change_menu_order( $menu_order ) {
|
163 |
+
return array(
|
164 |
+
'index.php',
|
165 |
+
'edit.php',
|
166 |
+
'edit.php?post_type=page',
|
167 |
+
'upload.php',
|
168 |
+
'wp-ultimate-csv-importer/index.php',
|
169 |
+
);
|
170 |
+
}
|
171 |
+
add_filter( 'custom_menu_order', '__return_true' );
|
172 |
+
add_filter( 'menu_order', 'smackcsvfree_change_menu_order' );
|
173 |
+
|
174 |
function firstchart() {
|
175 |
require_once("modules/dashboard/actions/chartone.php");
|
176 |
die();
|
230 |
|
231 |
function wpcsvimporter_add_dashboard_widgets() {
|
232 |
|
233 |
+
wp_enqueue_script('dashpiechart', plugins_url('js/dashchart-widget.js', __FILE__));
|
234 |
wp_enqueue_script('high_chart', plugins_url('js/highcharts.js', __FILE__));
|
235 |
wp_enqueue_script('export_module', plugins_url('js/exporting.js', __FILE__));
|
236 |
wp_enqueue_script('pie_chart', plugins_url('js/highcharts-3d.js', __FILE__));
|
240 |
|
241 |
add_action('wp_dashboard_setup', 'wpcsvimporter_add_dashboard_widgets');
|
242 |
|
243 |
+
/**
|
244 |
+
* To Process the Import
|
245 |
+
*/
|
246 |
function importByRequest() {
|
247 |
require_once("templates/import.php");
|
248 |
die;
|
249 |
}
|
|
|
250 |
add_action('wp_ajax_importByRequest', 'importByRequest');
|
251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/dashchart-widget.js
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( document ).ready(function() {
|
2 |
+
pieStats();
|
3 |
+
lineStats();
|
4 |
+
});
|
5 |
+
function pieStats()
|
6 |
+
{
|
7 |
+
jQuery.ajax({
|
8 |
+
type: 'POST',
|
9 |
+
url: ajaxurl,
|
10 |
+
data: {
|
11 |
+
'action' : 'firstchart',
|
12 |
+
'postdata' : 'firstchartdata',
|
13 |
+
},
|
14 |
+
dataType: 'json',
|
15 |
+
cache: false,
|
16 |
+
success: function(data) {
|
17 |
+
var browser = JSON.parse(data);
|
18 |
+
if (browser['label'] == 'No Imports Yet') {
|
19 |
+
document.getElementById('pieStats').innerHTML = "<h2 style='color: red;text-align: center;padding-top: 100px;' >No Imports Yet</h2>";
|
20 |
+
return false;
|
21 |
+
}
|
22 |
+
|
23 |
+
jQuery('#pieStats').highcharts({
|
24 |
+
chart: {
|
25 |
+
type: 'pie',
|
26 |
+
options3d: {
|
27 |
+
enabled: true,
|
28 |
+
alpha: 45,
|
29 |
+
beta: 0
|
30 |
+
}
|
31 |
+
},
|
32 |
+
title: {
|
33 |
+
text: ''
|
34 |
+
},
|
35 |
+
tooltip: {
|
36 |
+
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
|
37 |
+
},
|
38 |
+
plotOptions: {
|
39 |
+
pie: {
|
40 |
+
allowPointSelect: true,
|
41 |
+
cursor: 'pointer',
|
42 |
+
depth: 35,
|
43 |
+
dataLabels: {
|
44 |
+
enabled: true,
|
45 |
+
format: '{point.name}'
|
46 |
+
}
|
47 |
+
}
|
48 |
+
},
|
49 |
+
series: [{
|
50 |
+
type: 'pie',
|
51 |
+
name: 'overall statistics',
|
52 |
+
// data: JSON.parse(data),
|
53 |
+
data: browser
|
54 |
+
}]
|
55 |
+
});
|
56 |
+
}
|
57 |
+
});
|
58 |
+
}
|
59 |
+
function lineStats()
|
60 |
+
{
|
61 |
+
jQuery.ajax({
|
62 |
+
type: 'POST',
|
63 |
+
url: ajaxurl,
|
64 |
+
data: {
|
65 |
+
'action' : 'secondchart',
|
66 |
+
'postdata' : 'secondchartdata',
|
67 |
+
},
|
68 |
+
dataType: 'json',
|
69 |
+
cache: false,
|
70 |
+
success: function(data) {
|
71 |
+
var val = JSON.parse(data);
|
72 |
+
var line = [val[0],val[1],val[2],val[3],val[4],val[5]];
|
73 |
+
jQuery('#lineStats').highcharts({
|
74 |
+
title: {
|
75 |
+
text: '',
|
76 |
+
x: -5 //center
|
77 |
+
},
|
78 |
+
subtitle: {
|
79 |
+
text: '',
|
80 |
+
x: -5
|
81 |
+
},
|
82 |
+
xAxis: {
|
83 |
+
categories:val.cat
|
84 |
+
},
|
85 |
+
yAxis: {
|
86 |
+
title: {
|
87 |
+
text: 'Import (Nos)'
|
88 |
+
},
|
89 |
+
plotLines: [{
|
90 |
+
value: 0,
|
91 |
+
width: 1,
|
92 |
+
color: '#808080'
|
93 |
+
}]
|
94 |
+
},
|
95 |
+
tooltip: {
|
96 |
+
valueSuffix: ' Nos'
|
97 |
+
},
|
98 |
+
legend: {
|
99 |
+
layout: 'vertical',
|
100 |
+
align: 'right',
|
101 |
+
verticalAlign: 'middle',
|
102 |
+
borderWidth: 0
|
103 |
+
},
|
104 |
+
series:line });
|
105 |
+
}
|
106 |
+
});
|
107 |
+
}
|
108 |
+
|
109 |
+
|
js/dashchart.js
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
jQuery( document ).ready(function() {
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
4 |
});
|
5 |
function pieStats()
|
6 |
{
|
1 |
jQuery( document ).ready(function() {
|
2 |
+
var get_module = document.getElementById('checkmodule').value;
|
3 |
+
if(get_module == 'dashboard') {
|
4 |
+
pieStats();
|
5 |
+
lineStats();
|
6 |
+
}
|
7 |
});
|
8 |
function pieStats()
|
9 |
{
|
js/ultimate-importer-free.js
CHANGED
@@ -7,8 +7,8 @@ jQuery( document ).ready(function() {
|
|
7 |
document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>';
|
8 |
}
|
9 |
|
10 |
-
pieStats();
|
11 |
-
lineStats();
|
12 |
|
13 |
|
14 |
}
|
@@ -374,26 +374,26 @@ function import_csv()
|
|
374 |
if (array[j] == 'post_title') {
|
375 |
val1 = 'On';
|
376 |
}
|
377 |
-
|
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' &&
|
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,7 +605,11 @@ function importRecordsbySettings(siteurl)
|
|
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.</
|
|
|
|
|
|
|
|
|
609 |
return false;
|
610 |
}
|
611 |
}else{
|
@@ -628,6 +632,34 @@ function terminateProcess(){
|
|
628 |
document.getElementById('terminateaction').value = 'terminate';
|
629 |
}
|
630 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
|
632 |
// Enable/Disable WP-e-Commerce Custom Fields
|
633 |
function enablewpcustomfield(val){
|
@@ -968,9 +1000,9 @@ function showsettingsoption(id) {
|
|
968 |
for(i=1;i<=9;i++) {
|
969 |
if(parseInt(id) == parseInt(i)) {
|
970 |
if(parseInt(i) == 8) {
|
971 |
-
document.getElementById('sidebar').style.height = '
|
972 |
-
document.getElementById('contentbar').style.height = '
|
973 |
-
document.getElementById('settingsholder').style.height = '
|
974 |
} else if(parseInt(i) == 9) {
|
975 |
document.getElementById('sidebar').style.height = '665px';
|
976 |
document.getElementById('contentbar').style.height = '665px';
|
@@ -991,6 +1023,10 @@ function showsettingsoption(id) {
|
|
991 |
document.getElementById('sidebar').style.height = '965px';
|
992 |
document.getElementById('contentbar').style.height = '965px';
|
993 |
document.getElementById('settingsholder').style.height = '966px';
|
|
|
|
|
|
|
|
|
994 |
} else {
|
995 |
document.getElementById('sidebar').style.height = 'auto';
|
996 |
document.getElementById('contentbar').style.height = 'auto';
|
@@ -1015,7 +1051,7 @@ function showsettingsoption(id) {
|
|
1015 |
|
1016 |
//seo setting enable and disable
|
1017 |
function seosetting(id) {
|
1018 |
-
if(id == '
|
1019 |
jQuery('#seosetting1').removeClass("disablesetting");
|
1020 |
jQuery('#seosetting1').addClass("enablesetting");
|
1021 |
document.getElementById("seosetting1text").innerHTML="Enabled";
|
@@ -1408,6 +1444,21 @@ function dropsetting(id) {
|
|
1408 |
}
|
1409 |
}
|
1410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1411 |
//Ecommerce setting
|
1412 |
function ecommercesetting(id) {
|
1413 |
if(id == 'nonerecommerce') {
|
7 |
document.getElementById('log').innerHTML = '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>';
|
8 |
}
|
9 |
|
10 |
+
//pieStats();
|
11 |
+
//lineStats();
|
12 |
|
13 |
|
14 |
}
|
374 |
if (array[j] == 'post_title') {
|
375 |
val1 = 'On';
|
376 |
}
|
377 |
+
/* if (array[j] == 'post_content') {
|
378 |
val2 = 'On';
|
379 |
+
} */
|
380 |
if (post_status_msg == 'Off') {
|
381 |
if (array[j] == 'post_status')
|
382 |
post_status_msg = 'On';
|
383 |
}
|
384 |
}
|
385 |
+
if (importer != 'custompost' && val1 == 'On' && post_status_msg == 'On') {
|
386 |
return true;
|
387 |
}
|
388 |
+
else if (importer == 'custompost' && val1 == 'On' && post_status_msg == 'On' && post_type=='On') {
|
389 |
return true;
|
390 |
}
|
391 |
else {
|
392 |
error_msg = '';
|
393 |
if (val1 == 'Off')
|
394 |
+
error_msg += " post_title";
|
395 |
+
/* if (val2 == 'Off')
|
396 |
+
error_msg += " post_content,"; */
|
397 |
if(importer == 'custompost') {
|
398 |
if (SelectedIndex == 'select')
|
399 |
error_msg += " post_type,";
|
566 |
return false;
|
567 |
}
|
568 |
if(get_log == '<p style="margin:15px;color:red;">NO LOGS YET NOW.</p>'){
|
569 |
+
document.getElementById('log').innerHTML = '<p style="margin-left:10px;color:red;">Your Import Is In Progress...</p>';
|
570 |
document.getElementById('startbutton').disabled = true;
|
571 |
}
|
572 |
document.getElementById('ajaxloader').style.display="";
|
573 |
var tempCount = parseInt(tmpCnt);
|
574 |
var totalCount = parseInt(tot_no_of_records);
|
575 |
+
if(tempCount >= totalCount){
|
576 |
document.getElementById('ajaxloader').style.display="none";
|
577 |
document.getElementById('startbutton').style.display="none";
|
578 |
document.getElementById('importagain').style.display="";
|
605 |
document.getElementById('tmpcount').value = parseInt(tmpCnt)+parseInt(importlimit);
|
606 |
setTimeout(function(){importRecordsbySettings()},0);
|
607 |
} else {
|
608 |
+
document.getElementById('log').innerHTML += "<p style='margin-left:10px;color:red;'>Import process has been terminated.</p>";
|
609 |
+
document.getElementById('ajaxloader').style.display="none";
|
610 |
+
document.getElementById('startbutton').style.display = "none";
|
611 |
+
document.getElementById('terminatenow').style.display = "none";
|
612 |
+
document.getElementById('continuebutton').style.display = "";
|
613 |
return false;
|
614 |
}
|
615 |
}else{
|
632 |
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 |
for(i=1;i<=9;i++) {
|
1001 |
if(parseInt(id) == parseInt(i)) {
|
1002 |
if(parseInt(i) == 8) {
|
1003 |
+
document.getElementById('sidebar').style.height = '1189px';
|
1004 |
+
document.getElementById('contentbar').style.height = '1189px';
|
1005 |
+
document.getElementById('settingsholder').style.height = '1190px';
|
1006 |
} else if(parseInt(i) == 9) {
|
1007 |
document.getElementById('sidebar').style.height = '665px';
|
1008 |
document.getElementById('contentbar').style.height = '665px';
|
1023 |
document.getElementById('sidebar').style.height = '965px';
|
1024 |
document.getElementById('contentbar').style.height = '965px';
|
1025 |
document.getElementById('settingsholder').style.height = '966px';
|
1026 |
+
} else if(parseInt(i) == 6) {
|
1027 |
+
document.getElementById('sidebar').style.height = '565px';
|
1028 |
+
document.getElementById('contentbar').style.height = '565px';
|
1029 |
+
document.getElementById('settingsholder').style.height = '566px';
|
1030 |
} else {
|
1031 |
document.getElementById('sidebar').style.height = 'auto';
|
1032 |
document.getElementById('contentbar').style.height = 'auto';
|
1051 |
|
1052 |
//seo setting enable and disable
|
1053 |
function seosetting(id) {
|
1054 |
+
if(id == 'nonerseooption') {
|
1055 |
jQuery('#seosetting1').removeClass("disablesetting");
|
1056 |
jQuery('#seosetting1').addClass("enablesetting");
|
1057 |
document.getElementById("seosetting1text").innerHTML="Enabled";
|
1444 |
}
|
1445 |
}
|
1446 |
|
1447 |
+
// Enable / Disable the debug mode
|
1448 |
+
function debugmode_check (id) {
|
1449 |
+
if(id == 'enabled') {
|
1450 |
+
jQuery('#debugmode_enable').removeClass("disablesetting");
|
1451 |
+
jQuery('#debugmode_enable').addClass("enablesetting");
|
1452 |
+
jQuery('#debugmode_disable').removeClass("enablesetting");
|
1453 |
+
jQuery('#debugmode_disable').addClass("disablesetting");
|
1454 |
+
} else {
|
1455 |
+
jQuery('#debugmode_disable').removeClass("disablesetting");
|
1456 |
+
jQuery('#debugmode_disable').addClass("enablesetting");
|
1457 |
+
jQuery('#debugmode_enable').removeClass("enablesetting");
|
1458 |
+
jQuery('#debugmode_enable').addClass("disablesetting");
|
1459 |
+
}
|
1460 |
+
}
|
1461 |
+
|
1462 |
//Ecommerce setting
|
1463 |
function ecommercesetting(id) {
|
1464 |
if(id == 'nonerecommerce') {
|
modules/comments/templates/index.php
CHANGED
@@ -44,8 +44,14 @@
|
|
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 |
<?php } else { ?>
|
50 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
51 |
<?php } ?>
|
@@ -75,6 +81,7 @@
|
|
75 |
<select disabled>
|
76 |
<option value ='select template' /> select template </option>
|
77 |
</select>
|
|
|
78 |
</div>
|
79 |
|
80 |
</div>
|
@@ -416,6 +423,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
|
|
416 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
|
417 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
418 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
419 |
<!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
420 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
421 |
<div class="clear"></div>
|
44 |
<td>
|
45 |
<h3>CSV Import Options</h3>
|
46 |
<div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
|
47 |
+
<?php if(is_dir($impCE->getUploadDirectory('default'))){
|
48 |
+
if (!is_writable($impCE->getUploadDirectory('default'))) {
|
49 |
+
if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
|
50 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
|
51 |
+
}
|
52 |
+
} else { ?>
|
53 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
|
54 |
+
<?php }?>
|
55 |
<?php } else { ?>
|
56 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
57 |
<?php } ?>
|
81 |
<select disabled>
|
82 |
<option value ='select template' /> select template </option>
|
83 |
</select>
|
84 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
|
85 |
</div>
|
86 |
|
87 |
</div>
|
423 |
<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>
|
modules/custompost/templates/index.php
CHANGED
@@ -44,8 +44,14 @@ $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 |
<?php } else { ?>
|
50 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
51 |
<?php } ?>
|
@@ -72,6 +78,7 @@ $impCE = new WPImporter_includes_helper();
|
|
72 |
<select disabled>
|
73 |
<option value ='select template' > select template </option>
|
74 |
</select>
|
|
|
75 |
</div>
|
76 |
|
77 |
</div>
|
@@ -547,6 +554,7 @@ $impCE = new WPImporter_includes_helper();
|
|
547 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
|
548 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
549 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
550 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
551 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
552 |
<div class="clear"></div>
|
44 |
<td>
|
45 |
<h3>CSV Import Options</h3>
|
46 |
<div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
|
47 |
+
<?php if(is_dir($impCE->getUploadDirectory('default'))){
|
48 |
+
if (!is_writable($impCE->getUploadDirectory('default'))) {
|
49 |
+
if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
|
50 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
|
51 |
+
}
|
52 |
+
} else { ?>
|
53 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
|
54 |
+
<?php }?>
|
55 |
<?php } else { ?>
|
56 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
57 |
<?php } ?>
|
78 |
<select disabled>
|
79 |
<option value ='select template' > select template </option>
|
80 |
</select>
|
81 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
|
82 |
</div>
|
83 |
|
84 |
</div>
|
554 |
<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>
|
modules/dashboard/templates/index.php
CHANGED
@@ -79,8 +79,8 @@ if(isset($_REQUEST['msg']) && $_REQUEST['msg'] == 'filenotfound'){
|
|
79 |
<?php if(isset($_REQUEST['errormsg'])){
|
80 |
?>
|
81 |
<script type="text/javascript">
|
82 |
-
showMapMessages('error' , "<?php echo $_REQUEST['errormsg']; ?>")
|
83 |
</script>
|
84 |
-
<?
|
85 |
}
|
86 |
?>
|
79 |
<?php if(isset($_REQUEST['errormsg'])){
|
80 |
?>
|
81 |
<script type="text/javascript">
|
82 |
+
showMapMessages('error' , "<?php echo $_REQUEST['errormsg']; ?>");
|
83 |
</script>
|
84 |
+
<?php
|
85 |
}
|
86 |
?>
|
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'>" . __( '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 |
}
|
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' target='_blank'>" . __( 'Web View' ) . "</a> | <a href='" . get_edit_post_link( $post_id, true ) . "' title='" . esc_attr( __( 'Edit this item' ) ) . "' target='_blank'>" . __( 'Admin View' ) . "</a>";
|
711 |
|
712 |
unset($data_array);
|
713 |
}
|
modules/eshop/templates/index.php
CHANGED
@@ -46,17 +46,23 @@ $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 |
<?php } else { ?>
|
52 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
53 |
<?php } ?>
|
54 |
<div class="warning" id="warning" name="warning" style="display:none;margin: 4% 0 4% 22%;"></div>
|
|
|
|
|
|
|
55 |
<form action='<?php echo admin_url().'admin.php?page='.WP_CONST_ULTIMATE_CSV_IMP_SLUG.'/index.php&__module='.$_REQUEST['__module'].'&step=mapping_settings'?>' id='browsefile' method='post' name='browsefile' enctype="multipart/form-data">
|
56 |
<div class="importfile" align='center'>
|
57 |
-
<div align=center>
|
58 |
-
<div id="noPlugin" class="warnings" style="display:none"></div>
|
59 |
-
</div>
|
60 |
<?php
|
61 |
if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] == 'not_avail') {
|
62 |
?>
|
@@ -109,6 +115,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
|
|
109 |
<select disabled/>
|
110 |
<option value ='select template' > select template </option>
|
111 |
</select>
|
|
|
112 |
</div>
|
113 |
<!-- code ends here -->
|
114 |
</div>
|
@@ -532,6 +539,7 @@ if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] != 'not_avail'
|
|
532 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
|
533 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
534 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
535 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
536 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
537 |
|
46 |
<td>
|
47 |
<h3>CSV Import Options</h3>
|
48 |
<div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
|
49 |
+
<?php if(is_dir($impCE->getUploadDirectory('default'))){
|
50 |
+
if (!is_writable($impCE->getUploadDirectory('default'))) {
|
51 |
+
if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
|
52 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
|
53 |
+
}
|
54 |
+
} else { ?>
|
55 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
|
56 |
+
<?php }?>
|
57 |
<?php } else { ?>
|
58 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
59 |
<?php } ?>
|
60 |
<div class="warning" id="warning" name="warning" style="display:none;margin: 4% 0 4% 22%;"></div>
|
61 |
+
<div align=center>
|
62 |
+
<div id="noPlugin" class="warnings" style="display:none"></div>
|
63 |
+
</div>
|
64 |
<form action='<?php echo admin_url().'admin.php?page='.WP_CONST_ULTIMATE_CSV_IMP_SLUG.'/index.php&__module='.$_REQUEST['__module'].'&step=mapping_settings'?>' id='browsefile' method='post' name='browsefile' enctype="multipart/form-data">
|
65 |
<div class="importfile" align='center'>
|
|
|
|
|
|
|
66 |
<?php
|
67 |
if ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['isplugin_avail'] == 'not_avail') {
|
68 |
?>
|
115 |
<select disabled/>
|
116 |
<option value ='select template' > select template </option>
|
117 |
</select>
|
118 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
|
119 |
</div>
|
120 |
<!-- code ends here -->
|
121 |
</div>
|
539 |
<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 |
|
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,15 +6,21 @@
|
|
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 |
-
|
15 |
} else {
|
16 |
-
|
|
|
17 |
}
|
|
|
18 |
$ExportObj = new WPCSVProExportData();
|
19 |
#print('<pre>'); print_r($_POST); //die;
|
20 |
$ExportObj->executeIndex($_POST);
|
6 |
* You can contact Smackcoders at email address info@smackcoders.com.
|
7 |
*******************************************************************************************/
|
8 |
|
9 |
+
if(!isset($_SERVER['HTTP_REFERER'])) {
|
10 |
+
die('Your requested url were wrong! Please contact your admin.');
|
11 |
+
}
|
12 |
require_once('../../../../../../wp-load.php');
|
|
|
13 |
|
14 |
+
$nonce = $_POST['nonce'];
|
15 |
+
//echo '<pre>'; print_r($sitedomain); echo '</pre>';
|
16 |
if ( ! wp_verify_nonce( $nonce, 'my-nonce' ) ) {
|
17 |
+
// This nonce is not valid.
|
18 |
+
die( 'Security check: Your requested URL is wrong! Please, Contact your administrator.' );
|
19 |
} else {
|
20 |
+
// The nonce was valid.
|
21 |
+
// Do stuff here.
|
22 |
}
|
23 |
+
|
24 |
$ExportObj = new WPCSVProExportData();
|
25 |
#print('<pre>'); print_r($_POST); //die;
|
26 |
$ExportObj->executeIndex($_POST);
|
modules/page/templates/index.php
CHANGED
@@ -44,8 +44,14 @@ $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 |
<?php } else { ?>
|
50 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
51 |
<?php } ?>
|
@@ -72,6 +78,7 @@ $impCE = new WPImporter_includes_helper();
|
|
72 |
<select disabled>
|
73 |
<option value ='select template' /> select template </option>
|
74 |
</select>
|
|
|
75 |
</div>
|
76 |
</div>
|
77 |
<div style="float:right;">
|
@@ -484,6 +491,7 @@ $impCE = new WPImporter_includes_helper();
|
|
484 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" >
|
485 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
486 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();">
|
|
|
487 |
<!-- <input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
488 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
489 |
<div class="clear"></div>
|
44 |
<td>
|
45 |
<h3>CSV Import Options</h3>
|
46 |
<div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
|
47 |
+
<?php if(is_dir($impCE->getUploadDirectory('default'))){
|
48 |
+
if (!is_writable($impCE->getUploadDirectory('default'))) {
|
49 |
+
if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
|
50 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
|
51 |
+
}
|
52 |
+
} else { ?>
|
53 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
|
54 |
+
<?php }?>
|
55 |
<?php } else { ?>
|
56 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
57 |
<?php } ?>
|
78 |
<select disabled>
|
79 |
<option value ='select template' /> select template </option>
|
80 |
</select>
|
81 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
|
82 |
</div>
|
83 |
</div>
|
84 |
<div style="float:right;">
|
491 |
<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>
|
modules/post/templates/index.php
CHANGED
@@ -44,8 +44,14 @@ $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 |
<?php } else { ?>
|
50 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
51 |
<?php } ?>
|
@@ -71,8 +77,9 @@ $impCE = new WPImporter_includes_helper();
|
|
71 |
<tr>
|
72 |
<div id='showmappingtemplate' style='float:left;padding-left:10px;'>
|
73 |
<select disabled/>
|
74 |
-
|
75 |
</select>
|
|
|
76 |
</div>
|
77 |
<!-- code ends here -->
|
78 |
</div>
|
@@ -494,6 +501,7 @@ $impCE = new WPImporter_includes_helper();
|
|
494 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings('<?php echo site_url(); ?>');" >
|
495 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
496 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none" onclick="import_again();" />
|
|
|
497 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
498 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
499 |
|
44 |
<td>
|
45 |
<h3>CSV Import Options</h3>
|
46 |
<div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
|
47 |
+
<?php if(is_dir($impCE->getUploadDirectory('default'))) {
|
48 |
+
if (!is_writable($impCE->getUploadDirectory('default'))) {
|
49 |
+
if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
|
50 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
|
51 |
+
}
|
52 |
+
} else { ?>
|
53 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
|
54 |
+
<?php }?>
|
55 |
<?php } else { ?>
|
56 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
57 |
<?php } ?>
|
77 |
<tr>
|
78 |
<div id='showmappingtemplate' style='float:left;padding-left:10px;'>
|
79 |
<select disabled/>
|
80 |
+
<option value ='select template' > select template </option>
|
81 |
</select>
|
82 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
|
83 |
</div>
|
84 |
<!-- code ends here -->
|
85 |
</div>
|
501 |
<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 |
|
modules/settings/actions/actions.php
CHANGED
@@ -57,7 +57,7 @@ class SettingsActions extends SkinnyActions
|
|
57 |
update_option('wpcsvfreesettings',$_POST);
|
58 |
$data['savesettings'] = 'done';
|
59 |
}
|
60 |
-
$setingsArr = array('post', 'page', 'custompost', 'comments', 'categories', 'customtaxonomy', 'users', 'eshop', 'wpcommerce', 'woocommerce', 'custompostuitype', 'cctm', 'acf', 'aioseo', 'yoastseo', 'enable', 'disable', 'nonerseooption', 'nonercustompost', 'nonerecommerce', 'recommerce','enable_plugin_access_for_author');
|
61 |
foreach($setingsArr as $option)
|
62 |
$data[$option] = "";
|
63 |
|
@@ -66,7 +66,6 @@ class SettingsActions extends SkinnyActions
|
|
66 |
foreach($settings as $settings_key)
|
67 |
$data[$settings_key] = 'checked';
|
68 |
|
69 |
-
|
70 |
//Settings action
|
71 |
//SEO option
|
72 |
$tableseo = get_option('wpcsvfreesettings');
|
@@ -228,9 +227,19 @@ class SettingsActions extends SkinnyActions
|
|
228 |
$data['customerreviews'] = 'disablesetting';
|
229 |
}
|
230 |
|
231 |
-
|
232 |
-
|
233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
|
235 |
//Custom Fields
|
236 |
#$wpmemberoption = $tableseo['rwpmembers'];
|
57 |
update_option('wpcsvfreesettings',$_POST);
|
58 |
$data['savesettings'] = 'done';
|
59 |
}
|
60 |
+
$setingsArr = array('post', 'page', 'custompost', 'comments', 'categories', 'customtaxonomy', 'users', 'eshop', 'wpcommerce', 'woocommerce', 'custompostuitype', 'cctm', 'acf', 'aioseo', 'yoastseo', 'enable', 'disable', 'nonerseooption', 'nonercustompost', 'nonerecommerce', 'recommerce','enable_plugin_access_for_author', 'send_log_email', 'enable_debug', 'disable_debug', 'debug_mode');
|
61 |
foreach($setingsArr as $option)
|
62 |
$data[$option] = "";
|
63 |
|
66 |
foreach($settings as $settings_key)
|
67 |
$data[$settings_key] = 'checked';
|
68 |
|
|
|
69 |
//Settings action
|
70 |
//SEO option
|
71 |
$tableseo = get_option('wpcsvfreesettings');
|
227 |
$data['customerreviews'] = 'disablesetting';
|
228 |
}
|
229 |
|
230 |
+
// Debug mode enable / disable
|
231 |
+
if(isset($tableseo['debug_mode'])) {
|
232 |
+
$debug_mode = $tableseo['debug_mode'];
|
233 |
+
} else {
|
234 |
+
$debug_mode = '';
|
235 |
+
}
|
236 |
+
if($debug_mode == 'enable_debug') {
|
237 |
+
$data['debugmode_enable'] = 'checked enablesetting';
|
238 |
+
$data['debugmode_disable'] = 'disablesetting';
|
239 |
+
} else if($debug_mode == 'disable_debug') {
|
240 |
+
$data['debugmode_enable'] = 'disablesetting';
|
241 |
+
$data['debugmode_disable'] = 'checked enablesetting';
|
242 |
+
}
|
243 |
|
244 |
//Custom Fields
|
245 |
#$wpmemberoption = $tableseo['rwpmembers'];
|
modules/settings/templates/index.php
CHANGED
@@ -102,11 +102,11 @@ global $wpdb; ?>
|
|
102 |
<span id="settingmenu8" >Security and Performance</span>
|
103 |
<span id="arrow8" class="list-arrow" style="display:none;" ></span>
|
104 |
</li>
|
105 |
-
|
106 |
-
<span class="settings-icon"> <img src="
|
107 |
<span id="settingmenu9" >Documentation</span>
|
108 |
<span id="arrow9" class="list-arrow" style="display:none;" ></span>
|
109 |
-
</li>
|
110 |
</ul>
|
111 |
</div>
|
112 |
<div id="contentbar">
|
@@ -348,12 +348,12 @@ global $wpdb; ?>
|
|
348 |
<tr><td>
|
349 |
<h3 id="innertitle">None</h3>
|
350 |
<label>SEO Meta import is disabled.</label> </td><td>
|
351 |
-
<label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="
|
352 |
</td></tr>
|
353 |
<tr><td>
|
354 |
<h3 id="innertitle">All-in-one SEO </h3>
|
355 |
<label>Enable All-in-one SEO import.</label> </td><td>
|
356 |
-
<label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
|
357 |
<div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
|
358 |
</td></tr>
|
359 |
<tr><td>
|
@@ -390,6 +390,12 @@ global $wpdb; ?>
|
|
390 |
</select>
|
391 |
</label>
|
392 |
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
<tr class="databorder"><td>
|
394 |
<h3 id="innertitle">Scheduled log mails</h3>
|
395 |
<label>Enable to get scheduled log mails.</label> </td><td>
|
@@ -417,7 +423,7 @@ global $wpdb; ?>
|
|
417 |
<!--div-7-->
|
418 |
<div id="section7" class="databaseoptimization" style="display:none;">
|
419 |
<div class="title">
|
420 |
-
<h3>Database Optimization
|
421 |
<span style="float:right;margin-right:168px;margin-top:-35px;">
|
422 |
<a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> Check All </a>
|
423 |
</span>
|
@@ -476,8 +482,8 @@ global $wpdb; ?>
|
|
476 |
<div id="data" class="databorder security-perfoemance" >
|
477 |
<table class="securityfeatures">
|
478 |
<tr><td>
|
479 |
-
<h3 id="innertitle">Allow authors to import</h3>
|
480 |
-
<label><div>
|
481 |
<div>It does not support users.</div></label></td><td>
|
482 |
|
483 |
<!--<label><input type='checkbox' name='enable_plugin_access_for_author' value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> /> Allow authors to import </label>-->
|
@@ -511,7 +517,9 @@ global $wpdb; ?>
|
|
511 |
</table>
|
512 |
<h3 id="innertitle" colspan="2" >Required Loaders and Extentions:</h3>
|
513 |
<table class="table table-striped">
|
514 |
-
<?php $loaders_extensions = get_loaded_extensions()
|
|
|
|
|
515 |
<tr><td>IonCube Loader </td><td><?php if(in_array('ionCube Loader', $loaders_extensions)) {
|
516 |
echo '<label style="color:green;">Yes</label>';
|
517 |
} else {
|
@@ -527,6 +535,25 @@ global $wpdb; ?>
|
|
527 |
} else {
|
528 |
echo '<label style="color:red;">No</label>';
|
529 |
} ?></td><td></td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
</table>
|
531 |
<h3 id="innertitle" colspan="2" >Debug Information:</h3>
|
532 |
<table class="table table-striped">
|
102 |
<span id="settingmenu8" >Security and Performance</span>
|
103 |
<span id="arrow8" class="list-arrow" style="display:none;" ></span>
|
104 |
</li>
|
105 |
+
<!--<li id="9" class="bg-sidebar" onclick="showsettingsoption(this.id);">
|
106 |
+
<span class="settings-icon"> <img src="/images/ldocs24.png" width="24" height="24" /> </span>
|
107 |
<span id="settingmenu9" >Documentation</span>
|
108 |
<span id="arrow9" class="list-arrow" style="display:none;" ></span>
|
109 |
+
</li> -->
|
110 |
</ul>
|
111 |
</div>
|
112 |
<div id="contentbar">
|
348 |
<tr><td>
|
349 |
<h3 id="innertitle">None</h3>
|
350 |
<label>SEO Meta import is disabled.</label> </td><td>
|
351 |
+
<label id="seosetting1" class="<?php echo $skinnyData['nonerseooption'];?>" ><input type = 'radio' name ='rseooption' id='nonerseooption' value='nonerseooption' <?php #echo $skinnyData['nonerseooption']; ?> class='ecommerce' onclick="seosetting(this.id);" style="display:none"><span id="seosetting1text"> <?php echo $skinnyData['none_status']; ?> </span> </label>
|
352 |
</td></tr>
|
353 |
<tr><td>
|
354 |
<h3 id="innertitle">All-in-one SEO </h3>
|
355 |
<label>Enable All-in-one SEO import.</label> </td><td>
|
356 |
+
<label id="seosetting2" class="<?php echo $skinnyData['aioseo']; ?>" ><input type ='radio' name = 'rseooption' id='aioseo' value='aioseo' <?php echo $skinnyData['aioseo']; ?> onclick="seosetting(this.id);" style="display:none"><span id="seosetting2text"> <?php echo $skinnyData['aioseo_status']; ?> </span></label>
|
357 |
<div id="pluginavail" class="<?php echo $skinnyData['aioseotd'] ?>"> </div>
|
358 |
</td></tr>
|
359 |
<tr><td>
|
390 |
</select>
|
391 |
</label>
|
392 |
</td></tr>
|
393 |
+
<tr class="databorder"><td>
|
394 |
+
<h3 id="innertitle">Debug Mode</h3>
|
395 |
+
<label>You can enable/disable the debug mode.</label> </td><td>
|
396 |
+
<label id="debugmode_enable" class="<?php echo $skinnyData['debugmode_enable']; ?>"><input type='radio' name='debug_mode' value='enable_debug' <?php echo $skinnyData['debugmode_enable']; ?> id="enabled" style="display:none" onclick="debugmode_check(this.id);" > On </label>
|
397 |
+
<label id="debugmode_disable" class="<?php echo $skinnyData['debugmode_disable']; ?>"><input type='radio' name='debug_mode' value='disable_debug' <?php echo $skinnyData['debugmode_disable']; ?> id="disabled" style="display:none" onclick="debugmode_check(this.id);" > Off </label>
|
398 |
+
</td></tr>
|
399 |
<tr class="databorder"><td>
|
400 |
<h3 id="innertitle">Scheduled log mails</h3>
|
401 |
<label>Enable to get scheduled log mails.</label> </td><td>
|
423 |
<!--div-7-->
|
424 |
<div id="section7" class="databaseoptimization" style="display:none;">
|
425 |
<div class="title">
|
426 |
+
<h3>Database Optimization <img src="<?php echo WP_CONTENT_URL;?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG;?>/images/pro_icon.gif" title='PRO Feature' /></h3>
|
427 |
<span style="float:right;margin-right:168px;margin-top:-35px;">
|
428 |
<a id="checkOpt" onclick="check_if_avail(this.id);" href="#"> Check All </a>
|
429 |
</span>
|
482 |
<div id="data" class="databorder security-perfoemance" >
|
483 |
<table class="securityfeatures">
|
484 |
<tr><td>
|
485 |
+
<h3 id="innertitle">Allow authors/editors to import</h3>
|
486 |
+
<label><div>It helps authors/editors can import using importer.</div>
|
487 |
<div>It does not support users.</div></label></td><td>
|
488 |
|
489 |
<!--<label><input type='checkbox' name='enable_plugin_access_for_author' value='enable_plugin_access_for_author' <?php echo $skinnyData['enable_plugin_access_for_author']; ?> /> Allow authors to import </label>-->
|
517 |
</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 |
} 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">
|
modules/support/templates/index.php
CHANGED
@@ -38,93 +38,35 @@
|
|
38 |
$impCE = new WPImporter_includes_helper();
|
39 |
?>
|
40 |
|
|
|
41 |
<div style="width:99%;">
|
42 |
-
<div class= "contactus" id="contactus">
|
43 |
-
<div class="accordion-group" >
|
44 |
-
<div class="accordion-heading">
|
45 |
-
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> Contact Us </a>
|
46 |
-
</div>
|
47 |
-
<div class="accordion-body in collapse" style="height=292px;">
|
48 |
-
<div class="accordion-inner">
|
49 |
-
<form action='<?php echo admin_url().'admin.php?page='.WP_CONST_ULTIMATE_CSV_IMP_SLUG.'/index.php&__module='.$_REQUEST['__module'].'&step=sendmail2smackers'?>' id='send_mail' method='post' name='send_mail' onsubmit="return sendemail2smackers();" >
|
50 |
-
<table class="table table-condensed">
|
51 |
-
<tr>
|
52 |
-
<td>First name <span class="mandatory">*</span></td><td><input type="text" id="firstname" placeholder="First name" name="firstname" /></td>
|
53 |
-
<td>Last name <span class="mandatory">*</span></td><td><input type="text" id="lastname" placeholder="Last name" name="lastname" />
|
54 |
-
<input type="hidden" id="smackmailid" name="smackmailid" value="csv-support@smackcoders.com" />
|
55 |
-
</td>
|
56 |
-
</tr>
|
57 |
-
<tr>
|
58 |
-
<td>Related To</td>
|
59 |
-
<td colspan=3>
|
60 |
-
<select name="subject">
|
61 |
-
<option>Support</option>
|
62 |
-
<option>Feature Request</option>
|
63 |
-
<option>Customization</option>
|
64 |
-
</select>
|
65 |
-
</td>
|
66 |
-
</tr>
|
67 |
-
<tr>
|
68 |
-
<td>Message <span class="mandatory">*</span></td>
|
69 |
-
<td colspan=3>
|
70 |
-
<textarea class="form-control" rows="3" name="message" id="message"></textarea>
|
71 |
-
</td>
|
72 |
-
</tr>
|
73 |
-
</table>
|
74 |
-
<div style="float:right;padding:10px;"><input class="btn btn-primary" type="submit" name="send_mail" /></div>
|
75 |
-
</form>
|
76 |
-
</div>
|
77 |
-
</div>
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
</div>
|
80 |
-
|
81 |
-
<div style="float:right;" id="promobox">
|
82 |
-
<div class= "promobox">
|
83 |
-
<div class="accordion-group" >
|
84 |
-
<div class="accordion-heading">
|
85 |
-
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> Share Your Love </a>
|
86 |
-
</div>
|
87 |
-
<div class="accordion-body in collapse">
|
88 |
-
<div class="accordion-inner">
|
89 |
-
<table class="table table-condensed">
|
90 |
-
<tr>
|
91 |
-
<td>Rate Our Plugin</td>
|
92 |
-
<td>
|
93 |
-
<a href="http://wordpress.org/support/view/plugin-reviews/wp-ultimate-csv-importer" target="_blank">
|
94 |
-
<ul class="stars">
|
95 |
-
<li>1</li>
|
96 |
-
<li>2</li>
|
97 |
-
<li>3</li>
|
98 |
-
<li>4</li>
|
99 |
-
<li>5</li>
|
100 |
-
</a>
|
101 |
-
</ul>
|
102 |
-
</td>
|
103 |
-
</tr>
|
104 |
-
<tr>
|
105 |
-
<td>Social Share</td>
|
106 |
-
<td>
|
107 |
-
<?php $impCE->importer_social_profile_share(); ?>
|
108 |
-
</td>
|
109 |
-
</tr>
|
110 |
-
<tr>
|
111 |
-
<td colspan=2><div align="center"><a href="http://www.smackcoders.com/donate.html" target="_blank"><img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/donatenow.png" width=75 /></a></div></td>
|
112 |
-
</tr>
|
113 |
-
</table>
|
114 |
-
</div>
|
115 |
-
</div>
|
116 |
-
</div>
|
117 |
-
<div class="accordion-group" >
|
118 |
-
<div class="accordion-body in collapse">
|
119 |
-
<div class="accordion-inner" align="center">
|
120 |
-
<a href = "http://wordpress.org/plugins/wp-zoho-crm/" style= "" ><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR ?>images/zohocrm.jpg" width=110px; height=110px; /> </a>
|
121 |
-
<a href = "http://wordpress.org/plugins/wp-sugar-free/" style= ""><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR ?>images/sugarcrm.png" width=110px; height=110px;/> </a>
|
122 |
-
<a href = "http://wordpress.org/plugins/wp-tiger/" style= ""><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR ?>images/tigercrm.png" width=110px;height=110px;/> </a>
|
123 |
-
</div>
|
124 |
-
</div>
|
125 |
-
</div>
|
126 |
-
</div>
|
127 |
-
</div>
|
128 |
<!-- Promotion footer for other useful plugins -->
|
129 |
<div class= "promobox" id="pluginpromo" style="width:99%;">
|
130 |
<div class="accordion-group" >
|
@@ -134,9 +76,5 @@ $impCE = new WPImporter_includes_helper();
|
|
134 |
</div>
|
135 |
</div>
|
136 |
</div>
|
|
|
137 |
</div>
|
138 |
-
|
139 |
-
<?php
|
140 |
-
/* Put your code here */
|
141 |
-
|
142 |
-
?>
|
38 |
$impCE = new WPImporter_includes_helper();
|
39 |
?>
|
40 |
|
41 |
+
<div id="support_con">
|
42 |
<div style="width:99%;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
+
<div class= "contactus" id="contactus" style="height:480px">
|
45 |
+
<div class="title">
|
46 |
+
<h3>Video Walk Through</h3>
|
47 |
+
</div>
|
48 |
+
<div id="data" >
|
49 |
+
<div id="video">
|
50 |
+
<iframe width="560" height="315" src="//www.youtube.com/embed/FhTUXE5zk0o?list=PL2k3Ck1bFtbRli9VdJaqwtzTSzzkOrH4j" frameborder="0" allowfullscreen></iframe>
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<div id="relatedpages" style='position:relative;left:630px;bottom:345px;'>
|
54 |
+
<h2 id="doctitle">Smackcoders Support </h2 >
|
55 |
+
<p style="line-height:20px;padding-top:20px">Click <a href="https://www.smackcoders.com/blog/category/web-development-news/" target="_blank"> here </a> for Development News </p>
|
56 |
+
<p style="line-height:20px">View <a href="http://www.wpultimatecsvimporter.com/" target="_blank">Recent News </a> </p>
|
57 |
+
<p style="line-height:20px">Refer <a href="http://www.wpultimatecsvimporter.com/documentation" target="_blank"> Detailed Document </a> </p>
|
58 |
+
<p style="line-height:20px">For<a href="https://www.smackcoders.com/blog/csv-importer-a-simple-and-easy-csv-importer-tutorial.html" target="_blank"> Tutorials </a> </p>
|
59 |
+
<p style="line-height:20px">For <a href="http://www.youtube.com/user/smackcoders/channels" target="_blank"> Youtube Channel </a> </p>
|
60 |
+
<p style="line-height:20px">To <a href="http://www.wpultimatecsvimporter.com/contact-us" target="_blank">Get Support</a></p>
|
61 |
+
<p style="line-height:20px">To Know the detail of <a href="https://www.smackcoders.com/store/products-46/wordpress.html" target="_blank"> Other Plugins </a> </p>
|
62 |
+
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
|
67 |
+
</div>
|
68 |
</div>
|
69 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
<!-- Promotion footer for other useful plugins -->
|
71 |
<div class= "promobox" id="pluginpromo" style="width:99%;">
|
72 |
<div class="accordion-group" >
|
76 |
</div>
|
77 |
</div>
|
78 |
</div>
|
79 |
+
-</div>
|
80 |
</div>
|
|
|
|
|
|
|
|
|
|
modules/users/actions/actions.php
CHANGED
@@ -174,12 +174,14 @@ 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 |
$user = new WP_User( $user_id );
|
184 |
if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
|
185 |
foreach ( $user->roles as $role )
|
174 |
if(!empty($getUserId)){
|
175 |
$user_id = $getUserId[0]->ID;
|
176 |
}
|
177 |
+
if(is_array($getUserId) && !empty($getUserId)){
|
178 |
$this->dupPostCount = $this->dupPostCount+1;
|
179 |
$this->detailedLog[$currentLimit][] = "<b>Username</b> - " . $UserLogin . " - already exists(skipped), <b>E-mail</b> - " . $UserEmail . " - found as duplicate.";
|
180 |
}
|
181 |
else{
|
182 |
$user_id = wp_insert_user( $data_array );
|
183 |
+
if(is_wp_error($user_id))
|
184 |
+
return false;
|
185 |
$user = new WP_User( $user_id );
|
186 |
if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
|
187 |
foreach ( $user->roles as $role )
|
modules/users/templates/index.php
CHANGED
@@ -48,8 +48,14 @@ $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 |
<?php } else { ?>
|
54 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
55 |
<?php } ?>
|
@@ -76,6 +82,7 @@ $impCE = new WPImporter_includes_helper();
|
|
76 |
<select disabled/>
|
77 |
<option value ='select template' /> select template </option>
|
78 |
</select>
|
|
|
79 |
</div>
|
80 |
|
81 |
</div>
|
@@ -413,6 +420,7 @@ $mFieldsArr = substr($mFieldsArr, 0, -1);
|
|
413 |
<input id="startbutton" class="btn btn-primary" type="button" value="Import Now" style="color: #ffffff;background:#2E9AFE;" onclick="importRecordsbySettings();" />
|
414 |
<input id="terminatenow" class="btn btn-danger btn-sm" type="button" value="Terminate Now" style="display:none;" onclick="terminateProcess();" />
|
415 |
<input class="btn btn-warning" type="button" value="Reload" id="importagain" style="display:none;" onclick="import_again();" />
|
|
|
416 |
<!--<input id="continuebutton" class="button" type="button" value="Continue old search" style="color: #ffffff;background:#2E9AFE;">-->
|
417 |
<div id="ajaxloader" style="display:none"><img src="<?php echo WP_CONST_ULTIMATE_CSV_IMP_DIR; ?>images/ajax-loader.gif"> Processing...</div>
|
418 |
<div class="clear"></div>
|
48 |
<td>
|
49 |
<h3>CSV Import Options</h3>
|
50 |
<div id='sec-one' <?php if($_REQUEST['step']!= 'uploadfile') {?> style='display:none;' <?php } ?>>
|
51 |
+
<?php if(is_dir($impCE->getUploadDirectory('default'))){
|
52 |
+
if (!is_writable($impCE->getUploadDirectory('default'))) {
|
53 |
+
if (!chmod($impCE->getUploadDirectory('default'), 0777)) { ?>
|
54 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' /> <?php
|
55 |
+
}
|
56 |
+
} else { ?>
|
57 |
+
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='found' />
|
58 |
+
<?php }?>
|
59 |
<?php } else { ?>
|
60 |
<input type='hidden' id='is_uploadfound' name='is_uploadfound' value='notfound' />
|
61 |
<?php } ?>
|
82 |
<select disabled/>
|
83 |
<option value ='select template' /> select template </option>
|
84 |
</select>
|
85 |
+
<img src="<?php echo WP_CONTENT_URL; ?>/plugins/<?php echo WP_CONST_ULTIMATE_CSV_IMP_SLUG; ?>/images/pro_icon.gif" title="PRO Feature" />
|
86 |
</div>
|
87 |
|
88 |
</div>
|
420 |
<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>
|
templates/import.php
CHANGED
@@ -34,7 +34,8 @@
|
|
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,7 +221,7 @@ if ($totRecords <= ($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['insPostCount'] +
|
|
220 |
unset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['captureId']);
|
221 |
}
|
222 |
if ($limit == $totRecords) {
|
223 |
-
echo "<br><div style='margin-left:
|
224 |
}
|
225 |
/*if ($curr_action == 'users') {
|
226 |
echo "<div style='margin-left:7px;'>";
|
34 |
* Notices must display the words
|
35 |
* "Copyright Smackcoders. 2014. All rights reserved".
|
36 |
********************************************************************************/
|
37 |
+
if(!defined('ABSPATH'))
|
38 |
+
die('Your requested url were wrong! Please contact your admin.');
|
39 |
require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/base/SkinnyBaseActions.php');
|
40 |
require_once(WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/SkinnyActions.php');
|
41 |
$skinnyObj = new CallWPImporterObj();
|
221 |
unset($_SESSION['SMACK_MAPPING_SETTINGS_VALUES']['captureId']);
|
222 |
}
|
223 |
if ($limit == $totRecords) {
|
224 |
+
echo "<br><div style='margin-left:10px; color:green;'>Import successfully completed!.</div>";
|
225 |
}
|
226 |
/*if ($curr_action == 'users') {
|
227 |
echo "<div style='margin-left:7px;'>";
|
templates/layout.php
CHANGED
@@ -46,7 +46,18 @@
|
|
46 |
}
|
47 |
else if(isset($_REQUEST['__module']))
|
48 |
{
|
49 |
-
print_r($skinny_content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
else
|
52 |
{
|
46 |
}
|
47 |
else if(isset($_REQUEST['__module']))
|
48 |
{
|
49 |
+
# print_r($skinny_content);
|
50 |
+
if (isset($_REQUEST['__module'])) {
|
51 |
+
if ( current_user_can( 'administrator' ) ) { //uthor' ) && current_user_can( 'editor' ) ) {
|
52 |
+
print_r($skinny_content);
|
53 |
+
} else {
|
54 |
+
if($_REQUEST['__module'] == 'users' || $_REQUEST['__module'] == 'settings') {
|
55 |
+
die('<p id="warning-msg" class="alert alert-warning" style="margin-top:50px;">You are not having the permission to access this page. Please, Contact your administrator.</p>');
|
56 |
+
} else {
|
57 |
+
print_r($skinny_content);
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
61 |
}
|
62 |
else
|
63 |
{
|
templates/menu.php
CHANGED
@@ -5,7 +5,8 @@
|
|
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();
|
5 |
* Proprietary and confidential
|
6 |
* You can contact Smackcoders at email address info@smackcoders.com.
|
7 |
*******************************************************************************************/
|
8 |
+
if(!defined('ABSPATH'))
|
9 |
+
die('Your requested url were wrong! Please contact your admin.');
|
10 |
$post = $page = $custompost = $categories = $users = $customtaxonomy = $comments = $eshop = $wpcommerce = $woocommerce = $settings = $support = $dashboard = $export = $mappingtemplate = $filemanager = $schedulemapping = $marketpress = $customerreviews = '';
|
11 |
$impCEM = CallWPImporterObj::getInstance();
|
12 |
$get_settings = array();
|
templates/savetemplate.php
DELETED
@@ -1,55 +0,0 @@
|
|
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,7 +34,8 @@
|
|
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'];
|
34 |
* Notices must display the words
|
35 |
* "Copyright Smackcoders. 2014. All rights reserved".
|
36 |
********************************************************************************/
|
37 |
+
if(!defined('ABSPATH'))
|
38 |
+
die('Your requested url were wrong! Please contact your admin.');
|
39 |
global $wpdb;
|
40 |
$all_arr = array();
|
41 |
$all_arr = $_REQUEST['postdata'];
|