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

defined('ABSPATH') || exit;

$feeds = [];
$feed = new stdClass();
$feed->id = 1;
$feed->last_time = time() - DAY_IN_SECONDS;
$feed->sent = 12;
$feed->data = [
    'name' => 'Weekly wellness tips',
    'enabled' => 1];
$feed->email = new stdClass();
$feed->email->status = 'sending';

$feeds[] = $feed;
$feed = new stdClass();
$feed->id = 2;
$feed->last_time = time() - MONTH_IN_SECONDS;
$feed->sent = 4;
$feed->email = new stdClass();
$feed->email->status = 'sent';
$feed->data = [
    'name' => 'Last month activities summary',
    'enabled' => 1];
$feeds[] = $feed;
$feed = new stdClass();
$feed->id = 3;
$feed->last_time = time() - WEEK_IN_SECONDS;
$feed->email = new stdClass();
$feed->email->status = 'sent';
$feed->sent = 57;
$feed->data = [
    'name' => 'Next seven days meeting locations',
    'enabled' => 1];

$feeds[] = $feed;

NewsletterMainAdmin::instance()->set_completed_step('automated');
?>
<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 $controls->title_help('/addons/extended-features/automated-extension/') ?>
        <h2>Automated Newsletters</h2>
    </div>
    <div id="tnp-body">
        <?php $controls->show(); ?>
        <p>This is only a demonstrative panel.</p>

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

            <div class="tnp-buttons">
                <?php $controls->button('add', 'New channel') ?>
            </div>

            <table class="widefat" id="tnp-channels">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Name</th>
                        <th><!--Status--></th>
                        <th colspan="2">Last newsletter</th>

                        <th>Sent</th>
                        <th>&nbsp;</th>
                        <th>&nbsp;</th>
                    </tr>
                </thead>

                <tbody>
                    <?php foreach ($feeds as $feed) { ?>
                        <tr>
                            <td>
                                <?php echo $feed->id ?>

                            </td>
                            <td><?php echo esc_html($feed->data['name']) ?></td>
                            <td class="tnp-automated-status">
                                <span class="tnp-led-<?php echo!empty($feed->data['enabled']) ? 'green' : 'gray' ?>">&#x2B24;</span>
                            </td>

                            <td style="white-space: nowrap">
                                <?php echo date_i18n(get_option('date_format'), $feed->last_time); ?>


                            </td>

                            <td>
                                <?php if ($feed->email) { ?>

                                    <?php Newsletter::instance()->show_email_status_label($feed->email) ?>
                                <?php } ?>
                            </td>
                            <td class="tnp-sent"><?php echo $feed->sent ?></td>

                            <td style="white-space: nowrap" class="tnp-automated-actions">

                                <?php $controls->button_icon_configure('?page=newsletter_main_automatededit') ?>
                                <?php $controls->button_icon_newsletters('?page=newsletter_main_automatednewsletters') ?>
                                <?php $controls->button_icon_design('?page=newsletter_main_automatedtemplate') ?>
                            </td>

                            <td style="white-space: nowrap">
                                <?php $controls->button_icon_copy(); ?>
                                <?php $controls->button_icon_delete(); ?>
                            </td>

                        </tr>
                    <?php } ?>
                </tbody>
            </table>

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

const driverObj = driver({
  showProgress: true,
  steps: [
    { element: '#tnp-channels', popover: { title: 'Channels', description: 'Every channel generates automatically newsletters with your site contents.', side: "left", align: 'start' }},
    { element: '.tnp-buttons', popover: { title: 'Create', description: 'Create as many channel as you need with different templates and planning.', side: "left", align: 'start' }},
    { element: '.tnp-automated-actions', popover: { title: 'Actions', description: 'Configure, change the template, check the generated newsletters of a channel.', side: "left", align: 'start' }},
      { popover: { title: 'More...', description: 'Click on action buttons to see more.' } }
  ]
});

driverObj.drive();
    </script>