' . sprintf(__('%s is not a valid backup path', 'wp-dbmanager'), stripslashes( $backup['path'] ) ) . '

'; } else if( dbmanager_is_valid_path( $backup['mysqlpath'] ) === 0 ) { $text = '

' . sprintf(__('%s is not a valid mysql path', 'wp-dbmanager'), stripslashes( $backup['mysqlpath'] ) ) . '

'; } else { passthru( $backup['command'], $error ); } if($error) { $text = '

'.sprintf(__('Database On \'%s\' Failed To Restore', 'wp-dbmanager'), $nice_file_date).'

'; } else { $text = '

'.sprintf(__('Database On \'%s\' Restored Successfully', 'wp-dbmanager'), $nice_file_date).'

'; } } else { $text = '

'.__('No Backup Database File Selected', 'wp-dbmanager').'

'; } break; case __('E-Mail', 'wp-dbmanager'): if(!empty($database_file)) { $to = ( !empty( $_POST['email_to'] ) ? sanitize_email( $_POST['email_to'] ) : get_option( 'admin_email' ) ); if( dbmanager_email_backup( $to, $backup['path'].'/'.$database_file ) ) { $text .= '

'.sprintf(__('Database Backup File For \'%s\' Successfully E-Mailed To \'%s\'', 'wp-dbmanager'), $nice_file_date, $to).'

'; } else { $text = '

'.sprintf(__('Unable To E-Mail Database Backup File For \'%s\' To \'%s\'', 'wp-dbmanager'), $nice_file_date, $to).'

'; } } else { $text = '

'.__('No Backup Database File Selected', 'wp-dbmanager').'

'; } break; case __('Download', 'wp-dbmanager'): if(empty($database_file)) { $text = '

'.__('No Backup Database File Selected', 'wp-dbmanager').'

'; } break; case __('Delete', 'wp-dbmanager'): if(!empty($database_file)) { if(is_file($backup['path'].'/'.$database_file)) { if(!unlink($backup['path'].'/'.$database_file)) { $text .= '

'.sprintf(__('Unable To Delete Database Backup File On \'%s\'', 'wp-dbmanager'), $nice_file_date).'

'; } else { $text .= '

'.sprintf(__('Database Backup File On \'%s\' Deleted Successfully', 'wp-dbmanager'), $nice_file_date).'

'; } } else { $text = '

'.sprintf(__('Invalid Database Backup File On \'%s\'', 'wp-dbmanager'), $nice_file_date).'

'; } } else { $text = '

'.__('No Backup Database File Selected', 'wp-dbmanager').'

'; } break; } } ?>
'.$text.'
'; } ?>

-1; $i--) { if($no%2 == 0) { $style = ''; } else { $style = ' class="alternate"'; } $no++; $database_text = substr($database_files[$i], 13); $date_text = mysql2date(sprintf(__('%s @ %s', 'wp-dbmanager'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', substr($database_files[$i], 0, 10))); $size_text = filesize($backup['path'].'/'.$database_files[$i]); echo "\n"; echo ''; echo ""; echo ""; echo ''; echo "\n\n"; $totalsize += $size_text; } } else { echo ''; } } else { echo ''; } ?>
'.number_format_i18n($no).'$database_text$date_text'.format_size($size_text).'
'.__('There Are No Database Backup Files Available.', 'wp-dbmanager').'
'.__('There Are No Database Backup Files Available.', 'wp-dbmanager').'