Plugin Directory

Changeset 1573315


Ignore:
Timestamp:
01/12/2017 01:21:12 PM (9 years ago)
Author:
WebTechGlobal
Message:

Update for WordPress 4.7.1

Location:
csv-2-post
Files:
1 added
1 deleted
23 edited

Legend:

Unmodified
Added
Removed
  • csv-2-post/trunk

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/arrays

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/classes

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/classes/class-csv2post.php

    r1493994 r1573315  
    217217            add_action( "load-{$page_hook}", array( $this, 'load_admin_page' ) );
    218218        }
    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   
    258221    /**
    259222     * 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  
    595595    * @package CSV 2 POST
    596596    * @since 0.0.1
    597     * @version 1.0
     597    * @version 1.1
    598598    */
    599599    public function apply_form_security() {
     
    601601
    602602        # 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        {
    604605            return false;
    605606        }
    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 
    611624        # check capability and ensure user submitting form still has permission (what if permission is revoked after form loads?)
    612625            //  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  
    7979    * @author Ryan R. Bayne
    8080    * @package CSV 2 POST
    81     * @version 1.4
     81    * @version 1.6
    8282    *
    8383    * @todo put all tables into their own function as done with log table
     
    107107projectsettings longtext DEFAULT NULL,
    108108settingschange DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    109 UNIQUE KEY (projectid)
     109UNIQUE KEY projectid (projectid)
    110110 ) $charset_collate; ";
    111111        dbDelta( $sql_create_table );
     
    125125
    126126        // 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 (
     128sourceid bigint(20) unsigned NOT NULL AUTO_INCREMENT,
     129projectid int(5) unsigned DEFAULT 0,
     130name varchar(250) DEFAULT NULL,
     131sourcetype varchar(45) DEFAULT NULL,
     132progress int(12) DEFAULT 0,
     133rows int(12) DEFAULT 0,
     134tablename varchar (50) NOT NULL DEFAULT '0',
     135filesarray text DEFAULT NULL,
     136timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
     137path varchar(500) DEFAULT NULL,
     138directory varchar(500) DEFAULT NULL,
     139idcolumn varchar(50) DEFAULT NULL,
     140monitorfilechange tinyint(1) unsigned DEFAULT 1,
     141changecounter int(8) unsigned DEFAULT '0',
     142datatreatment varchar (50) NOT NULL DEFAULT 'single',
     143rules longtext DEFAULT NULL,
     144thesep varchar(1) DEFAULT NULL,
     145theconfig text DEFAULT NULL,PRIMARY KEY (sourceid)
     146) $charset_collate; ";
    128147        dbDelta( $sql_create_table ); 
    129148   
     
    298317    * @package WebTechGlobal WordPress Plugins
    299318    * @since 0.0.9
    300     * @version 1.2
     319    * @version 1.3
    301320    */
    302321    public function webtechglobal_schedule() {
     
    319338delay int(4) NOT NULL DEFAULT 3600,
    320339firsttime timestamp NULL,
    321 UNIQUE KEY (rowid) ) $charset_collate; ";
     340UNIQUE KEY rowid (rowid) ) $charset_collate; ";
    322341
    323342/*
  • csv-2-post/trunk/css

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/css/jqueryui

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/csv-2-post.php

    r1493994 r1573315  
    22/*
    33Plugin Name: CSV 2 POST
    4 Version: 8.2.18
     4Version: 8.2.19
    55Plugin URI: http://www.webtechglobal.co.uk/csv-2-post
    66Description: CSV 2 POST data importer for WordPress by Ryan R. Bayne.
    77Author: WebTechGlobal
    88Author URI: http://www.webtechglobal.co.uk/
    9 Last Updated: August 2016
     9Last Updated: January 2017
    1010Text Domain: csv2post
    1111Domain Path: /languages
     
    3939             
    4040// define constants                             
    41 if(!defined( "CSV2POST_VERSION") ){define( "CSV2POST_VERSION", '8.2.18' );}
     41if(!defined( "CSV2POST_VERSION") ){define( "CSV2POST_VERSION", '8.2.19' );}
    4242if(!defined( "CSV2POST_WPVERSIONMINIMUM") ){define( "CSV2POST_WPVERSIONMINIMUM", '4.2.0' );}// The minimum php version that will allow the plugin to work
    4343if(!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
  • csv-2-post/trunk/images

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/images/menus

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/images/scriptgraphics

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/inc

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/inc/fields

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/js

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/js/datetimepicker

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/languages

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/posttypes

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/readme.txt

    r1493994 r1573315  
    66Tags: CSV 2 POST,csv2post, WordPress Data Importer, Autoblog, Autoblogger, CSV Import, Data Importer
    77Requires at least: 4.2.0
    8 Tested up to: 4.5.3
     8Tested up to: 4.7.1
    99Stable tag: trunk
    1010
     
    128128
    129129== 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   
    130137= 8.2.18 =
    131138* Feature Changes
  • csv-2-post/trunk/samples

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/samples/imagegroups

    • Property svn:global-ignores set to
      desktop.ini
  • csv-2-post/trunk/views

    • Property svn:global-ignores set to
      desktop.ini
Note: See TracChangeset for help on using the changeset viewer.