Changeset 1904483
- Timestamp:
- 07/05/2018 11:12:21 AM (8 years ago)
- Location:
- import-spreadsheets-from-microsoft-excel
- Files:
-
- 33 added
- 3 edited
-
tags/10.0.2 (added)
-
tags/10.0.2/changelog.txt (added)
-
tags/10.0.2/css (added)
-
tags/10.0.2/css/admin.css (added)
-
tags/10.0.2/css/custom.css (added)
-
tags/10.0.2/css/style.css (added)
-
tags/10.0.2/debug.txt (added)
-
tags/10.0.2/icon (added)
-
tags/10.0.2/icon/add_shortcode.png (added)
-
tags/10.0.2/icon/delete_shortcode.png (added)
-
tags/10.0.2/icon/icon-apple.png (added)
-
tags/10.0.2/icon/icon-color-picker.png (added)
-
tags/10.0.2/icon/icon-color.png (added)
-
tags/10.0.2/icon/icon-css.png (added)
-
tags/10.0.2/icon/icon-facebook.png (added)
-
tags/10.0.2/icon/icon-flickr.png (added)
-
tags/10.0.2/icon/icon-general-setting.png (added)
-
tags/10.0.2/icon/icon-googleplus.png (added)
-
tags/10.0.2/icon/icon-instagram.png (added)
-
tags/10.0.2/icon/icon-linkedin.png (added)
-
tags/10.0.2/icon/icon-map.png (added)
-
tags/10.0.2/icon/icon-socialsites.png (added)
-
tags/10.0.2/icon/icon-tracking.png (added)
-
tags/10.0.2/icon/icon-twitter.png (added)
-
tags/10.0.2/icon/icon-vimeo.png (added)
-
tags/10.0.2/icon/icon-youtube.png (added)
-
tags/10.0.2/icon/minus.png (added)
-
tags/10.0.2/icon/plus.png (added)
-
tags/10.0.2/import-spreadsheets-from-microsoft-excel.php (added)
-
tags/10.0.2/js (added)
-
tags/10.0.2/js/admin.js (added)
-
tags/10.0.2/js/shortcode-manager-scripts.js (added)
-
tags/10.0.2/readme.txt (added)
-
trunk/debug.txt (modified) (1 diff)
-
trunk/import-spreadsheets-from-microsoft-excel.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
import-spreadsheets-from-microsoft-excel/trunk/debug.txt
r1896446 r1904483 26 26 [June 19, 2018] There was a problem with the upload. 27 27 [June 19, 2018] There was a problem with the upload. 28 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process 29 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process 30 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process 31 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process 32 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process 33 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process 34 [June 29, 2018] You need version 10 of Wordpress Plugin for upload process -
import-spreadsheets-from-microsoft-excel/trunk/import-spreadsheets-from-microsoft-excel.php
r1896446 r1904483 5 5 Plugin URI: https://www.spreadsheetconverter.com/support/online-help/help-wordpress-plugin-to-import-spreadsheets-from-microsoft-excel 6 6 Description: Import Spreadsheets from Microsoft Excel 7 Version: 10.0. 17 Version: 10.0.2 8 8 Author: SpreadsheetConverter 9 9 Author URI: http://www.spreadsheetconverter.com … … 16 16 ************************************************************************************ 17 17 18 Copyright (C) 201 7SpreadsheetConverter, http://www.spreadsheetconverter.com18 Copyright (C) 2018 SpreadsheetConverter, http://www.spreadsheetconverter.com 19 19 20 20 This program is free software: you can redistribute it and/or modify … … 311 311 312 312 $html = '<div class="errorMessage" class="messageBox messageError"></div><p class="description">'; 313 $html .= __( 'Please upload the package created by the SpreadsheetConverter. To create the package, go to Excel > SpreadsheetConverter Ribbon > Share menu > WordPress Share.', 'SpreadsheetConverter' );313 $html .= __( 'Please upload the package created by the SpreadsheetConverter. To create the package, go to Excel > SpreadsheetConverter Ribbon > Publish section > WordPress Plugin.', 'SpreadsheetConverter' ); 314 314 $html .= '</p>'; 315 315 $html .= '<div style="position:relative"><div class="uploadFileWrapper"> … … 396 396 //file name is compactible with sanitize_file_name() function 397 397 //plugin functional requirement 398 if( sanitize_file_name( $_FILES['wp_custom_attachment']['name'] ) != $_FILES['wp_custom_attachment']['name'] ){398 // if( sanitize_file_name( $_FILES['wp_custom_attachment']['name'] ) != $_FILES['wp_custom_attachment']['name'] ){ 399 399 400 set_transient( 'ims-fme-ssc-admin-notice-plug-special-char' , $_FILES['wp_custom_attachment']['name']);400 // set_transient( 'ims-fme-ssc-admin-notice-plug-special-char' , $_FILES['wp_custom_attachment']['name']); 401 401 402 // unhook this function to prevent indefinite loop403 remove_action( 'save_post', 'ims_fme_ssc_save_custom_meta_data' );404 wp_update_post( array('ID' => intval( $id ), 'post_status' => 'draft') );405 add_action( 'save_post', 'ims_fme_ssc_save_custom_meta_data' );406 407 return $id;408 }402 // // unhook this function to prevent infinite loop 403 // remove_action( 'save_post', 'ims_fme_ssc_save_custom_meta_data' ); 404 // wp_update_post( array('ID' => intval( $id ), 'post_status' => 'draft') ); 405 // add_action( 'save_post', 'ims_fme_ssc_save_custom_meta_data' ); 406 407 // return $id; 408 // } 409 409 410 410 $folder_name = basename( sanitize_file_name( $_FILES['wp_custom_attachment']['name'] ),".zip" ); … … 438 438 if ( $pathall[0] == $folder_name ) { 439 439 $pub_dir = $pub_dir; 440 $rename = false; 440 441 }elseif($pathall[0] != $folder_name){ 441 $pub_dir = $pub_dir."/".$folder_name; 442 //$pub_dir = $pub_dir."/".$folder_name; 443 $pub_dir = $pub_dir; 444 $rename = true; 445 446 442 447 } 443 448 // change this to the correct site path 444 $zip->extractTo( $pub_dir.'/'); 449 $zip->extractTo( $pub_dir.'/'); 450 451 if ( true === $rename ){ 452 //rename folder to sanitize name 453 rename( $pub_dir .'/'. $pathall[0] , $pub_dir .'/'. sanitize_file_name( $pathall[0] ) ); 454 455 //reanme file to sanitize name 456 if( file_exists( $pub_dir .'/'. sanitize_file_name( $pathall[0] ) .'/'. $pathall[0] . '.htm' ) ) { 457 $oldname = $pub_dir .'/'. sanitize_file_name( $pathall[0] ) .'/'. $pathall[0] . '.htm'; 458 $sanitize_name = $pub_dir .'/'. sanitize_file_name( $pathall[0] ) .'/'. sanitize_file_name( $pathall[0] ) . '.htm'; 459 copy( $oldname , $sanitize_name ); 460 wp_delete_file( $oldname ); 461 } 462 463 } 464 445 465 $zip->close(); 446 466 unlink($target_path); … … 587 607 delete_transient( 'ims-fme-ssc-admin-notice-zip-error' ); 588 608 589 } elseif( get_transient( 'ims-fme-ssc-admin-notice-plug-special-char' ) ) { ?>609 }/*elseif( get_transient( 'ims-fme-ssc-admin-notice-plug-special-char' ) ) { ?> 590 610 <div class="updated" style="color:red"><p>Invalid name <?php echo get_transient( 'ims-fme-ssc-admin-notice-plug-special-char' ); ?></p></div> 591 611 <?php 592 612 delete_transient( 'ims-fme-ssc-admin-notice-plug-special-char' ); 593 } 613 }*/ 594 614 595 615 } … … 641 661 jQuery('[id^=\"wp_custom_attachment\"]').css('background', '#F96'); 642 662 setTimeout(\"jQuery('#ajax-loading').css('visibility', 'hidden');\", 100); 643 alert(' You need SpreadsheetConverter version 10 Professional Edition to benefit from the simple convenience of the spreadsheet upload plugin.');663 alert('Please upload the zip file'); 644 664 setTimeout(\"jQuery('#publish').removeClass('button-primary-disabled');\", 100); 645 665 return false; -
import-spreadsheets-from-microsoft-excel/trunk/readme.txt
r1898260 r1904483 7 7 Tested up to: 4.9 8 8 Requires PHP: 5.2.4 9 Stable tag: 10.0. 19 Stable tag: 10.0.2 10 10 11 11 Import live, calculating spreadsheets from Microsoft Excel to WordPress. The uploaded online spreadsheet is live, and looks and feels like in Excel. … … 215 215 == Changelog == 216 216 217 = 10.0.2 = 218 219 * line 396 to 408 : commented sanitization file check because all folder/file are renamed accordingly 220 * line 451 to 461 : added to rename folder, file and to delete unsanitized filename 221 * line 609 to 613 : commented message invalid file name 222 217 223 = 10.0.1 = 218 224
Note: See TracChangeset
for help on using the changeset viewer.