Changeset 1366331
- Timestamp:
- 03/08/2016 03:32:52 AM (8 years ago)
- Location:
- wp-db-backup/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-db-backup/trunk/README.markdown
r1194527 r1366331 5 5 Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/ 6 6 Tags: mysql, database, backup, cron 7 Requires at least: 2.0.38 Tested up to: 4. 2.29 Stable tag: 2.3. 07 Requires at least: 8 Tested up to: 4..2 9 Stable tag: 2.3. 10 10 11 11 On-demand backup of your WordPress database. -
wp-db-backup/trunk/readme.txt
r1194527 r1366331 3 3 Donate link: http://austinmatzko.com/wordpress-plugins/wp-db-backup/ 4 4 Tags: mysql, database, backup, cron 5 Requires at least: 2.0.36 Tested up to: 4. 2.27 Stable tag: 2.3. 05 Requires at least: 6 Tested up to: 4..2 7 Stable tag: 2.3. 8 8 9 9 On-demand backup of your WordPress database. ��� … 18 18 NO WARRANTY. 19 19 20 Copyright (c) 201 5Austin Matzko20 Copyright (c) 201 Austin Matzko 21 21 22 22 [Source Code on GitHub](https://github.com/matzko/wp-db-backup) -
wp-db-backup/trunk/wp-db-backup.php
r1194527 r1366331 6 6 Author: Austin Matzko 7 7 Author URI: http://austinmatzko.com/ 8 Version: 2.3. 09 10 Copyright 201 5Austin Matzko (email : austin at pressedcode.com)8 Version: 2.3. 9 10 Copyright 201 Austin Matzko (email : austin at pressedcode.com) 11 11 12 12 This program is free software; you can redistribute it and/or modify … … 299 299 break; 300 300 case 'smtp': 301 if ( get_option('wpdb_backup_recip') != $_POST['backup_recipient'] ) { 302 update_option('wpdb_backup_recip', $_POST['backup_recipient'] ); 301 $email = sanitize_text_field(wp_unslash($_POST['backup_recipient'])); 302 if ( get_option('wpdb_backup_recip') != $email) { 303 update_option('wpdb_backup_recip', $email); 303 304 } 304 305 echo ' 305 setProgress("' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $ _POST['backup_recipient']) . '");306 setProgress("' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $) . '"); 306 307 window.onbeforeunload = null; 307 fram.src = "' . $download_uri . '&via=email&recipient=' . $ _POST['backup_recipient']. '";308 fram.src = "' . $download_uri . '&via=email&recipient=' . $ . '"; 308 309 '; 309 310 break; … … 432 433 if (false !== $this->backup_file) { 433 434 if ('smtp' == $_POST['deliver']) { 434 $this->deliver_backup($this->backup_file, $_POST['deliver'], $_POST['backup_recipient'], 'main'); 435 if ( get_option('wpdb_backup_recip') != $_POST['backup_recipient'] ) { 436 update_option('wpdb_backup_recip', $_POST['backup_recipient'] ); 435 $email = sanitize_text_field(wp_unslash($_POST['backup_recipient'])); 436 $this->deliver_backup($this->backup_file, $_POST['deliver'], $email, 'main'); 437 if ( get_option('wpdb_backup_recip') != $email ) { 438 update_option('wpdb_backup_recip', $email ); 437 439 } 438 440 wp_redirect($this->page_url); … … 865 867 $values = array(); 866 868 foreach ($row as $key => $value) { 867 if ( $ints[strtolower($key)]) {869 if () { 868 870 // make sure there are no blank spots in the insert syntax, 869 871 // yet try to avoid quotation marks around integers … … 1148 1150 break; 1149 1151 case 'smtp': 1150 if (! is_email($_POST['backup_recipient'])) { 1152 $email = sanitize_text_field(wp_unslash($_POST['backup_recipient'])); 1153 if (! is_email($email)) { 1151 1154 $feedback .= get_option('admin_email'); 1152 1155 } else { 1153 $feedback .= $ _POST['backup_recipient'];1156 $feedback .= $; 1154 1157 } 1155 1158 $feedback = '<br />' . sprintf(__('Your backup has been emailed to %s','wp-db-backup'), $feedback);
Note: See TracChangeset
for help on using the changeset viewer.