Changeset 3218170
- Timestamp:
- 01/07/2025 08:29:55 AM (14 months ago)
- Location:
- wp-reroute-email/trunk
- Files:
-
- 9 added
- 9 deleted
- 6 edited
-
db_log.php (modified) (1 diff)
-
includes/db_log_list.class.php (modified) (3 diffs)
-
languages/wp-reroute-email-bn_BD.mo (added)
-
languages/wp-reroute-email-bn_BD.po (added)
-
languages/wp-reroute-email-es_ES.mo (added)
-
languages/wp-reroute-email-es_ES.po (added)
-
languages/wp-reroute-email-id_ID.mo (added)
-
languages/wp-reroute-email-id_ID.po (added)
-
languages/wp-reroute-email-sr_RS.mo (added)
-
languages/wp-reroute-email-sr_RS.po (added)
-
languages/wp-reroute-email.pot (added)
-
languages/wp_reroute_email-bn_BD.mo (deleted)
-
languages/wp_reroute_email-bn_BD.po (deleted)
-
languages/wp_reroute_email-es_ES.mo (deleted)
-
languages/wp_reroute_email-es_ES.po (deleted)
-
languages/wp_reroute_email-id_ID.mo (deleted)
-
languages/wp_reroute_email-id_ID.po (deleted)
-
languages/wp_reroute_email-sr_RS.mo (deleted)
-
languages/wp_reroute_email-sr_RS.po (deleted)
-
languages/wp_reroute_email.pot (deleted)
-
readme.txt (modified) (2 diffs)
-
settings.php (modified) (7 diffs)
-
test.php (modified) (2 diffs)
-
wp-reroute-email.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-reroute-email/trunk/db_log.php
r2918564 r3218170 17 17 <table class="message-table"> 18 18 <tr> 19 <th><?php esc_html_e('Sent On', 'wp _reroute_email'); ?>:</th>19 <th><?php esc_html_e('Sent On', 'wp-reroute-email'); ?>:</th> 20 20 <td><?php esc_html_e(get_date_from_gmt( $item->sent_on, 'j F, Y H:i:s' )); ?></td> 21 21 </tr> 22 22 <tr> 23 <th><?php esc_html_e('To', 'wp _reroute_email'); ?>:</th>23 <th><?php esc_html_e('To', 'wp-reroute-email'); ?>:</th> 24 24 <td><?php esc_html_e($item->recipients_to); ?></td> 25 25 </tr> 26 26 <tr> 27 <th><?php esc_html_e('CC', 'wp _reroute_email'); ?>:</th>27 <th><?php esc_html_e('CC', 'wp-reroute-email'); ?>:</th> 28 28 <td><?php esc_html_e($item->recipients_cc); ?></td> 29 29 </tr> 30 30 <tr> 31 <th><?php esc_html_e('BCC', 'wp _reroute_email'); ?>:</th>31 <th><?php esc_html_e('BCC', 'wp-reroute-email'); ?>:</th> 32 32 <td><?php esc_html_e($item->recipients_bcc); ?></td> 33 33 </tr> 34 34 <tr> 35 <th><?php esc_html_e('Subject', 'wp _reroute_email'); ?>:</th>35 <th><?php esc_html_e('Subject', 'wp-reroute-email'); ?>:</th> 36 36 <td><?php esc_html_e($item->subject); ?></td> 37 37 </tr> 38 38 <tr> 39 39 <td> </td> 40 <td><a href="javascript:;" id="view-original" class="orgview"><?php esc_html_e('View Original Message', 'wp _reroute_email');?></a></td>40 <td><a href="javascript:;" id="view-original" class="orgview"><?php esc_html_e('View Original Message', 'wp-reroute-email');?></a></td> 41 41 </tr> 42 42 <tr> -
wp-reroute-email/trunk/includes/db_log_list.class.php
r2933637 r3218170 25 25 $page = sanitize_text_field(filter_input(INPUT_GET, 'page')); 26 26 $actions = array( 27 'view' => sprintf('<a href="?page=%s&tab=details&action=%s&logid=%s">' . esc_attr__('View Message', 'wp _reroute_email') . '</a>', esc_attr($page),'view', esc_attr($item->id))27 'view' => sprintf('<a href="?page=%s&tab=details&action=%s&logid=%s">' . esc_attr__('View Message', 'wp-reroute-email') . '</a>', esc_attr($page),'view', esc_attr($item->id)) 28 28 ); 29 29 … … 38 38 $columns = array( 39 39 'id' => 'ID', 40 'subject' => esc_attr__('Subject', 'wp _reroute_email'),41 'recipients_to' => esc_attr__('Sent To', 'wp _reroute_email'),42 'sent_on' => esc_attr__('Sent On', 'wp _reroute_email')40 'subject' => esc_attr__('Subject', 'wp-reroute-email'), 41 'recipients_to' => esc_attr__('Sent To', 'wp-reroute-email'), 42 'sent_on' => esc_attr__('Sent On', 'wp-reroute-email') 43 43 ); 44 44 … … 56 56 function get_bulk_actions() { 57 57 $actions = array( 58 'delete_all_messages' => esc_attr__('Delete All Messages', 'wp _reroute_email')58 'delete_all_messages' => esc_attr__('Delete All Messages', 'wp-reroute-email') 59 59 ); 60 60 -
wp-reroute-email/trunk/readme.txt
r3119176 r3218170 2 2 Contributors: msh134 3 3 Tags: mail, email, developer tool, development server 4 Tested up to: 6. 5.55 Stable tag: 1.5. 04 Tested up to: 6.7.1 5 Stable tag: 1.5.1 6 6 License: GPLv2 or later 7 7 … … 33 33 34 34 == Changelog == 35 = 1.5.1 = 36 * Updated language setup and files. 37 * Compatibility checked. 38 35 39 = 1.5.0 = 36 40 * Fixed the vulnerability - Unauthenticated Stored Cross-Site Scripting via Email Subject. -
wp-reroute-email/trunk/settings.php
r2918564 r3218170 24 24 25 25 if($enable && !$email){ 26 print '<div id="message" class="error fade"><p>'. esc_html__('Enter at least one email address.', 'wp _reroute_email') . '</p></div>';26 print '<div id="message" class="error fade"><p>'. esc_html__('Enter at least one email address.', 'wp-reroute-email') . '</p></div>'; 27 27 $error = true; 28 28 } … … 36 36 update_option('wp_reroute_email_db_log_option', $db_log_option); 37 37 update_option('wp_reroute_email_ignored_subjects', $ignored_subjects); 38 print '<div id="message" class="updated fade"><p>'. esc_html__('Settings saved.', 'wp _reroute_email') . '</p></div>';38 print '<div id="message" class="updated fade"><p>'. esc_html__('Settings saved.', 'wp-reroute-email') . '</p></div>'; 39 39 } 40 40 } … … 46 46 $enable_db_log = get_option('wp_reroute_email_enable_db_log', 0); 47 47 $db_log_option = get_option('wp_reroute_email_db_log_option', 1); 48 $ignored_subjects = get_option('wp_reroute_email_ignored_subjects', ' ');48 $ignored_subjects = get_option('wp_reroute_email_ignored_subjects', 'Password reset'); 49 49 } 50 50 ?> … … 53 53 <h2>WP Reroute Email</h2> 54 54 <h2 class="nav-tab-wrapper"> 55 <a href="?page=wp-reroute-email%2Fsettings.php" class="nav-tab <?php esc_attr_e(empty($tab) ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Settings', 'wp _reroute_email'); ?></a>56 <a href="?page=wp-reroute-email%2Fsettings.php&tab=log" class="nav-tab <?php esc_attr_e($tab == 'log' ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Logs', 'wp _reroute_email'); ?></a>57 <a href="?page=wp-reroute-email%2Fsettings.php&tab=test" class="nav-tab <?php esc_attr_e($tab == 'test' ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Test', 'wp _reroute_email'); ?></a>55 <a href="?page=wp-reroute-email%2Fsettings.php" class="nav-tab <?php esc_attr_e(empty($tab) ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Settings', 'wp-reroute-email'); ?></a> 56 <a href="?page=wp-reroute-email%2Fsettings.php&tab=log" class="nav-tab <?php esc_attr_e($tab == 'log' ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Logs', 'wp-reroute-email'); ?></a> 57 <a href="?page=wp-reroute-email%2Fsettings.php&tab=test" class="nav-tab <?php esc_attr_e($tab == 'test' ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Test', 'wp-reroute-email'); ?></a> 58 58 <?php if($tab == 'details'): ?> 59 <a href="javascript:;" class="nav-tab <?php esc_attr_e($tab == 'details' ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Message Details', 'wp _reroute_email'); ?></a>59 <a href="javascript:;" class="nav-tab <?php esc_attr_e($tab == 'details' ? 'nav-tab-active' : ''); ?>"><?php esc_html_e('Message Details', 'wp-reroute-email'); ?></a> 60 60 <?php endif; ?> 61 61 </h2> … … 67 67 <tbody> 68 68 <tr> 69 <th scope="row"><?php esc_html_e('Enable rerouting', 'wp _reroute_email'); ?></th>69 <th scope="row"><?php esc_html_e('Enable rerouting', 'wp-reroute-email'); ?></th> 70 70 <td> 71 71 <input type="checkbox" <?php esc_attr_e($enable ? 'checked="checked"' : ''); ?> value="1" name="enable_reroute" id="enable_reroute"> … … 78 78 <tbody> 79 79 <tr> 80 <th scope="row"><?php esc_html_e('Email address', 'wp _reroute_email'); ?></th>80 <th scope="row"><?php esc_html_e('Email address', 'wp-reroute-email'); ?></th> 81 81 <td> 82 82 <input type="text" name="email_address" size="60" value="<?php esc_attr_e($email); ?>"> 83 <br><span class="description"><?php esc_html_e('Provide a comma-delimited list of email addresses to pass through.', 'wp _reroute_email'); ?></span>83 <br><span class="description"><?php esc_html_e('Provide a comma-delimited list of email addresses to pass through.', 'wp-reroute-email'); ?></span> 84 84 </td> 85 85 </tr> 86 86 <tr> 87 <th scope="row"><?php esc_html_e('Append text', 'wp _reroute_email'); ?></th>87 <th scope="row"><?php esc_html_e('Append text', 'wp-reroute-email'); ?></th> 88 88 <td> 89 89 <input type="text" name="append_msg" size="60" value="<?php esc_attr_e($append_msg); ?>"> 90 <br><span class="description"><?php esc_html_e('This text will be appended with the mail body. Leave it blank if you do not want to append anything.', 'wp _reroute_email'); ?></span>90 <br><span class="description"><?php esc_html_e('This text will be appended with the mail body. Leave it blank if you do not want to append anything.', 'wp-reroute-email'); ?></span> 91 91 </td> 92 92 </tr> 93 93 <tr> 94 <th scope="row"><?php esc_html_e('Append recipient email addresses', 'wp _reroute_email'); ?></th>94 <th scope="row"><?php esc_html_e('Append recipient email addresses', 'wp-reroute-email'); ?></th> 95 95 <td> 96 96 <input type="checkbox" <?php esc_attr_e($append_recipient ? 'checked="checked"' : ''); ?> value="1" name="append_recipient" id="append_recipient"> 97 <br><span class="description"><?php esc_html_e('Enable this if you want to append recipient email addresses at the bottom of the email.', 'wp _reroute_email'); ?></span>97 <br><span class="description"><?php esc_html_e('Enable this if you want to append recipient email addresses at the bottom of the email.', 'wp-reroute-email'); ?></span> 98 98 </td> 99 99 </tr> 100 100 <tr> 101 <th scope="row"><?php esc_html_e('Log emails in DB', 'wp _reroute_email'); ?></th>101 <th scope="row"><?php esc_html_e('Log emails in DB', 'wp-reroute-email'); ?></th> 102 102 <td> 103 103 <input type="checkbox" <?php esc_attr_e($enable_db_log ? 'checked="checked"' : ''); ?> name="enable_db_log" id="enable_db_log" value="1"> 104 <br><span class="description"><?php esc_html_e('Enable this if you want to store a copy of the email in database. You may also skip email sending and store email only to database.', 'wp _reroute_email'); ?></span>104 <br><span class="description"><?php esc_html_e('Enable this if you want to store a copy of the email in database. You may also skip email sending and store email only to database.', 'wp-reroute-email'); ?></span> 105 105 <div class="log-email-options"> 106 <strong><?php esc_html_e('Select an option', 'wp _reroute_email'); ?></strong><br>107 <input type="radio" <?php esc_attr_e($db_log_option == 1 ? 'checked="checked"' : ''); ?> name="enable_db_log_option" id="enable_db_log_option_1" value="1"> <label for="enable_db_log_option_1"><?php esc_html_e('Store a copy of email in database and send email', 'wp _reroute_email'); ?></label><br>108 <input type="radio" <?php esc_attr_e($db_log_option == 2 ? 'checked="checked"' : ''); ?> name="enable_db_log_option" id="enable_db_log_option_2" value="2"> <label for="enable_db_log_option_2"><?php esc_html_e('Store a copy of email in database and do not send email', 'wp _reroute_email'); ?></label>106 <strong><?php esc_html_e('Select an option', 'wp-reroute-email'); ?></strong><br> 107 <input type="radio" <?php esc_attr_e($db_log_option == 1 ? 'checked="checked"' : ''); ?> name="enable_db_log_option" id="enable_db_log_option_1" value="1"> <label for="enable_db_log_option_1"><?php esc_html_e('Store a copy of email in database and send email', 'wp-reroute-email'); ?></label><br> 108 <input type="radio" <?php esc_attr_e($db_log_option == 2 ? 'checked="checked"' : ''); ?> name="enable_db_log_option" id="enable_db_log_option_2" value="2"> <label for="enable_db_log_option_2"><?php esc_html_e('Store a copy of email in database and do not send email', 'wp-reroute-email'); ?></label> 109 109 </div> 110 110 </td> 111 111 </tr> 112 112 <tr> 113 <th scope="row"><?php esc_html_e('Ignore emails containing these texts in subjects', 'wp _reroute_email'); ?></th>113 <th scope="row"><?php esc_html_e('Ignore emails containing these texts in subjects', 'wp-reroute-email'); ?></th> 114 114 <td> 115 115 <textarea name="ignored_subjects" id="ignored_subjects" rows="8" cols="100"><?php esc_attr_e($ignored_subjects); ?></textarea> 116 <br><span class="description"><?php esc_html_e('Provide a comma, semicolon, or newline-delimited list of message subjects or part of the subjects to be ignored when rerouting.', 'wp _reroute_email'); ?></span>116 <br><span class="description"><?php esc_html_e('Provide a comma, semicolon, or newline-delimited list of message subjects or part of the subjects to be ignored when rerouting.', 'wp-reroute-email'); ?></span> 117 117 </td> 118 118 </tr> … … 120 120 </table> 121 121 </div> 122 <p class="submit"><input type="submit" value="<?php esc_html_e('Save Changes', 'wp _reroute_email'); ?>" class="button blue"></p>122 <p class="submit"><input type="submit" value="<?php esc_html_e('Save Changes', 'wp-reroute-email'); ?>" class="button blue"></p> 123 123 </form> 124 124 <?php elseif($tab == 'log' || $tab == 'details'): ?> -
wp-reroute-email/trunk/test.php
r2918564 r3218170 17 17 if($to && $subject && $message){ 18 18 wp_mail($to, $subject, $message); 19 print '<div id="message" class="updated fade"><p>'. esc_html__('Email sent.', 'wp _reroute_email') . '</p></div>';19 print '<div id="message" class="updated fade"><p>'. esc_html__('Email sent.', 'wp-reroute-email') . '</p></div>'; 20 20 } 21 21 } 22 22 ?> 23 <p><?php esc_html_e('You may test your settings by sending an email using this form.', 'wp _reroute_email');?></p>23 <p><?php esc_html_e('You may test your settings by sending an email using this form.', 'wp-reroute-email');?></p> 24 24 <form action="" method="POST"> 25 25 <?php wp_nonce_field( 'wpreroute_test_settings', 'settings_test_nonce' ); ?> … … 27 27 <tbody> 28 28 <tr> 29 <th scope="row"><?php esc_html_e('To', 'wp _reroute_email'); ?></th>29 <th scope="row"><?php esc_html_e('To', 'wp-reroute-email'); ?></th> 30 30 <td><input type="email" name="to_email" size="60" value="<?php esc_attr_e('[email protected]');?>"></td> 31 31 </tr> 32 32 <tr> 33 <th scope="row"><?php esc_html_e('Subject', 'wp _reroute_email'); ?></th>33 <th scope="row"><?php esc_html_e('Subject', 'wp-reroute-email'); ?></th> 34 34 <td><input type="text" name="subject" size="60" value="<?php esc_attr_e('WP Reroute Email Test Message');?>"></td> 35 35 </tr> 36 36 <tr> 37 <th scope="row"><?php esc_html_e('Message', 'wp _reroute_email'); ?></th>37 <th scope="row"><?php esc_html_e('Message', 'wp-reroute-email'); ?></th> 38 38 <td><textarea name="message" rows="5" cols="70"><?php esc_attr_e('This is a test message from WP Reroute Email.');?></textarea></td> 39 39 </tr> 40 40 <tr> 41 <td colspan="2"><input type="submit" value=" <?php esc_attr_e('Send', 'wp _reroute_email'); ?> " class="button blue"></td>41 <td colspan="2"><input type="submit" value=" <?php esc_attr_e('Send', 'wp-reroute-email'); ?> " class="button blue"></td> 42 42 </tr> 43 43 </tbody> -
wp-reroute-email/trunk/wp-reroute-email.php
r2933637 r3218170 4 4 * Plugin URI: http://wordpress.org/extend/plugins/wp-reroute-email/ 5 5 * Description: This plugin intercepts all outgoing emails from a WordPress site and reroutes them to a predefined configurable email address. 6 * Version: 1.5. 06 * Version: 1.5.1 7 7 * Author: Sajjad Hossain 8 8 * Author URI: http://www.sajjadhossain.com 9 9 * License: GPLv2 or later 10 * Text Domain: wp _reroute_email10 * Text Domain: wp-reroute-email 11 11 * Domain Path: /languages 12 12 */ … … 48 48 49 49 public function init() { 50 load_plugin_textdomain('wp _reroute_email', false, basename(dirname(__FILE__)) . '/languages');50 load_plugin_textdomain('wp-reroute-email', false, basename(dirname(__FILE__)) . '/languages'); 51 51 } 52 52 … … 188 188 189 189 if ($file == $this->plugin_name) { 190 $settings_link = '<a href="admin.php?page=wp-reroute-email/settings.php">' . esc_html__('Settings', 'wp _reroute_email') . '</a>';190 $settings_link = '<a href="admin.php?page=wp-reroute-email/settings.php">' . esc_html__('Settings', 'wp-reroute-email') . '</a>'; 191 191 array_unshift($links, $settings_link); 192 192 } … … 288 288 289 289 if($db_log_option == 1){ 290 $extra = esc_html__('All emails will be stored in database after sending.', 'wp _reroute_email');290 $extra = esc_html__('All emails will be stored in database after sending.', 'wp-reroute-email'); 291 291 } 292 292 else{ 293 $extra = esc_html__('Emails will only be stored in database and no email will be sent.', 'wp _reroute_email');293 $extra = esc_html__('Emails will only be stored in database and no email will be sent.', 'wp-reroute-email'); 294 294 } 295 295 } 296 296 else if(get_option('wp_reroute_email_address')){ 297 $extra = sprintf(esc_html__('All emails from the site will be sent to <strong>%1$s</strong>', 'wp _reroute_email'), get_option('wp_reroute_email_address'));297 $extra = sprintf(esc_html__('All emails from the site will be sent to <strong>%1$s</strong>', 'wp-reroute-email'), get_option('wp_reroute_email_address')); 298 298 } 299 299 300 300 $admin_url = admin_url(); 301 301 echo '<div class="error"> <p>' 302 . sprintf(esc_html__('This site has %1$sWP Reroute Email%2$s enabled.', 'wp _reroute_email'), '<strong>', '</strong>')302 . sprintf(esc_html__('This site has %1$sWP Reroute Email%2$s enabled.', 'wp-reroute-email'), '<strong>', '</strong>') 303 303 . ($extra ? ' ' . $extra . ' ' : '') 304 . sprintf(esc_html__('To change settings go %1$shere%2$s.', 'wp _reroute_email'), '<a href="' . $admin_url . 'admin.php?page=wp-reroute-email%2Fsettings.php">', '</a>')304 . sprintf(esc_html__('To change settings go %1$shere%2$s.', 'wp-reroute-email'), '<a href="' . $admin_url . 'admin.php?page=wp-reroute-email%2Fsettings.php">', '</a>') 305 305 . '</p></div>'; 306 306 }
Note: See TracChangeset
for help on using the changeset viewer.