Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/TF89388/wp-content/plugins/newsletter/users/ |
Upload File : |
<?php
/* @var $this NewsletterUsers */
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 {
echo '<script>';
echo 'location.href="' . $this->get_admin_page_url('edit') . '&id=' . $user->id . '"';
echo '</script>';
return;
}
}
}
?>
<div class="wrap" id="tnp-wrap">
<?php include NEWSLETTER_DIR . '/tnp-header.php'; ?>
<div id="tnp-heading">
<h2><?php _e('New Subscriber', 'newsletter') ?></h2>
</div>
<div id="tnp-body" class="tnp-users tnp-users-new">
<form method="post" action="">
<?php $controls->init(); ?>
<table class="form-table">
<tr>
<th><?php _e('Email', 'newsletter')?></th>
<td>
<?php $controls->text_email('email', 60); ?>
<?php $controls->button('save', '»'); ?>
</td>
</tr>
</table>
</form>
</div>
<?php include NEWSLETTER_DIR . '/tnp-footer.php'; ?>
</div>