本文整理汇总了PHP中checkemail函数的典型用法代码示例。如果您正苦于以下问题:PHP checkemail函数的具体用法?PHP checkemail怎么用?PHP checkemail使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了checkemail函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: upload
function upload($user_name, $email, $message, $file)
{
global $dbstamian;
if (empty($user_name)) {
echo 'Sorry Username empty';
} elseif (empty($email)) {
echo 'Sorry Email empty';
} elseif (empty($message)) {
echo 'Sorry Message empty';
} elseif (empty($file)) {
echo 'Sorry File Empty';
} elseif ($file['file_attach']['size'] > 41943040) {
echo 'Sorry File limit 40 MB';
} else {
$file_dir = 'file/';
$file_name = rand(00, 9999) . "_" . ereg_replace('[[:space:]]+', '_', trim(addslashes(strip_tags($file['file_attach']['name']))));
$file_size = $file['file_attach']['size'];
$file_tmp = $file['file_attach']['tmp_name'];
$file_type = $file['file_attach']['type'];
$file_ext = strtolower(end(explode('.', $file_name)));
$regex = "/^([0-9])+_?([0-9a-zA-Z\\_\\-]+).{1}(jpeg|jpg|png|pdf|doc|docx)+/";
$match = preg_match($regex, $file_name);
$file_allow = array("jpeg", "jpg", "png", "pdf", "doc", "docx");
$mim_type = array("image/jpeg", "image/jpg", "image/png", "application/pdf", "application/doc", "application/docx");
if (in_array($file_ext, $file_allow) === true and in_array($file_type, $mim_type) === true and !file_exists($file_dir, $file_name) and checkemail($email) == true and $match == true) {
$sql = "INSERT INTO contact(contact.contact_name,contact.contact_email,contact.contact_file,contact.contact_date,contact.contact_message) VALUES('" . $user_name . "','" . $email . "','" . $file_name . "',NOW(),'" . $message . "')";
$result = mysql_query($sql, $dbstamian);
mysql_insert_id();
$send = sendmail($user_name, $email, $message, $file_name, $file_tmp, $file_size, $file_type);
if (!$result and !$send) {
echo 'Echec de telechargement, Meri de renvoyer votre fichier';
} else {
if ($file['file_attach']['error'] == 1) {
echo 'file upload max file size over limit php.ini';
} elseif ($file['file_attach']['error'] == 2) {
echo 'File Max_file_SIZE for form';
} elseif ($file['file_attach']['error'] == 3) {
echo 'upload file not a connect server';
} elseif ($file['file_attach']['error'] == 4) {
echo 'Not a file';
} elseif ($file['file_attach']['error'] == 0) {
@move_uploaded_file($file_tmp, $file_dir . $file_name);
echo "Merci votre fichier a été envoyé";
}
}
} else {
echo 'Echec, votre fichier doit etre au format pdf';
}
}
}
示例2: validate
private function validate()
{
if (isset($this->request->post['password']) && strlen($this->request->post['password']) > 1) {
if (strlen(@$this->request->post['password']) < MIN_PASSWORD_LENGTH || strlen(@$this->request->post['password2']) < MIN_PASSWORD_LENGTH) {
$this->error['password'] = $this->data['text_invalid_password'];
}
if ($this->request->post['password'] != $this->request->post['password2']) {
$this->error['password2'] = $this->data['text_password_mismatch'];
}
}
if (!isset($this->request->post['uid']) || !is_numeric($this->request->post['uid']) || (int) $this->request->post['uid'] < 0) {
$this->error['uid'] = $this->data['text_invalid_uid'];
}
if (strlen(@$this->request->post['email']) < 4) {
$this->error['email'] = $this->data['text_invalid_email'];
} else {
$emails = explode("\n", $this->request->post['email']);
foreach ($emails as $email) {
$email = rtrim($email);
if ($email == '') {
continue;
}
$ret = checkemail($email, $this->domains);
if ($ret == 0) {
$this->error['email'] = $this->data['text_invalid_email'] . ": *{$email}*";
} else {
if ($ret == -1) {
$this->error['email'] = $this->data['text_email_in_unknown_domain'] . ": *{$email}*";
}
}
}
}
if (!isset($this->request->post['username']) || strlen($this->request->post['username']) < 2) {
$this->error['username'] = $this->data['text_invalid_username'];
}
if (!$this->error) {
return true;
} else {
return false;
}
}
示例3: array
if (checkMobile($mobile) == "2") {
$tel = $mobile;
$mobile = "";
}
if (checkemail($email) == "3") {
$email = "";
}
$isvalid = true;
$errmsg = "";
if (trim($companyName) == "") {
//公司名字
$errmsg = $errmsg . "公司名字不能为空;";
$isvalid = false;
}
//三个多不是的话,就不要导入
if (checkMobile($phone) == "3" && checkMobile($mobile) == "3" && checkemail($email) == "3") {
$errmsg = $errmsg . "电话和手机和电子邮件三者不能为空;";
$isvalid = false;
}
$sql = get_sql("select id from {pre}pool where companyName='" . $companyName . "'");
$rows = $db->getRowsNum($sql);
if ($rows > 0) {
$errmsg = $errmsg . "公司名字存在了;";
$isvalid = false;
$data = $db->getonerow($sql);
//更新电话等信息
$record = array('companyName' => $companyName, 'name' => $name, 'addr' => $addr, 'tel' => $tel, 'mobile' => $mobile, 'email' => $email, 'qq' => $qq, 'url' => $url, 'remark' => $remark, 'createTime' => date('Y-m-d h-m-s'));
$db->update($GLOBALS[databasePrefix] . 'pool', $record, 'id=' . $data["id"]);
}
if (trim($email) != "") {
$sql = get_sql("select id from {pre}pool where email='" . $email . "'");
示例4: die
$connection->query($query) or die($connection->error);
return TRUE;
}
function insteringDefaultsInfo($langcode)
{
global $connection;
if ($stmt = $connection->prepare("SELECT en_id,en_tag FROM gm_en ORDER BY en_id")) {
$stmt->execute();
$stmt->bind_result($en_id, $en_tag);
$query = "INSERT INTO gm_" . $langcode . "(id, status) VALUES";
while ($stmt->fetch()) {
$query .= "(" . $en_id . ",0),";
}
$stmt->close();
$query = substr_replace($query, "", -1);
$connection->query($query) or die($connection->error);
return TRUE;
}
}
$langcode = trim($_POST['langcode']);
$groupemail = $connection->real_escape_string(trim($_POST['groupemail']));
if (checkemail($groupemail)) {
$success = insterConfigInfo($langcode, $groupemail);
$success = createTranslationTables($langcode);
$success = insteringDefaultsInfo($langcode);
} else {
$error = array();
$error['email'] = "Invalid Translators Group Email";
$_SESSION['config_error'] = $error;
}
header("Location: ../index.php");
示例5: checkemail
<?php
include "sc1.php";
$email1 = "jerasith@hotmail.com";
$email2 = "jerasith#hotmail.com";
echo $email1 . checkemail($email1);
echo $email2 . checkemail($email2);
示例6:
<?php
include "chksession.php";
$email_edit = $_POST[email_edit];
$tel_edit = $_POST[tel_edit];
$address_edit = $_POST[address_edit];
include "function.php";
if (!checkemail($email_edit)) {
echo "<h3>ERROR : цы╩А╨╨муЮае╥уХ║цм║ДаХ╤ы║╣Им╖╧п╓ця╨ </h3>";
exit;
}
include "connect.php";
$sql = "update tb_member set email='{$email_edit}', telephone='{$tel_edit}' ,address='{$address_edit}' where username='{$sess_username}' ";
$result = mysql_db_query($dbname, $sql);
if ($result) {
echo "<h3>╒Имаые╒м╖╥Хр╧╤ы║А║ИД╒Юцуб╨цИмбАеИг</h3>";
echo "[ <a href=main.php>║ея╨к╧Иркея║</a> ] ";
} else {
echo "<h3>ДаХйрарц╤А║ИД╒╒ИмаыеД╢И</h3>";
}
mysql_close();
示例7: elseif
} elseif ($ucresult == -2) {
showmessage('profile_username_protect', '', array(), array('handle' => false));
} elseif ($ucresult == -3) {
if (C::t('common_member')->fetch_by_username($username) || C::t('common_member_archive')->fetch_by_username($username)) {
showmessage('register_check_found', '', array(), array('handle' => false));
} else {
showmessage('register_activation', '', array(), array('handle' => false));
}
}
$censorexp = '/^(' . str_replace(array('\\*', "\r\n", ' '), array('.*', '|', ''), preg_quote($_G['setting']['censoruser'] = trim($_G['setting']['censoruser']), '/')) . ')$/i';
if ($_G['setting']['censoruser'] && @preg_match($censorexp, $username)) {
showmessage('profile_username_protect', '', array(), array('handle' => false));
}
} elseif ($_GET['action'] == 'checkemail') {
require_once libfile('function/member');
checkemail($_GET['email']);
} elseif ($_GET['action'] == 'checkinvitecode') {
$invitecode = trim($_GET['invitecode']);
if (!$invitecode) {
showmessage('no_invitation_code', '', array(), array('handle' => false));
}
$result = array();
if ($invite = C::t('common_invite')->fetch_by_code($invitecode)) {
if (empty($invite['fuid']) && (empty($invite['endtime']) || $_G['timestamp'] < $invite['endtime'])) {
$result['uid'] = $invite['uid'];
$result['id'] = $invite['id'];
$result['appid'] = $invite['appid'];
}
}
if (empty($result)) {
showmessage('wrong_invitation_code', '', array(), array('handle' => false));
示例8: auth_task_guest
function auth_task_guest()
{
global $db, $tpf, $pd_uid, $pd_gid;
form_auth(gpc('formhash', 'P', ''), formhash());
$username = trim(gpc('username', 'P', ''));
$password = trim(gpc('password', 'P', ''));
$confirm_password = trim(gpc('confirm_password', 'P', ''));
$email = trim(gpc('email', 'P', ''));
$ref = trim(gpc('ref', 'P', ''));
if (checklength($username, 2, 60)) {
$error = true;
$sysmsg[] = __('invalid_username');
} elseif (is_bad_chars($username)) {
$error = true;
$sysmsg[] = __('username_has_bad_chars');
} else {
$rs = $db->fetch_one_array("select username from {$tpf}users where username='{$username}' and userid<>'{$pd_uid}' limit 1");
if ($rs) {
if (strcasecmp($username, $rs['username']) == 0) {
$error = true;
$sysmsg[] = __('username_already_exists');
}
}
unset($rs);
}
if (checklength($password, 6, 20)) {
$error = true;
$sysmsg[] = __('invalid_password');
} else {
if ($password == $confirm_password) {
$md5_pwd = md5($password);
} else {
$error = true;
$sysmsg[] = __('confirm_password_invalid');
}
}
if (!checkemail($email)) {
$error = true;
$sysmsg[] = __('invalid_email');
} else {
$rs = $db->fetch_one_array("select email from {$tpf}users where email='{$email}' and userid<>'{$pd_uid}' limit 1");
if ($rs) {
if (strcasecmp($email, $rs['email']) == 0) {
$error = true;
$sysmsg[] = __('email_already_exists');
}
unset($rs);
}
}
if (!$error) {
$ins = array('username' => $username, 'password' => $md5_pwd, 'email' => $email, 'space_name' => $username . __('file'), 'can_edit' => 0);
$db->query_unbuffered("update {$tpf}users set " . $db->sql_array($ins) . " where userid='{$pd_uid}'");
pd_setcookie('phpdisk_zcore_info', pd_encode("{$pd_uid}\t{$pd_gid}\t{$username}\t{$md5_pwd}\t{$email}"), 86400 * 3);
$sysmsg[] = __('guest_set_account_success');
tb_redirect($ref, $sysmsg);
} else {
tb_redirect('back', $sysmsg);
}
}
示例9: __
$sysmsg[] = __('invalid_password');
} else {
$income_pwd = md5($income_pwd);
}
} else {
$income_pwd = @$db->result_first("select income_pwd from {$tpf}users where userid='{$uid}'");
}
if ($gid > 1) {
$rs = $db->fetch_one_array("select count(*) as total from {$tpf}users where gid=1 and userid<>'{$uid}'");
if (!$rs['total']) {
$error = true;
$sysmsg[] = __('only_one_admin');
}
unset($rs);
}
if (!checkemail($email)) {
$error = true;
$sysmsg[] = __('invalid_email');
} else {
$rs = $db->fetch_one_array("select email from {$tpf}users where email='{$email}' and userid<>'{$uid}'");
if ($rs) {
if (strcasecmp($email, $rs['email']) == 0) {
$error = true;
$sysmsg[] = __('email_already_exists');
}
unset($rs);
}
}
$user_store_space = $user_store_space ? $user_store_space : 0;
if ($user_file_types && substr($user_file_types, strlen($user_file_types) - 1, 1) == ',') {
$user_file_types = substr($user_file_types, 0, -1);
示例10: redirect
redirect('back', $sysmsg);
}
} else {
$setting = $settings;
$setting['email_pwd'] = encode_pwd($setting['email_pwd']);
require_once template_echo($item, $admin_tpl_dir, '', 1);
}
break;
case 'mail_test':
admin_no_power($task, 12, $pd_uid);
if ($task == 'mail_test') {
form_auth(gpc('formhash', 'P', ''), formhash());
$receive_address = trim(gpc('receive_address', 'P', ''));
$mail_subject = trim(gpc('mail_subject', 'P', ''));
$mail_content = trim(gpc('mail_content', 'P', ''));
if (!checkemail($receive_address)) {
$error = true;
$sysmsg[] = __('email_address_error');
}
if (checklength($mail_subject, 2, 80)) {
$error = true;
$sysmsg[] = __('email_subject_error');
}
if (checklength($mail_content, 2, 250)) {
$error = true;
$sysmsg[] = __('email_content_error');
}
if (!$error) {
$to = $receive_address;
$subject = $mail_subject;
$body = $mail_content;
示例11: on_register
//.........这里部分代码省略.........
$auth = dhtmlspecialchars($auth);
}
if ($seccodecheck) {
$seccode = random(6, 1);
}
$username = dhtmlspecialchars($username);
$htmls = $settings = array();
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid, array(), false, false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
$navtitle = $this->setting['reglinkname'];
if ($this->extrafile && file_exists($this->extrafile)) {
require_once $this->extrafile;
}
}
$bbrulestxt = nl2br("\n{$bbrulestxt}\n\n");
$dreferer = dreferer();
include template($this->template);
} else {
$activationauth = array();
if (isset($_GET['activationauth']) && $_GET['activationauth']) {
$activationauth = explode("\t", authcode($_GET['activationauth'], 'DECODE'));
if ($activationauth[1] != FORMHASH) {
showmessage('register_activation_invalid', 'member.php?mod=logging&action=login');
}
$sendurl = false;
}
if (!$activationauth && ($sendurl || !$_G['setting']['forgeemail'])) {
checkemail($_GET['email']);
}
if ($sendurl) {
$hashstr = urlencode(authcode("{$_GET['email']}\t{$_G['timestamp']}", 'ENCODE', $_G['config']['security']['authkey']));
$registerurl = "{$_G[siteurl]}member.php?mod=" . $this->setting['regname'] . "&hash={$hashstr}&email={$_GET[email]}";
$email_register_message = lang('email', 'email_register_message', array('bbname' => $this->setting['bbname'], 'siteurl' => $_G['siteurl'], 'url' => $registerurl));
if (!sendmail("{$_GET['email']} <{$_GET['email']}>", lang('email', 'email_register_subject'), $email_register_message)) {
runlog('sendmail', "{$_GET['email']} sendmail failed.");
}
showmessage('register_email_send_succeed', dreferer(), array('bbname' => $this->setting['bbname']), array('showdialog' => false, 'msgtype' => 3, 'closetime' => 10));
}
$emailstatus = 0;
if ($this->setting['sendregisterurl'] && !$sendurl) {
$_GET['email'] = strtolower($hash[0]);
$this->setting['regverify'] = $this->setting['regverify'] == 1 ? 0 : $this->setting['regverify'];
if (!$this->setting['regverify']) {
$groupinfo['groupid'] = $this->setting['newusergroupid'];
}
$emailstatus = 1;
}
if ($this->setting['regstatus'] == 2 && empty($invite) && !$invitestatus) {
showmessage('not_open_registration_invite');
}
if ($bbrules && $bbrulehash != $_POST['agreebbrule']) {
showmessage('register_rules_agree');
}
$activation = array();
if (isset($_GET['activationauth']) && $activationauth && is_array($activationauth)) {
if ($activationauth[1] == FORMHASH && !($activation = uc_get_user($activationauth[0]))) {
showmessage('register_activation_invalid', 'member.php?mod=logging&action=login');
}
}
if (!$activation) {
示例12: on_register
function on_register()
{
global $_G;
$_GET['username'] = $_GET['username'];
$_GET['nickname'] = $_GET['nickname'];
$_GET['password'] = $_GET['password'];
$_GET['password2'] = $_GET['password2'];
$_GET['email'] = $_GET['email'];
if ($_G['uid']) {
$url_forward = dreferer();
if (strpos($url_forward, 'reg') !== false) {
$url_forward = 'index.php';
}
showmessage('login_succeed', $url_forward ? $url_forward : './', array('username' => $_G['member']['username'], 'usergroup' => $_G['group']['grouptitle'], 'uid' => $_G['uid']), array());
} elseif (!$this->setting['regclosed']) {
if ($_GET['action'] == 'activation' || $_GET['activationauth']) {
if (!$this->setting['ucactivation'] && !$this->setting['closedallowactivation']) {
showmessage('register_disable_activation');
}
} elseif (!$this->setting['regstatus']) {
showmessage(!$this->setting['regclosemessage'] ? 'register_disable' : str_replace(array("\r", "\n"), '', $this->setting['regclosemessage']));
}
}
$bbrules =& $this->setting['bbrules'];
$bbrulesforce =& $this->setting['bbrulesforce'];
$bbrulestxt =& $this->setting['bbrulestxt'];
$welcomemsg =& $this->setting['welcomemsg'];
$welcomemsgtitle =& $this->setting['welcomemsgtitle'];
$welcomemsgtxt =& $this->setting['welcomemsgtxt'];
$regname = $this->setting['regname'];
$username = isset($_GET['username']) ? $_GET['username'] : '';
$invitestatus = false;
$seccodecheck = $this->setting['seccodestatus'] & 1;
$secqaacheck = 0;
$bbrulehash = $bbrules ? substr(md5(FORMHASH), 0, 8) : '';
$auth = $_GET['auth'];
if (!$invitestatus) {
$invite = getinvite();
}
if (!submitcheck('regsubmit', 0, $seccodecheck)) {
if ($seccodecheck) {
$seccode = random(6, 1);
}
$username = dhtmlspecialchars($username);
$htmls = $settings = array();
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid, array(), false, false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
$navtitle = $this->setting['reglinkname'];
if ($this->extrafile && file_exists($this->extrafile)) {
require_once $this->extrafile;
}
$bbrulestxt = nl2br("\n{$bbrulestxt}\n\n");
$dreferer = dreferer();
include template($this->template);
} else {
$emailstatus = 0;
if ($this->setting['regstatus'] == 2 && empty($invite) && !$invitestatus) {
showmessage('not_open_registration_invite');
}
//验证同意协议
if ($bbrules && $bbrulehash != $_POST['agreebbrule']) {
showmessage('register_rules_agree');
}
//验证用户姓名
$usernamelen = dstrlen($username);
if ($usernamelen < 3) {
showmessage('profile_username_tooshort');
}
if ($usernamelen > 30) {
showmessage('profile_username_toolong');
}
//验证用户名
if ($nickname = trim($_GET['nickname'])) {
$nicknamelen = dstrlen($nickname);
if ($nicknamelen < 3) {
showmessage('profile_nickname_tooshort');
}
if ($nicknamelen > 30) {
showmessage('profile_nickname_toolong');
}
} else {
$nickname = '';
}
//验证邮箱
$email = strtolower(trim($_GET['email']));
checkemail($email);
//验证密码长度
if ($this->setting['pwlength']) {
if (strlen($_GET['password']) < $this->setting['pwlength']) {
showmessage('profile_password_tooshort', '', array('pwlength' => $this->setting['pwlength']));
}
}
//验证密码强度
if ($this->setting['strongpw']) {
//.........这里部分代码省略.........
示例13: __
if (checklength($r_username, 2, 60)) {
echo __('username_length_error');
} elseif (is_bad_chars($r_username)) {
echo __('username_has_bad_chars');
} else {
$num = @$db->result_first("select count(*) from {$tpf}users where username='{$r_username}'");
if ($num) {
echo __('username_already_exists');
} else {
echo 'true|' . __('username_can_reg');
}
}
break;
case 'chk_email':
$r_email = trim(gpc('r_email', 'P', ''));
if (!checkemail($r_email)) {
echo __('invalid_email');
} else {
$num = @$db->result_first("select count(*) from {$tpf}users where email='{$r_email}'");
if ($num) {
echo __('email_already_exists');
} else {
echo 'true|' . __('email_can_reg');
}
}
break;
case 'fd_stat':
$folder_id = (int) gpc('folder_id', 'P', 0);
if ($folder_id) {
$file_size = (int) @$db->result_first("select sum(file_size) from {$tpf}files where folder_id='{$folder_id}'");
$db->query_unbuffered("update {$tpf}folders set folder_size='{$file_size}' where folder_id='{$folder_id}'");
示例14: cleantext
$biodata = $data['biodata'];
$avatar = '<img src="mod/profile/images/' . $data['avatar'] . '">';
$avatar = $data['avatar'] == '' ? '' : '<div style="float:left; padding:3px; border:1px solid #cccccc; background:#f2f2f2; margin-right:10px;"><img src="mod/profile/images/' . $data['avatar'] . '" width="50" border="0" alt="' . $user . '" /></div>';
$tengah .= '<div class="border"><table><tr><td>' . $avatar . '' . $biodata . '</td></tr></table></div>';
}
////////////Komentar////////////////////////////////////
if ($widgetkomentar == 2) {
// Komentar Berita
if ($_POST['submit'] == 'comment') {
$nama = cleantext(hapuspetik($_POST['nama']));
$kontenkomentar = cleantext(hapuspetik($_POST['kontenkomentar']));
$emailkomentar = $_POST['emailkomentar'];
$tgl = date('Y-m-d');
$artikelid = $_POST['artikelid'];
$ip = getenv("REMOTE_ADDR");
checkemail($emailkomentar);
$gfx_check = $_POST['gfx_check'];
if ($gfx_check != $_SESSION['Var_session'] or !isset($_SESSION['Var_session'])) {
$error .= "Error: Security Code Invalid<br />";
}
if (!$nama) {
$error .= "Error: Silahkan isi Namanya<br />";
}
if (!$emailkomentar) {
$error .= "Error: Silahkan isi Emailnya<br />";
}
if (!$kontenkomentar) {
$error .= "Error: Silahkan isi Komentarnya<br />";
}
if ($error) {
$tengah .= '<div class="error">' . $error . '</div>';
示例15: __
}
if (checklength($settings['site_title'], 2, 100)) {
$error = true;
$sysmsg[] = __('site_title_error');
}
if (substr($settings['phpdisk_url'], 0, 7) != 'http://' && substr($settings['phpdisk_url'], 0, 8) != 'https://') {
$error = true;
$sysmsg[] = __('phpdisk_url_error');
} else {
$settings['phpdisk_url'] = substr($settings['phpdisk_url'], -1) == '/' ? $settings['phpdisk_url'] : $settings['phpdisk_url'] . '/';
}
if (checklength($settings['encrypt_key'], 8, 20) || preg_match("/[^a-z0-9]/i", $settings['encrypt_key'])) {
$error = true;
$sysmsg[] = __('encrypt_key_error');
}
if (!checkemail($settings['contact_us'])) {
$error = true;
$sysmsg[] = __('contact_us_error');
}
if (!$settings['allow_access']) {
if (checklength($settings['close_access_reason'], 2, 200)) {
$error = true;
$sysmsg[] = __('close_access_reason_error');
}
}
if (!$settings['allow_register']) {
if (checklength($settings['close_register_reason'], 2, 200)) {
$error = true;
$sysmsg[] = __('close_register_reason_error');
}
}