| 1 |
<?php |
| 2 |
/** |
| 3 |
* Destination file. |
| 4 |
* |
| 5 |
* @package wpdbbkp |
| 6 |
*/ |
| 7 |
|
| 8 |
$wpdbbkp_ftp_enabled = get_option( 'wp_db_backup_destination_FTP',null ); |
| 9 |
$wpdbbkp_ftp_host = get_option( 'backupbreeze_ftp_host',null ); |
| 10 |
$wpdbbkp_ftp_user = get_option( 'backupbreeze_ftp_user',null ); |
| 11 |
$wpdbbkp_ftp_pass = get_option( 'backupbreeze_ftp_pass',null ); |
| 12 |
$wpdbbkp_ftp_status = '<label><b>Status</b>: Not Configured </label> '; |
| 13 |
if($wpdbbkp_ftp_enabled==1 && !empty($wpdbbkp_ftp_host) && !empty($wpdbbkp_ftp_user) && !empty($wpdbbkp_ftp_pass)) |
| 14 |
{ |
| 15 |
$wpdbbkp_ftp_status='<label><b>Status</b>: <span class="dashicons dashicons-yes-alt" style="color:green;font-size:16px" title="Destination enabled"></span><span class="configured">Configured </span> </label> '; |
| 16 |
} |
| 17 |
|
| 18 |
?> |
| 19 |
<div class="panel panel-default"> |
| 20 |
<div class="panel-heading"> |
| 21 |
<h4 class="panel-title"> |
| 22 |
<a data-toggle="collapse" data-parent="#accordion" href="#collapseI"> |
| 23 |
<h2><?php echo esc_html__('FTP/FTPS', 'wpdbbkp') ?> <?php echo $wpdbbkp_ftp_status;?> <span class="dashicons dashicons-admin-generic"></span></h2> |
| 24 |
</a> |
| 25 |
</h4> |
| 26 |
</div> |
| 27 |
<div id="collapseI" class="panel-collapse collapse"> |
| 28 |
<div class="panel-body"> |
| 29 |
<p><?php echo esc_html__('FTP/FTPS Destination Define an FTP destination connection. You can define destination which use FTP.', 'wpdbbkp') ?></p> |
| 30 |
<?php |
| 31 |
/** |
| 32 |
* Destination form. |
| 33 |
* |
| 34 |
* @package wpdbbkp |
| 35 |
*/ |
| 36 |
|
| 37 |
require plugin_dir_path( __FILE__ ) . 'ftp-form.php'; // Include file. |
| 38 |
?> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
|