= LENCRIER_MAX_MEMBERS) { $errors['FULL'] = true; } if (empty($_POST['email']) || !utils::checkEmailSyntax($_POST['email'])) { $errors['EMAIL'] = true; } if (!empty($_POST['email']) && !utils::checkEmailDomain($_POST['email'])) { $errors['EMAIL_DOMAIN'] = true; } if (empty($errors)) { notifications::confirmMailForRegistration($_POST['email']); $tpl->assign('success', true); } $tpl->assign('errors', $errors); } elseif (LENCRIER_SECURE_SUBSCRIBE && !empty($_SERVER['HTTP_REFERER']) && !preg_match('!^'.preg_quote(LENCRIER_HOME_URL, '!').'!', $_SERVER['HTTP_REFERER'])) { utils::redirect(LENCRIER_HOME_URL); } $tpl->assign('subscribe', utils::CSRF_create('subscribe')); $tpl->assign('current', 'login'); $tpl->display('ecrire/inscription.tpl'); ?>