| 1 |
<?php |
| 2 |
|
| 3 |
use AcyMailing\Classes\UserClass; |
| 4 |
use AcyMailing\Helpers\CaptchaHelper; |
| 5 |
|
| 6 |
$currentUserEmail = acym_currentUserEmail(); |
| 7 |
$userClass = new UserClass(); |
| 8 |
$identifiedUser = $userClass->getOneByEmail($currentUserEmail); |
| 9 |
|
| 10 |
if (empty($identifiedUser) && $config->get('captcha', 'none') !== 'none' && acym_level(ACYM_ESSENTIAL)) { |
| 11 |
echo '<div class="onefield fieldacycaptcha" id="field_captcha_'.$form->form_tag_name.'">'; |
| 12 |
$captcha = new CaptchaHelper(); |
| 13 |
echo $captcha->display($form->form_tag_name); |
| 14 |
echo '</div>'; |
| 15 |
} |
| 16 |
|