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