Plugin Directory

Changeset 1119394


Ignore:
Timestamp:
03/24/2015 05:44:58 AM (11 years ago)
Author:
Steveorevo
Message:

Support for PHP5.5, other bug fixes

Location:
desktopserver
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • desktopserver/trunk/desktopserver.php

    r850831 r1119394  
    22/**
    33 * @package DesktopServer for WordPress
    4  * @version 1.4.0
     4 * @version 1.5.0
    55 */
    66/*
     
    88Plugin URI: http://serverpress.com/products/desktopserver/
    99Description: DesktopServer for WordPress eases localhost to live server deployment by publishing hosting provider server details via a protected XML-RPC feed to an authorized administrator only. It also provides assisted deployments to hosting providers that support file system direct. For more information, please visit http://serverpress.com/.
    10 Author: Stephen Carroll
    11 Version: 1.4.0
     10Author: Stephen Carnam
     11Version: 1.5.0
    1212Author URI: http://steveorevo.com/
    1313*/
     
    119119                return 'Error - Cannot create ds-deploy folder. ';
    120120            }
     121           
     122            // Precopy our current database_runner.php
     123            $wp_filesystem->copy( __DIR__ . '/database_runner.no-execute', $this->ds_deploy . '/database_runner.php' , true );
     124            $wp_filesystem->chmod( $this->ds_deploy . '/database_runner.php', FS_CHMOD_FILE );
    121125        }
    122126       
     
    130134            // Decompress any compressed data chunks
    131135            if ( $is_zip ){
    132            
     136               
    133137                // Write chunk to temp file
    134138                $wp_filesystem->put_contents( $temp . '.zip', $data );
     
    151155            }   
    152156           
    153             // Create/append data to our file
    154             // (WP_Filesystem get/put would use too much memory for large file appending)
    155             $fh = fopen( $file, 'a' );
    156             if ( $fh === false ){
    157                 return 'Error opening ' . $file;
    158             }
    159             if ( fwrite( $fh, $data ) === false ){
    160                 return 'Error writing to ' . $file;
    161             }
    162             fclose( $fh );
    163             $wp_filesystem->chmod($file, FS_CHMOD_FILE);
     157            // Ignore old database_runner.php and use our new plugin version
     158            if ( strpos( $file, 'database_runner.php' ) === FALSE ) {
     159               
     160                // Create/append data to our file
     161                // (WP_Filesystem get/put would use too much memory for large file appending)
     162                $fh = fopen( $file, 'a' );
     163                if ( $fh === false ){
     164                    return 'Error opening ' . $file;
     165                }
     166                if ( fwrite( $fh, $data ) === false ){
     167                    return 'Error writing to ' . $file;
     168                }
     169                fclose( $fh );
     170                $wp_filesystem->chmod($file, FS_CHMOD_FILE);
     171            }
    164172        }
    165173       
     
    212220        }
    213221       
    214         // Execute the database, if present
     222        // Execute 3.5.8 and older databases, if present... these users will still get warnings.
    215223        if ( $wp_filesystem->is_file( $this->ds_deploy . '/database.sql' ) ) {
    216224            $buffer = $wp_filesystem->get_contents( $this->ds_deploy . '/database.sql' );
  • desktopserver/trunk/readme.txt

    r850831 r1119394  
    11=== DesktopServer for WordPress ===
    22Contributors: steveorevo
    3 Tags: localhost, isp, hosting
     3Tags: localhost, isp, hosting, deploy, copy, transfer, publish
    44Requires at least: 3.0
    5 Tested up to: 3.5.1
    6 Stable tag: 1.4.0
     5Tested up to: 4.1.1
     6Stable tag: 1.5.0
    77License: GPLv2 or later
    88
     
    1818
    1919== Changelog ==
     20
     21= 1.5.0 =
     22* Updated MySQL interface to PDO; resolved "Unexpected Response" pertaining to mysql_connect deprecated warnings.
     23* Transfers htaccess last to prevent accidental lockout during deployment.
     24* Error reporting fix provides more feedback.
     25* Supports hosts running PHP 5.5.X
    2026
    2127= 1.4.0 =
Note: See TracChangeset for help on using the changeset viewer.