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/automatednewsletters.php
<?php
/** @var NewsletterMainAdmin $this */
/** @var NewsletterControls $controls */
/** @var NewsletterLogger $logger */
/** @var wpdb $wpdb  */

defined('ABSPATH') || exit;

$channel = new stdClass();
$channel->id = 1;
$channel->data = [
    'name' => 'Weekly wellness tips',
    'track' => 1,
    'frequency' => 'weekly',
    'day_1' => 1,
];

$emails = [];

$email = new stdClass();
$email->id = 6;
$email->status = 'sending';
$email->subject = 'Week 6 Welness Tips';
$email->send_on = time() - WEEK_IN_SECONDS * 1;

$emails[] = $email;

$email = new stdClass();
$email->id = 5;
$email->status = 'sent';
$email->subject = 'Week 5 Welness Tips';
$email->send_on = time() - WEEK_IN_SECONDS * 2;

$emails[] = $email;

$email = new stdClass();
$email->id = 4;
$email->status = 'sent';
$email->subject = 'Week 4 Welness Tips';
$email->send_on = time() - WEEK_IN_SECONDS * 3;

$emails[] = $email;

$email = new stdClass();
$email->id = 3;
$email->status = 'sent';
$email->subject = 'Week 3 Welness Tips';
$email->send_on = time() - WEEK_IN_SECONDS * 4;

$emails[] = $email;

$email = new stdClass();
$email->id = 2;
$email->status = 'sent';
$email->subject = 'Week 2 Welness Tips';
$email->send_on = time() - WEEK_IN_SECONDS * 5;

$emails[] = $email;

$email = new stdClass();
$email->id = 1;
$email->status = 'sent';
$email->subject = 'Week 1 Welness Tips';
$email->send_on = time() - WEEK_IN_SECONDS * 6;

$emails[] = $email;
?>
<script src="<?php echo plugins_url('newsletter') ?>/vendor/driver/driver.js.iife.js"></script>
<link rel="stylesheet" href="<?php echo plugins_url('newsletter') ?>/vendor/driver/driver.css"/>

<div class="wrap" id="tnp-wrap">
    <?php include NEWSLETTER_ADMIN_HEADER ?>
    <div id="tnp-heading">
       <?php include __DIR__ . '/automatednav.php' ?>
    </div>

    <div id="tnp-body" class="tnp-automated-edit">


        <form method="post" action="">
            <?php $controls->init(); ?>


            <table class="widefat" id="tnp-automated-newsletters">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Subject</th>
                        <th>Date</th>
                        <th>Status</th>
                        <th>&nbsp;</th>
                    </tr>
                </thead>

                <tbody>
                    <?php $count = 0; ?>
                    <?php foreach ($emails as $email) { ?>
                        <?php $count++; ?>
                        <tr>
                            <td><?php echo $email->id; ?></td>
                            <td>
                                <?php echo esc_html($email->subject); ?>
                            </td>
                            <td style="white-space: nowrap">
                                <?php echo NewsletterControls::print_date($email->send_on); ?>
                            </td>
                            <td class="tnp-automated-status">
                                <?php Newsletter::instance()->show_email_status_label($email) ?>
                            </td>

                            <td style="white-space: nowrap" class="tnp-automated-actions">
                                <?php $controls->button_icon_statistics('#') ?>
                                <?php $controls->button_icon_view('#') ?>
                                <?php $controls->button_icon_delete(0); ?>
                                <?php $controls->button_icon('abort', 'fa-stop', 'Block this newsletter', 0, true); ?>
                            </td>
                        </tr>
                    <?php } ?>
                </tbody>
            </table>



        </form>

    </div>

</div>
<script>
    const driver = window.driver.js.driver;

    const driverObj = driver({
        showProgress: true,
        steps: [
            {element: '#tnp-automated-newsletters', popover: {title: 'Newsletter', description: 'The list of all generated newsletters.', side: "left", align: 'start'}},
            {element: '.tnp-automated-status', popover: {title: 'Status', description: 'Check if the newsletter is goingin out or the delivery has been completed.', side: "left", align: 'start'}},
            {element: '.tnp-automated-actions', popover: {title: 'Actions', description: 'Check the statistics, stop the delivery, view online or delete.', side: "left", align: 'start'}},

        ]
    });

    driverObj.drive();
</script>