Changeset 1573315
- Timestamp:
- 01/12/2017 01:21:12 PM (9 years ago)
- Location:
- csv-2-post
- Files:
-
- 1 added
- 1 deleted
- 23 edited
-
tags/8.1.37/Thumbs.db (deleted)
-
trunk (modified) (1 prop)
-
trunk/arrays (modified) (1 prop)
-
trunk/classes (modified) (1 prop)
-
trunk/classes/class-csv2post.php (modified) (1 diff)
-
trunk/classes/class-forms.php (modified) (2 diffs)
-
trunk/classes/class-install.php (modified) (5 diffs)
-
trunk/css (modified) (1 prop)
-
trunk/css/jqueryui (modified) (1 prop)
-
trunk/csv-2-post.php (modified) (2 diffs)
-
trunk/functions (modified) (1 prop)
-
trunk/images (modified) (1 prop)
-
trunk/images/menus (modified) (1 prop)
-
trunk/images/scriptgraphics (modified) (1 prop)
-
trunk/images/themeforest-light-background.png (added)
-
trunk/inc (modified) (1 prop)
-
trunk/inc/fields (modified) (1 prop)
-
trunk/js (modified) (1 prop)
-
trunk/js/datetimepicker (modified) (1 prop)
-
trunk/languages (modified) (1 prop)
-
trunk/posttypes (modified) (1 prop)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/samples (modified) (1 prop)
-
trunk/samples/imagegroups (modified) (1 prop)
-
trunk/views (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
csv-2-post/trunk
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/arrays
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/classes
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/classes/class-csv2post.php
r1493994 r1573315 217 217 add_action( "load-{$page_hook}", array( $this, 'load_admin_page' ) ); 218 218 } 219 220 // TODO 1 Task: Temporary function while the 221 // update system is not in use 222 self::projectstable_add_status_column(); 223 } 224 225 /** 226 * Add "status" column to 227 * 228 * @author Ryan R. Bayne 229 * @package WebTechGlobal WordPress Plugins 230 * @version 1.0 231 */ 232 public function projectstable_add_status_column() { 233 global $charset_collate, $wpdb; 234 235 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 236 237 // having to remove tabs to make the table alter work, strange! 238 $sql_create_table = "CREATE TABLE {$wpdb->c2pprojects} ( 239 projectid bigint(5) unsigned NOT NULL AUTO_INCREMENT, 240 projectname varchar(45) DEFAULT NULL, 241 status tinyint(1) unsigned DEFAULT 1, 242 timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 243 source1 int(5) unsigned DEFAULT 0, 244 source2 int(5) unsigned DEFAULT 0, 245 source3 int(5) unsigned DEFAULT 0, 246 source4 int(5) unsigned DEFAULT 0, 247 source5 int(5) unsigned DEFAULT 0, 248 lockcontent tinyint(1) unsigned DEFAULT 0, 249 lockmeta tinyint(1) unsigned DEFAULT '0', 250 datatreatment VARCHAR(50) DEFAULT 'single', 251 projectsettings longtext DEFAULT NULL, 252 settingschange DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 253 PRIMARY KEY projectid $charset_collate; "; 254 255 dbDelta( $sql_create_table ); 256 } 257 219 } 220 258 221 /** 259 222 * Render the view that has been initialized in load_admin_page() (called by WordPress when the actual page content is needed) -
csv-2-post/trunk/classes/class-forms.php
r1446585 r1573315 595 595 * @package CSV 2 POST 596 596 * @since 0.0.1 597 * @version 1. 0597 * @version 1.1 598 598 */ 599 599 public function apply_form_security() { … … 601 601 602 602 # if form ID value does not exist FAIL - this is used to access form registration data 603 if( !isset( $_POST['csv2post_form_formid'] ) ) { 603 if( !isset( $_POST['csv2post_form_formid'] ) ) 604 { 604 605 return false; 605 606 } 606 607 # possible move nonce check to here, where it is may be better as it is before even this but not 100% sure 608 609 # detect extra fields (not registered), unless form is not registered at all then we do not do this 610 607 608 if( !isset( $_POST['csv2post_form_name'] ) ) 609 { 610 return false; 611 } 612 613 if( !isset( $_POST['_wpnonce'] ) ) 614 { 615 return false; 616 } 617 618 $nonce_result = wp_verify_nonce( $_POST['_wpnonce'], $_POST['csv2post_form_name'] ); 619 if( !$nonce_result ) 620 { 621 return false; 622 } 623 611 624 # check capability and ensure user submitting form still has permission (what if permission is revoked after form loads?) 612 625 // task has been created for this, form registation needs to begin earlier, before actual inputs so that -
csv-2-post/trunk/classes/class-install.php
r1493994 r1573315 79 79 * @author Ryan R. Bayne 80 80 * @package CSV 2 POST 81 * @version 1. 481 * @version 1.6 82 82 * 83 83 * @todo put all tables into their own function as done with log table … … 107 107 projectsettings longtext DEFAULT NULL, 108 108 settingschange DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', 109 UNIQUE KEY (projectid)109 UNIQUE KEY projectid (projectid) 110 110 ) $charset_collate; "; 111 111 dbDelta( $sql_create_table ); … … 125 125 126 126 // c2psources 127 $sql_create_table = "CREATE TABLE {$wpdb->c2psources} (sourceid bigint(20) unsigned NOT NULL AUTO_INCREMENT,projectid int(5) unsigned DEFAULT 0,name varchar(250) DEFAULT NULL,sourcetype varchar(45) DEFAULT NULL,progress int(12) DEFAULT 0,rows int(12) DEFAULT 0,tablename varchar (50) NOT NULL DEFAULT '0',filesarray text DEFAULT NULL,timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,path varchar(500) DEFAULT NULL,directory varchar(500) DEFAULT NULL,idcolumn varchar(50) DEFAULT NULL,monitorfilechange tinyint(1) unsigned DEFAULT 1, changecounter int(8) unsigned DEFAULT '0',datatreatment varchar (50) NOT NULL DEFAULT 'single',rules longtext DEFAULT NULL,thesep varchar(1) DEFAULT NULL,theconfig text DEFAULT NULL,PRIMARY KEY (sourceid)) $charset_collate; "; 127 $sql_create_table = "CREATE TABLE " . $wpdb->prefix . "c2psources ( 128 sourceid bigint(20) unsigned NOT NULL AUTO_INCREMENT, 129 projectid int(5) unsigned DEFAULT 0, 130 name varchar(250) DEFAULT NULL, 131 sourcetype varchar(45) DEFAULT NULL, 132 progress int(12) DEFAULT 0, 133 rows int(12) DEFAULT 0, 134 tablename varchar (50) NOT NULL DEFAULT '0', 135 filesarray text DEFAULT NULL, 136 timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 137 path varchar(500) DEFAULT NULL, 138 directory varchar(500) DEFAULT NULL, 139 idcolumn varchar(50) DEFAULT NULL, 140 monitorfilechange tinyint(1) unsigned DEFAULT 1, 141 changecounter int(8) unsigned DEFAULT '0', 142 datatreatment varchar (50) NOT NULL DEFAULT 'single', 143 rules longtext DEFAULT NULL, 144 thesep varchar(1) DEFAULT NULL, 145 theconfig text DEFAULT NULL,PRIMARY KEY (sourceid) 146 ) $charset_collate; "; 128 147 dbDelta( $sql_create_table ); 129 148 … … 298 317 * @package WebTechGlobal WordPress Plugins 299 318 * @since 0.0.9 300 * @version 1. 2319 * @version 1.3 301 320 */ 302 321 public function webtechglobal_schedule() { … … 319 338 delay int(4) NOT NULL DEFAULT 3600, 320 339 firsttime timestamp NULL, 321 UNIQUE KEY (rowid) ) $charset_collate; ";340 UNIQUE KEY rowid (rowid) ) $charset_collate; "; 322 341 323 342 /* -
csv-2-post/trunk/css
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/css/jqueryui
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/csv-2-post.php
r1493994 r1573315 2 2 /* 3 3 Plugin Name: CSV 2 POST 4 Version: 8.2.1 84 Version: 8.2.19 5 5 Plugin URI: http://www.webtechglobal.co.uk/csv-2-post 6 6 Description: CSV 2 POST data importer for WordPress by Ryan R. Bayne. 7 7 Author: WebTechGlobal 8 8 Author URI: http://www.webtechglobal.co.uk/ 9 Last Updated: August 20169 Last Updated: January 2017 10 10 Text Domain: csv2post 11 11 Domain Path: /languages … … 39 39 40 40 // define constants 41 if(!defined( "CSV2POST_VERSION") ){define( "CSV2POST_VERSION", '8.2.1 8' );}41 if(!defined( "CSV2POST_VERSION") ){define( "CSV2POST_VERSION", '8.2.19' );} 42 42 if(!defined( "CSV2POST_WPVERSIONMINIMUM") ){define( "CSV2POST_WPVERSIONMINIMUM", '4.2.0' );}// The minimum php version that will allow the plugin to work 43 43 if(!defined( "CSV2POST_PHPVERSIONMINIMUM") ){define( "CSV2POST_PHPVERSIONMINIMUM", '5.4.0' );}// The minimum php version that will allow the plugin to work -
csv-2-post/trunk/functions
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/images
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/images/menus
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/images/scriptgraphics
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/inc
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/inc/fields
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/js
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/js/datetimepicker
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/languages
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/posttypes
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/readme.txt
r1493994 r1573315 6 6 Tags: CSV 2 POST,csv2post, WordPress Data Importer, Autoblog, Autoblogger, CSV Import, Data Importer 7 7 Requires at least: 4.2.0 8 Tested up to: 4. 5.38 Tested up to: 4.7.1 9 9 Stable tag: trunk 10 10 … … 128 128 129 129 == Changelog == 130 = 8.2.19 = 131 * Feature Changes 132 * None 133 * Technical Changes 134 * Correction made for installation of sources database table. 135 * Removed projectstable_add_status_column() which updated very old versions but was being called too frequently. 136 130 137 = 8.2.18 = 131 138 * Feature Changes -
csv-2-post/trunk/samples
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/samples/imagegroups
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
-
csv-2-post/trunk/views
-
Property
svn:global-ignores
set to
desktop.ini
-
Property
svn:global-ignores
set to
Note: See TracChangeset
for help on using the changeset viewer.