Changeset 1119394
- Timestamp:
- 03/24/2015 05:44:58 AM (11 years ago)
- Location:
- desktopserver
- Files:
-
- 3 added
- 2 edited
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
trunk/database_runner.no-execute (added)
-
trunk/desktopserver.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
desktopserver/trunk/desktopserver.php
r850831 r1119394 2 2 /** 3 3 * @package DesktopServer for WordPress 4 * @version 1. 4.04 * @version 1.5.0 5 5 */ 6 6 /* … … 8 8 Plugin URI: http://serverpress.com/products/desktopserver/ 9 9 Description: 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 Car roll11 Version: 1. 4.010 Author: Stephen Carnam 11 Version: 1.5.0 12 12 Author URI: http://steveorevo.com/ 13 13 */ … … 119 119 return 'Error - Cannot create ds-deploy folder. '; 120 120 } 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 ); 121 125 } 122 126 … … 130 134 // Decompress any compressed data chunks 131 135 if ( $is_zip ){ 132 136 133 137 // Write chunk to temp file 134 138 $wp_filesystem->put_contents( $temp . '.zip', $data ); … … 151 155 } 152 156 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 } 164 172 } 165 173 … … 212 220 } 213 221 214 // Execute the database, if present222 // Execute 3.5.8 and older databases, if present... these users will still get warnings. 215 223 if ( $wp_filesystem->is_file( $this->ds_deploy . '/database.sql' ) ) { 216 224 $buffer = $wp_filesystem->get_contents( $this->ds_deploy . '/database.sql' ); -
desktopserver/trunk/readme.txt
r850831 r1119394 1 1 === DesktopServer for WordPress === 2 2 Contributors: steveorevo 3 Tags: localhost, isp, hosting 3 Tags: localhost, isp, hosting, deploy, copy, transfer, publish 4 4 Requires at least: 3.0 5 Tested up to: 3.5.16 Stable tag: 1. 4.05 Tested up to: 4.1.1 6 Stable tag: 1.5.0 7 7 License: GPLv2 or later 8 8 … … 18 18 19 19 == 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 20 26 21 27 = 1.4.0 =
Note: See TracChangeset
for help on using the changeset viewer.