' . 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; } } ?>