本文整理汇总了PHP中check::user方法的典型用法代码示例。如果您正苦于以下问题:PHP check::user方法的具体用法?PHP check::user怎么用?PHP check::user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类check
的用法示例。
在下文中一共展示了check::user方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$subdomains_query = $dbh->select("subdomains");
$tldonly = $dbh->config("tldonly");
if ($dbh->num_rows($subdomains_query) == 0 || $tldonly == "1") {
$packages_list_array["CANHASSUBDOMAIN"] = "";
} else {
$packages_list_array["CANHASSUBDOMAIN"] = '<option value="sub">Subdomain</option>';
}
$maincontent = style::replaceVar("tpl/order/packages-list.tpl", $packages_list_array);
} else {
if ($_POST['submitfinish']) {
check::empty_fields(array("coupon"));
if (main::errors()) {
$order_form_array['ERRORS'] = style::replaceVar("tpl/order/errors.tpl", array()) . "<br><br>";
} else {
//We don't check that the TOS is checked because it will be seen as an empty field and get caught by check:empty_fields.
if (!check::user($postvar['username'])) {
main::errors(nl2br("The username was either taken or was in an invalid format.\n\n Usernames:\n 1.) Must be between 4-8 characters long\n 2.) Must not start with a number\n 3.) Must be alphanumeric"));
}
if (!check::pass($postvar['password'], $postvar['confirmp'])) {
main::errors(nl2br("Your passwords either do not match or contain invalid characters. (< and > are not allowed. O>.<O Nor is #"));
}
if (!check::email($postvar['email'])) {
main::errors(nl2br("Your email address didn't match one or more of the following:\n\n Your email address:\n 1.) Must be in the correct format\n 2.) Must not be associated with another client\n 3.) If you're using an email address hosted with us, please make sure your email address has the proper \"MX\" or \"A\" DNS record."));
}
if (!check::firstname($postvar['firstname'])) {
main::errors(nl2br("In our system, your first and last name may only contain letters and the following characters:.' - and space."));
}
if (!check::lastname($postvar['lastname'])) {
main::errors(nl2br("In our system, your first and last name may only contain letters and the following characters:.' - and space."));
}
if (!check::address($postvar['address'])) {