本文整理汇总了PHP中BuckysUser::checkDailyUserLimit方法的典型用法代码示例。如果您正苦于以下问题:PHP BuckysUser::checkDailyUserLimit方法的具体用法?PHP BuckysUser::checkDailyUserLimit怎么用?PHP BuckysUser::checkDailyUserLimit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BuckysUser
的用法示例。
在下文中一共展示了BuckysUser::checkDailyUserLimit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: buckys_redirect
buckys_redirect("/index.php", MSG_INVALID_REQUEST, MSG_TYPE_ERROR);
}
BuckysUser::verifyAccount($email, $token);
buckys_redirect("/index.php");
}
// Check CAPTCHA and create new account
if (isset($_POST['action']) && $_POST['action'] == 'create-account') {
$recaptcha_challenge_field = '';
$recaptcha_response_field = '';
if (!DEVELOPER_MODE) {
$recaptcha_challenge_field = $_POST["recaptcha_challenge_field"];
$recaptcha_response_field = $_POST["recaptcha_response_field"];
}
$resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, $_SERVER["REMOTE_ADDR"], $recaptcha_challenge_field, $recaptcha_response_field);
if ($resp->is_valid) {
if (!BuckysUser::checkDailyUserLimit()) {
render_result_xml(['status' => 'error', 'message' => '<p class="message error">' . sprintf(MSG_DAILY_ACCOUNTS_LIMIT_EXCEED_ERROR, USER_DAILY_LIMIT_ACCOUNTS) . '</p>']);
exit;
}
$newID = BuckysUser::createNewAccount($_POST);
render_result_xml(['status' => !$newID ? 'error' : 'success', 'message' => !$newID ? buckys_get_messages() : MSG_NEW_ACCOUNT_CREATED]);
} else {
render_result_xml(['status' => 'error', 'message' => '<p class="message error">' . ($resp->error == 'incorrect-captcha-sol' ? 'The captcha input is not correct!' : $resp->error) . '</p>']);
}
exit;
} else {
if (isset($_POST['action']) && $_POST['action'] == 'reset-password') {
if (!buckys_check_form_token()) {
exit;
}
BuckysUser::resetPassword($_POST['email']);