| 1 |
<?php |
| 2 |
/** |
| 3 |
* Destination email template. |
| 4 |
* |
| 5 |
* @package wpdbbkp |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
$wpdbbkp_remove_local_backup = get_option( 'wp_db_remove_local_backup' ); |
| 13 |
if ( 1 === (int) $wpdbbkp_remove_local_backup ) { |
| 14 |
$wpdbbkp_remove_local_backup_message = ' Removed local backup file'; |
| 15 |
} else { |
| 16 |
$wpdbbkp_remove_local_backup_message = 'You can download the backup from the your site admin dashboard'; |
| 17 |
} |
| 18 |
$wpdbbkp_unsub_token = get_option('wpdbbkp_unsubscribe_token',false); |
| 19 |
if(!$wpdbbkp_unsub_token){ |
| 20 |
$wpdbbkp_unsub_token = hash("sha256", wp_rand(999,99999999)); |
| 21 |
update_option('wpdbbkp_unsubscribe_token',$wpdbbkp_unsub_token ,false); |
| 22 |
} |
| 23 |
$wpdbbkp_allowed_tags = array( |
| 24 |
'b' => array(), |
| 25 |
'br' => array(), |
| 26 |
'strong' => array() |
| 27 |
); |
| 28 |
$wpdbbkp_message = '<div bgcolor="#e3e3e3" style="font-family:Arial;color:#707070;font-size:12px;background-color:#e3e3e3;margin:0;padding:0px"> |
| 29 |
<div align="center" style="font-family:Arial;width:600px;background-color:#ffffff;margin:0 auto;padding:0px"> |
| 30 |
<div style="font-family:Arial;border-bottom-color:#cccccc;border-bottom-width:1px;border-bottom-style:solid;background-color:#eee;margin:0px;padding:4px"> |
| 31 |
<a href="https://backupforwp.com/"><img src="'. esc_url( WPDB_PLUGIN_URL .'/assets/images/wp-database-backup.png') /* phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage */ .'" alt="Backup for WP" /></a> |
| 32 |
</div> |
| 33 |
|
| 34 |
<div align="left" style="font-family:Arial;text-align:left;margin:0px;padding:10px"> |
| 35 |
<div> |
| 36 |
Dear <strong style="font-family:Arial;margin:0px;padding:0px">WP Database Backup User</strong>, <br><br> |
| 37 |
|
| 38 |
' . esc_html__('Database Backup Created Successfully on ','wpdbbkp') . esc_url($site_url) . '. |
| 39 |
|
| 40 |
<br><br> |
| 41 |
' . esc_html($wpdbbkp_remove_local_backup_message) . '. |
| 42 |
<br><br> |
| 43 |
<h3 style="font-family:Arial;font-size:14px;font-weight:bold;margin:0 0 5px 5px;padding:0px">'.esc_html__('Details as follow','wpdbbkp').'</h3> |
| 44 |
|
| 45 |
|
| 46 |
<table width="100%" cellspacing="0" cellpadding="0" style="font-family:Arial;width:100%;border-collapse:collapse;border-spacing:0;margin:0px;padding:0px"> |
| 47 |
<tbody><tr style="font-family:Arial;margin:0px;padding:0px"> |
| 48 |
<th bgcolor="#007bad" align="center" style="width:30px;font-family:Arial;text-align:center;color:#ffffff;font-size:11px;background-color:#007bad;margin:0px;padding:5px 2px;border:1px solid #007bad">#</th> |
| 49 |
<th bgcolor="#007bad" align="center" style="width:250px;font-family:Arial;text-align:center;color:#ffffff;font-size:11px;background-color:#007bad;margin:0px;padding:5px 2px;border:1px solid #007bad">'.esc_html__('File Name','wpdbbkp').'</th> |
| 50 |
<th bgcolor="#007bad" align="center" style="font-family:Arial;text-align:center;color:#ffffff;font-size:11px;background-color:#007bad;margin:0px;padding:5px 2px;border:1px solid #007bad">'.esc_html__('Size','wpdbbkp').'</th> |
| 51 |
|
| 52 |
</tr> |
| 53 |
<tr style="font-family:Arial;margin:0px;padding:0px"> |
| 54 |
<td style="font-family:Arial;margin:0px;padding:2px 5px;border:1px solid #007bad;text-align:right">1</td> |
| 55 |
<td style="font-family:Arial;margin:0px;padding:2px 5px;border:1px solid #007bad">' . esc_html($filename) . '</td> |
| 56 |
<td style="font-family:Arial;margin:0px;padding:2px 5px;border:1px solid #007bad">' . esc_html(WPDBBackupEmail::wp_db_backup_format_bytes( $filesze )) . '</td> |
| 57 |
|
| 58 |
</tr> |
| 59 |
|
| 60 |
</tbody></table><br> |
| 61 |
<p>' . wp_kses($args[2], $wpdbbkp_allowed_tags) . '</p> |
| 62 |
|
| 63 |
<br> |
| 64 |
|
| 65 |
'.esc_html__('Thank you for using WP Database Backup Plugin.','wpdbbkp').' |
| 66 |
<br> |
| 67 |
'.esc_html__('If you like','wpdbbkp').' <b> '.esc_html__('WP Database Backup','wpdbbkp').'</b> '.esc_html__('please leave us a','wpdbbkp').' <a href="'.esc_url('http://wordpress.org/support/view/plugin-reviews/wp-database-backup').'" title="'.esc_attr__('Rating','wpdbbkp').'" target="_blank" data-saferedirecturl="'.esc_url('https://www.google.com/url?hl=en&q=http://wordpress.org/support/view/plugin-reviews/wp-database-backup&source=gmail&ust=1466360448038000&usg=AFQjCNHxdc3F079wMTbRqbs8hw7tYkR6ww').'">'.esc_html__('rating','wpdbbkp').' </a> |
| 68 |
'.esc_html__('on','wpdbbkp').' <a href="'.esc_url('http://wordpress.org/support/view/plugin-reviews/wp-database-backup').'" title="'.esc_attr__('Rating','wpdbbkp').'" target="_blank" data-saferedirecturl="'.esc_url('https://www.google.com/url?hl=en&q=http://wordpress.org/support/view/plugin-reviews/wp-database-backup&source=gmail&ust=1466360448038000&usg=AFQjCNHxdc3F079wMTbRqbs8hw7tYkR6ww').'">'.esc_html__('WordPress.org','wpdbbkp').' </a> |
| 69 |
|
| 70 |
</div> |
| 71 |
</div> |
| 72 |
|
| 73 |
<div style="font-family:Arial;border-top-style:solid;border-top-color:#cccccc;border-top-width:1px;color:#707070;font-size:12px;background-color:#efefef;margin:0px;padding:15px"> |
| 74 |
<table width="100%" cellspacing="0" cellpadding="0" style="font-family:Arial;color:#707070;font-size:12px;margin:0px;padding:0px"> |
| 75 |
<tbody><tr style="font-family:Arial;margin:0px;padding:0px"> |
| 76 |
<td width="300" valign="top" align="center" style="font-family:Arial;margin:0px;padding:0px"> |
| 77 |
<h4 style="font-family:Arial;margin:0 0 5px;padding:0px">Contacts</h4> |
| 78 |
<dl style="font-family:Arial;font-size:16px;font-weight:bold;text-align:left;margin:0px 10px 10px;padding:0px"> |
| 79 |
<dt style="font-family:Arial;font-size:13px;font-weight:bold;margin:0px;padding:0px"> |
| 80 |
'.esc_html__('Tech Support:','wpdbbkp').' |
| 81 |
</dt> |
| 82 |
<dd style="font-family:Arial;font-weight:normal;font-size:12px;margin:0 0 0 15px;padding:0px"> |
| 83 |
'.esc_url('https://backupforwp.com/support/').' </dd> |
| 84 |
</dl> |
| 85 |
</td> |
| 86 |
</tr> |
| 87 |
</tbody></table> |
| 88 |
</div> |
| 89 |
|
| 90 |
<div style="font-family:Arial;border-top-width:1px;border-top-color:#cccccc;border-top-style:solid;background-color:#eee;margin:0px;padding:10px"> |
| 91 |
'.esc_html__('You\'re receiving this email because you have active Email Notification on your site','wpdbbkp').'(' . esc_url($site_url) . '). |
| 92 |
<br>'.esc_html__('If you don\'t like to receive a Email Notification then ','wpdbbkp').'<a href="'.esc_url(admin_url('admin-ajax.php?action=wpdbbkp_email_unsubscribe&unsubscribe_token='.esc_attr($wpdbbkp_unsub_token))).'"> '.esc_html__('Click Here to unsubcribe','wpdbbkp').'</a>. |
| 93 |
<div class="yj6qo"></div><div class="adL"> |
| 94 |
</div></div><div class="adL"> |
| 95 |
</div></div><div class="adL"> |
| 96 |
</div></div>'; |
| 97 |
|