Changeset 494337
- Timestamp:
- 01/23/2012 11:40:37 PM (14 years ago)
- Location:
- wordpress-move/tags/1.3
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wordpress-move.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-move/tags/1.3/readme.txt
r493344 r494337 64 64 * A database backup converter is integrated to convert WordPress-Move-only database backup files to generic SQL files. 65 65 * Backup files to use for restoration can now be selected right on the Restore page. 66 * Messages are now displayed in real-time on migration and restoration pages.67 66 * Empty HTML files are added to backup directories to prevent them being listed by people trying to access the directory via their browsers. 68 67 -
wordpress-move/tags/1.3/wordpress-move.php
r493292 r494337 1017 1017 1018 1018 printf( __( 'Connecting to %s:%d...', 'WPMove' ), $wpmove_options['ftp_hostname'], $wpmove_options['ftp_port'] ); 1019 $this->flush_output();1020 1019 1021 1020 // Set the hostname and the port … … 1026 1025 1027 1026 echo ' <strong>' . __( 'Success!', 'WPMove' ) . '</strong><br>'; 1028 $this->flush_output();1029 1027 1030 1028 // Display a different message if no password is given … … 1034 1032 printf( __( 'Logging in as %s without a password...', 'WPMove' ), $wpmove_options['ftp_username'] ); 1035 1033 1036 $this->flush_output();1037 1038 1034 // Login to the server using the supplied credentials 1039 1035 if ( $ftp->login( $wpmove_options['ftp_username'], $ftp_password ) ) { 1040 1036 1041 1037 echo ' <strong>' . __( 'Success!', 'WPMove' ) . '</strong><br>' . __( 'Starting uploading files...', 'WPMove' ) . '<br>'; 1042 1043 $this->flush_output();1044 1038 1045 1039 // Changes the present working directory to the backup directory on the remote server … … 1052 1046 foreach ( $files as $file ) { 1053 1047 printf( __( '%s is being uploaded...', 'WPMove' ), basename( $file ) ); 1054 $this->flush_output(); 1048 1055 1049 if ( FALSE !== ( $ftp->put( trailingslashit( WPMOVE_BACKUP_DIR ) . $file, basename( $file ) ) ) ) { 1056 1050 echo '<strong>' . __( ' Success!', 'WPMove' ) . '</strong><br>'; … … 1059 1053 $error_count++; 1060 1054 } 1061 $this->flush_output();1062 1055 } 1063 1056 … … 1067 1060 else 1068 1061 _e( 'Uploading files is completed without an error...', 'WPMove' ); 1069 1070 $this->flush_output();1071 1062 1072 1063 echo '<br>'; … … 1128 1119 printf( __( '%s is being imported... ', 'WPMove' ), basename( $file ) ); 1129 1120 1130 $this->flush_output();1131 1132 1121 if ( wpmove_import_db_backup( basename( $file ) ) ) { 1133 1122 echo '<b>' . __( 'Success!', 'WPMove' ) . '</b></span><br>'; … … 1143 1132 echo '<span class="code">'; 1144 1133 printf( __( '%s is being extracted... ', 'WPMove' ), basename( $file ) ); 1145 1146 $this->flush_output();1147 1134 1148 1135 if ( wpmove_extract_archive( basename( $file ), ABSPATH ) ) { … … 1804 1791 1805 1792 /** 1806 * Flushes the output buffer.1807 *1808 * @param void1809 * @return void1810 */1811 function flush_output() {1812 wp_ob_end_flush_all();1813 flush();1814 }1815 1816 /**1817 1793 * Adds a menu to the ACP 1818 1794 *
Note: See TracChangeset
for help on using the changeset viewer.