HEX
Server: Apache
System: Linux uyu7574470001-7d78c9ff74-xfpwm 4.19.91-21.al7.x86_64 #1 SMP Wed Sep 2 19:47:49 CST 2020 x86_64
User: ()
PHP: 7.4.16
Disabled: chmod,exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,socket_create_listen,socket_create_pair,socket_create,socket_get_option,socket_getpeername,socket_getsockname,socket_last_error,socket_listen,socket_read,socket_recv,socket_recvfrom,socket_select,socket_send,socket_sendto,socket_set_block,socket_set_nonblock,socket_set_option,socket_shutdown,socket_strerror,socket_write,stream_socket_client,stream_socket_server,pfsockopen,disk_total_space,disk_free_space,chown,diskfreespace,getrusage,get_current_user,getmyuid,getmypid,dl,leak,listen,chgrp,link,symlink,dlopen,proc_nice,proc_get_stats,proc_terminate,shell_exec,sh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,mkfifo,dbmopen,dbase_open,filepro,filepro_rowcount,posix_mkfifo,putenv,sleep,fsockopen
Upload Files
File: /usr/home/uyu7574470001/htdocs/wp-content/plugins/newsletter/main/autoresponderedit.php
<?php

defined('ABSPATH') || exit;

require_once NEWSLETTER_INCLUDES_DIR . '/controls.php';
$controls = new NewsletterControls();

$autoresponder = new stdClass();
$autoresponder->id = 1;
$autoresponder->name = 'Welcome email series';
$autoresponder->list = 0;
$autoresponder->status = 1;
$autoresponder->keep_active = 1;
$autoresponder->rules = 1;
$autoresponder->subscribers = 346;
$autoresponder->emails = [1, 2, 3];
$autoresponder->list_name = 'Not linked to a list';

$controls->set_data($autoresponder);

?>

<div class="wrap" id="tnp-wrap">

    <?php include NEWSLETTER_ADMIN_HEADER; ?>
    <div id="tnp-heading">
        <?php include __DIR__ . '/autorespondernav.php' ?>
    </div>

    <div id="tnp-body">

        <?php $controls->show(); ?>

        <p>This is only a demonstrative panel.</p>

        <form method="post" action="">

            <?php $controls->init(); ?>

            <div id="tabs">

                <ul>
                    <li><a href="#tabs-general"><?php esc_html_e('General', 'newsletter') ?></a></li>
                    <li><a href="#tabs-advanced"><?php esc_html_e('Advanced', 'newsletter') ?></a></li>
                    <li><a href="#tabs-analytics"><?php esc_html_e('Google Analytics', 'newsletter') ?></a></li>
                </ul>

                <div id="tabs-general">
                    <table class="form-table">
                        <tr>
                            <th>Enabled</th>
                            <td><?php $controls->yesno('status') ?></td>
                        </tr>
                        <tr>
                            <th>Title</th>
                            <td><?php $controls->text('name', 70) ?></td>
                        </tr>
                    </table>


                    <table class="form-table">
                        <tr>
                            <th>Activation rules</th>
                            <td>
                                <?php $controls->enabled('rules', ['bind_to'=>'divrules']) ?>
                                <p class="description">
                                    When disabled the series can anyway be activated by addons, custom subscription forms, and so on.
                                </p>
                            </td>
                        </tr>
                    </table>

                    <table class="form-table" id="options-divrules">
                        <tr>
                            <th>List</th>
                            <td>
                                <?php $controls->lists_select_with_notes('list', 'All subscribers') ?>
                                <p class="description">
                                    <strong>List set</strong> - the series is activated to subscribers in the specified list. Subscribers are automatically
                                    captured when they enter the list and automatically released when they exit the list (usually within 5 minutes).
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <th>Keep active</th>
                            <td>
                                <?php $controls->yesno('keep_active') ?>
                                <p class="description">
                                    Keep the series activeif the subscriber is removed from the list, otherwise stop it.
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <th>Language</th>
                            <td>
                                <?php $controls->language() ?>
                                <p class="description">
                                    Only subscribers with a matching language will be linked.
                                </p>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-advanced">
                    <table class="form-table">
                        <tr>
                            <th>Restart on re-subscription</th>
                            <td>
                                <?php $controls->yesno('restart') ?>
                                <p class="description">
                                    If a subscriber re-subscribes and the series is already completed, restart it.
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <th>Update emails content</th>
                            <td>
                                <?php $controls->yesno('regenerate') ?>
                                <p class="description">
                                    If the content of the emails should be updated every day (it applies to post list, product list and so on)
                                </p>
                            </td>
                        </tr>
                        <tr>
                            <th>Lists to add on completion</th>
                            <td>
                                <?php $controls->lists('new_lists') ?>
                                <p class="description">
                                    List to be set on a subscriber's profile when the series reaches its end.
                                </p>
                            </td>
                        </tr>
                    </table>
                </div>

                <div id="tabs-analytics">

                    <p>
                        Google Analytics addon required.<br>
                        On UTM parameters <code>{email_id}</code> and <code>{email_subsject}</code> can be used to make them dynamic.<br>
                    </p>

                    <table class="form-table">
                        <tr>
                            <th>UTM Campaign</th>
                            <td>
                                <?php $controls->text('utm_campaign', 50); ?>
                                <p class="description">

                                </p>
                            </td>
                        </tr>
                        <tr>
                            <th>UTM Source (mandatory)</th>
                            <td>
                                <?php $controls->text('utm_source', 50); ?>
                                <p class="description">
                                    Use the <code>{step}</code> tag to have the step number inserted (1, 2, 3, ...). The suggested value
                                    is <code>step-{step}</code>.
                                </p>
                            </td>
                        </tr>


                        <tr>
                            <th>UTM Medium</th>
                            <td>
                                <?php $controls->text('utm_medium', 50); ?>
                                <p class="description">
                                    Should be set to "email" since this is the only medium used.
                                </p>
                            </td>
                        </tr>

                        <tr>
                            <th>UTM Term</th>
                            <td>
                                <?php $controls->text('utm_term', 50); ?>
                                <p class="description">
                                    Usually empty can be used on specific newsletters but it is more related to keyword based advertising.
                                </p>
                            </td>
                        </tr>

                        <tr>
                            <th>UTM Content</th>
                            <td>
                                <?php $controls->text('utm_content', 50); ?>
                                <p class="description">
                                    Usually empty can be used on specific newsletters.
                                </p>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="tnp-buttons">
                <?php $controls->button_save(); ?>
            </div>



        </form>

    </div>

</div>