HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/bookcc/public_html/wp-content/plugins/wp-mail-catcher/src/Views/ExportWarningDialog.php
<?php use WpMailCatcher\GeneralHelper; ?>

<div id="export-warning-dialog" class="modal">
    <div class="modal-content">
        <form class="form-horizontal" action="?page=<?php echo GeneralHelper::$adminPageSlug; ?>&action=export-all"
              method="POST">
            <div class="modal-body">
                <div class="content-container">
                    <div class="content -active">
                        <div>
                            <h2><?php _e('Warning', 'WpMailCatcher'); ?></h2>
                            <hr/>
                            <p>
                                <?php
                                printf(__('You are trying to export <strong>%s</strong> messages when the recommended limit is no more than <strong>%s</strong>,
                                           this can cause the server to timeout before the export is complete, we recommend reducing the amount of messages exported, or exporting them in batches.',
                                    'WpMailCatcher'),
                                    $logs->totalItems,
                                    GeneralHelper::$logLimitBeforeWarning
                                );
                                ?>
                            </p>

                            <table class="form-table">
                                <tbody>
                                <tr>
                                    <th scope="row">
                                        <label>
                                            <?php _e('Number of logs to export', 'WpMailCatcher'); ?>
                                        </label>
                                    </th>
                                    <td>
                                        <input data-update-format name="posts_per_page" type="text"
                                               value="<?php echo GeneralHelper::$logLimitBeforeWarning; ?>"
                                               class="field -input"/>
                                    </td>
                                </tr>
                                <tr>
                                    <th scope="row">
                                        <label>
                                            <?php _e('Batch number', 'WpMailCatcher'); ?>
                                        </label>
                                    </th>
                                    <td>
                                        <input data-update-format name="paged" type="text" value="1"
                                               class="field -input"/>
                                        <p class="description"
                                           data-text-format="<?php _e('This will export messages <strong>%s-%s</strong>',
                                               'WpMailCatcher'); ?>"></p>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <?php wp_nonce_field('bulk-logs'); ?>

            <div class="modal-footer">
                <button type="submit" class="button-primary">
                    <?php _e('Export', 'WpMailCatcher'); ?>
                </button>
                <button type="button" class="button-secondary dismiss-modal">
                    <?php _e('Cancel', 'WpMailCatcher'); ?>
                </button>
            </div>
        </form>
    </div>
    <div class="backdrop dismiss-modal"></div>
</div>