Plugin Directory

Changeset 3218170


Ignore:
Timestamp:
01/07/2025 08:29:55 AM (14 months ago)
Author:
msh134
Message:

Updated language setup and files. Compatibility checked.

Location:
wp-reroute-email/trunk
Files:
9 added
9 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • wp-reroute-email/trunk/db_log.php

    r2918564 r3218170  
    1717        <table class="message-table">
    1818            <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>
    2020                <td><?php esc_html_e(get_date_from_gmt( $item->sent_on, 'j F, Y H:i:s' )); ?></td>
    2121            </tr>
    2222            <tr>
    23                 <th><?php esc_html_e('To', 'wp_reroute_email'); ?>:</th>
     23                <th><?php esc_html_e('To', 'wp-reroute-email'); ?>:</th>
    2424                <td><?php esc_html_e($item->recipients_to); ?></td>
    2525            </tr>
    2626            <tr>
    27                 <th><?php esc_html_e('CC', 'wp_reroute_email'); ?>:</th>
     27                <th><?php esc_html_e('CC', 'wp-reroute-email'); ?>:</th>
    2828                <td><?php esc_html_e($item->recipients_cc); ?></td>
    2929            </tr>
    3030            <tr>
    31                 <th><?php esc_html_e('BCC', 'wp_reroute_email'); ?>:</th>
     31                <th><?php esc_html_e('BCC', 'wp-reroute-email'); ?>:</th>
    3232                <td><?php esc_html_e($item->recipients_bcc); ?></td>
    3333            </tr>
    3434            <tr>
    35                 <th><?php esc_html_e('Subject', 'wp_reroute_email'); ?>:</th>
     35                <th><?php esc_html_e('Subject', 'wp-reroute-email'); ?>:</th>
    3636                <td><?php esc_html_e($item->subject); ?></td>
    3737            </tr>
    3838            <tr>
    3939                <td>&nbsp;</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>
    4141            </tr>
    4242            <tr>
  • wp-reroute-email/trunk/includes/db_log_list.class.php

    r2933637 r3218170  
    2525        $page = sanitize_text_field(filter_input(INPUT_GET, 'page'));
    2626        $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))
    2828        );
    2929
     
    3838        $columns = array(
    3939            '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')
    4343        );
    4444
     
    5656    function get_bulk_actions() {
    5757        $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')
    5959        );
    6060
  • wp-reroute-email/trunk/readme.txt

    r3119176 r3218170  
    22Contributors: msh134
    33Tags: mail, email, developer tool, development server
    4 Tested up to: 6.5.5
    5 Stable tag: 1.5.0
     4Tested up to: 6.7.1
     5Stable tag: 1.5.1
    66License: GPLv2 or later
    77
     
    3333
    3434== Changelog ==
     35= 1.5.1 =
     36* Updated language setup and files.
     37* Compatibility checked.
     38
    3539= 1.5.0 =
    3640* Fixed the vulnerability - Unauthenticated Stored Cross-Site Scripting via Email Subject.
  • wp-reroute-email/trunk/settings.php

    r2918564 r3218170  
    2424
    2525        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>';
    2727            $error = true;
    2828        }
     
    3636            update_option('wp_reroute_email_db_log_option', $db_log_option);
    3737            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>';
    3939        }
    4040    }
     
    4646        $enable_db_log = get_option('wp_reroute_email_enable_db_log', 0);
    4747        $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');
    4949    }
    5050?>
     
    5353    <h2>WP Reroute Email</h2>
    5454    <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>
    5858        <?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>
    6060        <?php endif; ?>
    6161    </h2>
     
    6767            <tbody>
    6868                <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>
    7070                    <td>
    7171                        <input type="checkbox" <?php esc_attr_e($enable ? 'checked="checked"' : ''); ?> value="1" name="enable_reroute" id="enable_reroute">
     
    7878                <tbody>
    7979                    <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>
    8181                        <td>
    8282                            <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>
    8484                        </td>
    8585                    </tr>
    8686                    <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>
    8888                        <td>
    8989                            <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>
    9191                        </td>
    9292                    </tr>
    9393                    <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>
    9595                        <td>
    9696                            <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>
    9898                        </td>
    9999                    </tr>
    100100                    <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>
    102102                        <td>
    103103                            <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>
    105105                            <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>
    109109                            </div>
    110110                        </td>
    111111                    </tr>
    112112                    <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>
    114114                        <td>
    115115                            <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>
    117117                        </td>
    118118                    </tr>
     
    120120            </table>
    121121        </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>
    123123    </form>
    124124    <?php elseif($tab == 'log' || $tab == 'details'): ?>
  • wp-reroute-email/trunk/test.php

    r2918564 r3218170  
    1717        if($to && $subject && $message){
    1818            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>';
    2020        }
    2121    }
    2222?>   
    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>   
    2424<form action="" method="POST">
    2525    <?php wp_nonce_field( 'wpreroute_test_settings', 'settings_test_nonce' ); ?>
     
    2727        <tbody>
    2828            <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>
    3030                <td><input type="email" name="to_email" size="60" value="<?php esc_attr_e('[email protected]');?>"></td>
    3131            </tr>
    3232            <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>
    3434                <td><input type="text" name="subject" size="60" value="<?php esc_attr_e('WP Reroute Email Test Message');?>"></td>
    3535            </tr>
    3636            <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>
    3838                <td><textarea name="message" rows="5" cols="70"><?php esc_attr_e('This is a test message from WP Reroute Email.');?></textarea></td>
    3939            </tr>
    4040            <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>
    4242            </tr>
    4343        </tbody>
  • wp-reroute-email/trunk/wp-reroute-email.php

    r2933637 r3218170  
    44 * Plugin URI: http://wordpress.org/extend/plugins/wp-reroute-email/
    55 * Description: This plugin intercepts all outgoing emails from a WordPress site and reroutes them to a predefined configurable email address.
    6  * Version: 1.5.0
     6 * Version: 1.5.1
    77 * Author: Sajjad Hossain
    88 * Author URI: http://www.sajjadhossain.com
    99 * License: GPLv2 or later
    10  * Text Domain: wp_reroute_email
     10 * Text Domain: wp-reroute-email
    1111 * Domain Path: /languages
    1212 */
     
    4848
    4949    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');
    5151    }
    5252
     
    188188
    189189        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>';
    191191            array_unshift($links, $settings_link);
    192192        }
     
    288288               
    289289                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');
    291291                }
    292292                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');
    294294                }
    295295            }
    296296            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'));
    298298            }
    299299           
    300300            $admin_url = admin_url();
    301301            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>')
    303303                . ($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>')
    305305                    . '</p></div>';
    306306        }
Note: See TracChangeset for help on using the changeset viewer.