Changeset 494375
- Timestamp:
- 01/24/2012 12:59:13 AM (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
r494337 r494375 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. 66 67 * Empty HTML files are added to backup directories to prevent them being listed by people trying to access the directory via their browsers. 67 68 -
wordpress-move/tags/1.3/wordpress-move.php
r494337 r494375 1017 1017 1018 1018 printf( __( 'Connecting to %s:%d...', 'WPMove' ), $wpmove_options['ftp_hostname'], $wpmove_options['ftp_port'] ); 1019 $this->flush_output(); 1019 1020 1020 1021 // Set the hostname and the port … … 1025 1026 1026 1027 echo ' <strong>' . __( 'Success!', 'WPMove' ) . '</strong><br>'; 1028 $this->flush_output(); 1027 1029 1028 1030 // Display a different message if no password is given … … 1032 1034 printf( __( 'Logging in as %s without a password...', 'WPMove' ), $wpmove_options['ftp_username'] ); 1033 1035 1036 $this->flush_output(); 1037 1034 1038 // Login to the server using the supplied credentials 1035 1039 if ( $ftp->login( $wpmove_options['ftp_username'], $ftp_password ) ) { 1036 1040 1037 1041 echo ' <strong>' . __( 'Success!', 'WPMove' ) . '</strong><br>' . __( 'Starting uploading files...', 'WPMove' ) . '<br>'; 1042 1043 $this->flush_output(); 1038 1044 1039 1045 // Changes the present working directory to the backup directory on the remote server … … 1046 1052 foreach ( $files as $file ) { 1047 1053 printf( __( '%s is being uploaded...', 'WPMove' ), basename( $file ) ); 1048 1054 $this->flush_output(); 1049 1055 if ( FALSE !== ( $ftp->put( trailingslashit( WPMOVE_BACKUP_DIR ) . $file, basename( $file ) ) ) ) { 1050 1056 echo '<strong>' . __( ' Success!', 'WPMove' ) . '</strong><br>'; … … 1053 1059 $error_count++; 1054 1060 } 1061 $this->flush_output(); 1055 1062 } 1056 1063 … … 1060 1067 else 1061 1068 _e( 'Uploading files is completed without an error...', 'WPMove' ); 1069 1070 $this->flush_output(); 1062 1071 1063 1072 echo '<br>'; … … 1119 1128 printf( __( '%s is being imported... ', 'WPMove' ), basename( $file ) ); 1120 1129 1130 $this->flush_output(); 1131 1121 1132 if ( wpmove_import_db_backup( basename( $file ) ) ) { 1122 1133 echo '<b>' . __( 'Success!', 'WPMove' ) . '</b></span><br>'; … … 1132 1143 echo '<span class="code">'; 1133 1144 printf( __( '%s is being extracted... ', 'WPMove' ), basename( $file ) ); 1145 1146 $this->flush_output(); 1134 1147 1135 1148 if ( wpmove_extract_archive( basename( $file ), ABSPATH ) ) { … … 1791 1804 1792 1805 /** 1806 * Flushes the output buffer. 1807 * 1808 * @param void 1809 * @return void 1810 */ 1811 function flush_output() { 1812 wp_ob_end_flush_all(); 1813 flush(); 1814 } 1815 1816 /** 1793 1817 * Adds a menu to the ACP 1794 1818 *
Note: See TracChangeset
for help on using the changeset viewer.