Changeset 5639
- Timestamp:
- 03/24/06 09:46:37 (2 years ago)
- Files:
-
- wp-dbmanager/trunk/dbmanager/database-backup.php (modified) (3 diffs)
- wp-dbmanager/trunk/dbmanager/database-config.php (modified) (1 diff)
- wp-dbmanager/trunk/dbmanager/database-manage.php (modified) (5 diffs)
- wp-dbmanager/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-dbmanager/trunk/dbmanager/database-backup.php
r5595 r5639 21 21 require('database-config.php'); 22 22 23 24 23 ### Form Processing 25 24 if($_POST['do']) { … … 39 38 passthru($backup['command'], $error); 40 39 if(!is_writable($backup['path'])) { 41 $text = "<font color=\"red\">Database Failed To Backup On ' ".date('l, jS F Y @ H:i')."'. Backup Folder Not Writable</font>";40 $text = "<font color=\"red\">Database Failed To Backup On '$current_date'. Backup Folder Not Writable.</font>"; 42 41 } elseif(filesize($backup['filepath']) == 0) { 43 42 unlink($backup['filepath']); 44 $text = "<font color=\"red\">Database Failed To Backup On ' ".date('l, jS F Y @ H:i')."'. Backup File Size Is 0KB</font>";43 $text = "<font color=\"red\">Database Failed To Backup On '$current_date'. Backup File Size Is 0KB.</font>"; 45 44 } elseif(!is_file($backup['filepath'])) { 46 $text = "<font color=\"red\">Database Failed To Backup On ' ".date('l, jS F Y @ H:i')."'. Invalid Backup File Path</font>";45 $text = "<font color=\"red\">Database Failed To Backup On '$current_date'. Invalid Backup File Path.</font>"; 47 46 } elseif($error) { 48 $text = "<font color=\"red\">Database Failed To Backup On ' ".date('l, jS F Y @ H:i')."'</font>";47 $text = "<font color=\"red\">Database Failed To Backup On '$current_date'.</font>"; 49 48 } else { 50 $text = "<font color=\"green\">Database Backed Up Successfully On ' ".date('l, jS F Y @ H:i')."'</font>";49 $text = "<font color=\"green\">Database Backed Up Successfully On '$current_date'.</font>"; 51 50 } 52 51 break; … … 171 170 <tr style='background-color: #eee'> 172 171 <th align="left" scope="row">Database Backup Date:</th> 173 <td><?php echo date('jS F Y', $backup['date']); ?></td>172 <td><?php echo gmdate('l, jS F Y @ H:i', $backup['date']); ?></td> 174 173 </tr> 175 174 <tr style='background-color: none'> wp-dbmanager/trunk/dbmanager/database-config.php
r5258 r5639 27 27 $base_name = plugin_basename('dbmanager/database-manager.php'); 28 28 $base_page = 'admin.php?page='.$base_name; 29 $current_date = gmdate('l, jS F Y @ H:i', (time() + (get_settings('gmt_offset') * 3600))); 29 30 $backup = array(); 30 31 $backup_options = get_settings('dbmanager_options'); wp-dbmanager/trunk/dbmanager/database-manage.php
r5595 r5639 48 48 // Lets Prepare The Variables 49 49 $database_file = trim($_POST['database_file']); 50 $nice_file_date = date('l, jS F Y @ H:i', substr($database_file, 0, 10));50 $nice_file_date = gmdate('l, jS F Y @ H:i', substr($database_file, 0, 10)); 51 51 52 52 // Decide What To Do … … 74 74 $file_path = $backup['path'].'/'.$database_file; 75 75 $file_size = format_size(filesize($file_path)); 76 $file_date = date('jS F Y', substr($database_file, 0, 10));76 $file_date = gmdate('l, jS F Y @ H:i', substr($database_file, 0, 10)); 77 77 $file = fopen($file_path,'rb'); 78 78 $file_data = fread($file,filesize($file_path)); … … 107 107 $file_data."\n\n--{$mime_boundary}--\n"; 108 108 if(mail($mail_to, $mail_subject, $mail_message, $mail_header)) { 109 $text .= "<font color=\"green\">Database Backup File For $file_date Successfully E-Mailed To $mail_to</font><br />";110 } else { 111 $text = "<font color=\"red\">Unable To E-Mail Database Backup File For $file_date To $mail_to</font>";109 $text .= "<font color=\"green\">Database Backup File For '$file_date' Successfully E-Mailed To '$mail_to'</font><br />"; 110 } else { 111 $text = "<font color=\"red\">Unable To E-Mail Database Backup File For '$file_date' To '$mail_to'</font>"; 112 112 } 113 113 } else { … … 124 124 case 'Delete': 125 125 if(!empty($database_file)) { 126 $nice_file_date = date('l, jS F Y @ H:i', substr($database_file, 0, 10));126 $nice_file_date = gmdate('l, jS F Y @ H:i', substr($database_file, 0, 10)); 127 127 if(is_file($backup['path'].'/'.$database_file)) { 128 128 if(!unlink($backup['path'].'/'.$database_file)) { … … 175 175 $no++; 176 176 $database_text = substr($database_files[$i], 13); 177 $date_text = date('l, jS F Y @ H:i', substr($database_files[$i], 0, 10));177 $date_text = gmdate('l, jS F Y @ H:i', substr($database_files[$i], 0, 10)); 178 178 $size_text = filesize($backup['path'].'/'.$database_files[$i]); 179 179 echo "<tr $style>\n<td>$no</td>"; wp-dbmanager/trunk/readme.txt
r5595 r5639 14 14 - FIXED: Run Query Box Too Big 15 15 - FIXED: Header Sent Error 16 - FIXED: Extra Slashes For Mysql/Mysql Dump Path 16 - FIXED: Extra Slashes For Mysql/Mysql Dump Path 17 - FIXED: Mismatch Date Due To GMT 17 18 18 19 // Version 2.02 (01-03-2006)
