Changeset 5639

Show
Ignore:
Timestamp:
03/24/06 09:46:37 (2 years ago)
Author:
GamerZ
Message:

Mismatch Date Due to GMT

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-dbmanager/trunk/dbmanager/database-backup.php

    r5595 r5639  
    2121require('database-config.php'); 
    2222 
    23  
    2423### Form Processing  
    2524if($_POST['do']) { 
     
    3938                  passthru($backup['command'], $error); 
    4039                  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>"; 
    4241                  } elseif(filesize($backup['filepath']) == 0) { 
    4342                        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>"; 
    4544                  } 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>"; 
    4746                  } 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>"; 
    4948                  } 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>"; 
    5150                  } 
    5251                  break; 
     
    171170            <tr style='background-color: #eee'> 
    172171                  <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> 
    174173            </tr> 
    175174            <tr style='background-color: none'> 
  • wp-dbmanager/trunk/dbmanager/database-config.php

    r5258 r5639  
    2727$base_name = plugin_basename('dbmanager/database-manager.php'); 
    2828$base_page = 'admin.php?page='.$base_name; 
     29$current_date = gmdate('l, jS F Y @ H:i', (time() + (get_settings('gmt_offset') * 3600))); 
    2930$backup = array(); 
    3031$backup_options = get_settings('dbmanager_options'); 
  • wp-dbmanager/trunk/dbmanager/database-manage.php

    r5595 r5639  
    4848      // Lets Prepare The Variables 
    4949      $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)); 
    5151 
    5252      // Decide What To Do 
     
    7474                        $file_path = $backup['path'].'/'.$database_file; 
    7575                        $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)); 
    7777                        $file = fopen($file_path,'rb'); 
    7878                        $file_data = fread($file,filesize($file_path)); 
     
    107107                                                            $file_data."\n\n--{$mime_boundary}--\n"; 
    108108                        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>"; 
    112112                        } 
    113113                  } else { 
     
    124124            case 'Delete': 
    125125                  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)); 
    127127                        if(is_file($backup['path'].'/'.$database_file)) { 
    128128                              if(!unlink($backup['path'].'/'.$database_file)) { 
     
    175175                                          $no++; 
    176176                                          $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)); 
    178178                                          $size_text = filesize($backup['path'].'/'.$database_files[$i]); 
    179179                                          echo "<tr $style>\n<td>$no</td>"; 
  • wp-dbmanager/trunk/readme.txt

    r5595 r5639  
    1414- FIXED: Run Query Box Too Big 
    1515- 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 
    1718 
    1819// Version 2.02 (01-03-2006)