本文整理匯總了PHP中es_cls_common::es_special_letters方法的典型用法代碼示例。如果您正苦於以下問題:PHP es_cls_common::es_special_letters方法的具體用法?PHP es_cls_common::es_special_letters怎麽用?PHP es_cls_common::es_special_letters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類es_cls_common
的用法示例。
在下文中一共展示了es_cls_common::es_special_letters方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __
$es_errors[] = __('Please enter subscriber email address.', 'email-subscribers');
$es_error_found = TRUE;
}
$es_email_group = isset($_POST['es_email_group']) ? $_POST['es_email_group'] : '';
if ($es_email_group == '') {
$es_email_group = isset($_POST['es_email_group_txt']) ? $_POST['es_email_group_txt'] : '';
$form['es_email_group'] = $es_email_group;
} else {
$form['es_email_group'] = $es_email_group;
}
if ($form['es_email_group'] == '') {
$es_errors[] = __('Please select or create your group for this email.', 'email-subscribers');
$es_error_found = TRUE;
}
if ($form['es_email_group'] != "") {
$special_letters = es_cls_common::es_special_letters();
if (preg_match($special_letters, $form['es_email_group'])) {
$es_errors[] = __('Error: Special characters ([\'^$%&*()}{@#~?><>,|=_+\\"]) are not allowed in the group name.', 'email-subscribers');
$es_error_found = TRUE;
}
}
// No errors found, we can add this Group to the table
if ($es_error_found == FALSE) {
$action = "";
$action = es_cls_dbquery::es_view_subscriber_ins($form, "insert");
if ($action == "sus") {
$es_success = __('Email was successfully inserted.', 'email-subscribers');
} elseif ($action == "ext") {
$es_errors[] = __('Email already exist in our list.', 'email-subscribers');
$es_error_found = TRUE;
} elseif ($action == "invalid") {