Beruflich Dokumente
Kultur Dokumente
Mở file Register.php
Tìm:
//+--------------------------------------------
//| Find the highest member id, and increment it
//| auto_increment not used for guest id 0 val.
//+--------------------------------------------
$flood_check = $DB->fetch_row();
Tìm:
//+--------------------------------------------
//| Insert into the DB
//+--------------------------------------------
unset($db_string);
//+--------------------------------------------
//| Insert into the custom profile fields DB
//+--------------------------------------------
$custom_fields['member_id'] = $member['id'];
$db_string = $DB->compile_db_insert_string($custom_fields);
unset($db_string);
//+--------------------------------------------
$validate_key = md5( $std->make_password() . time() );
$time = time();
if ($coppa != 1)
{
if ( ($ibforums->vars['reg_auth_type'] == 'user') or ($ibforums->vars['reg_auth_type'] ==
'admin') ) {
// We want to validate all reg's via email, after email verificiation has taken place,
// we restore their previous group and remove the validate_key
if ( $ibforums->vars['reg_auth_type'] == 'user' )
{
$this->email->get_template("reg_validate");
$this->email->build_message( array(
'THE_LINK' => $this-
>base_url_nosess."?act=Reg&CODE=03&uid=".urlencode($member_id)."&aid=".urlencode($v
alidate_key),
'NAME' => $member['name'],
'MAN_LINK' => $this->base_url_nosess."?act=Reg&CODE=05",
'EMAIL' => $member['email'],
'ID' => $member_id,
'CODE' => $validate_key,
)
);
$this->email->send_mail();
}
else if ( $ibforums->vars['reg_auth_type'] == 'admin' )
{
$this->output = $this->html->show_preview( $member );
}
if ($ibforums->vars['new_reg_notify']) {
$this->email->build_message( array(
'DATE' => $date,
'MEMBER_NAME' => $member['name'],
)
);
$this->page_title = $ibforums->lang['reg_success'];
else
{
if ($ibforums->vars['new_reg_notify']) {
$this->email->get_template("admin_newuser");
$this->email->build_message( array(
'DATE' => $date,
'MEMBER_NAME' => $member['name'],
)
);
$std->boink_it($ibforums->base_url.'&act=Login&CODE=autologin&fromreg=1');
}
}
else
{
// This is a COPPA user, so lets tell them they registered OK and redirect to the form.
}
Thay bằng:
//+---------------------------------------------------------
//| Insert into the DB
//| This code was edited by BabyWolf to anti-flood member
//+----------------------------------------------------------------
unset($db_string);
//+--------------------------------------------
//| Insert into the custom profile fields DB
//+--------------------------------------------
$custom_fields['member_id'] = $member['id'];
$db_string = $DB->compile_db_insert_string($custom_fields);
unset($db_string);
//+--------------------------------------------
if ($coppa != 1)
{
if ( ($ibforums->vars['reg_auth_type'] == 'user') or ($ibforums->vars['reg_auth_type'] ==
'admin') ) {
// We want to validate all reg's via email, after email verificiation has taken place,
// we restore their previous group and remove the validate_key
if ( $ibforums->vars['reg_auth_type'] == 'user' )
{
$this->email->get_template("reg_validate");
$this->email->build_message( array(
'THE_LINK' => $this-
>base_url_nosess."?act=Reg&CODE=03&uid=".urlencode($member_id)."&aid=".urlencode($v
alidate_key),
'NAME' => $member['name'],
'MAN_LINK' => $this->base_url_nosess."?act=Reg&CODE=05",
'EMAIL' => $member['email'],
'ID' => $member_id,
'CODE' => $validate_key,
)
);
$this->email->send_mail();
}
else if ( $ibforums->vars['reg_auth_type'] == 'admin' )
{
$this->output = $this->html->show_preview( $member );
}
if ($ibforums->vars['new_reg_notify']) {
$this->email->get_template("admin_newuser");
$this->email->build_message( array(
'DATE' => $date,
'MEMBER_NAME' => $member['name'],
)
);
$this->page_title = $ibforums->lang['reg_success'];
$this->nav = array( $ibforums->lang['nav_reg'] );
}
else
{
if ($ibforums->vars['new_reg_notify']) {
$this->email->get_template("admin_newuser");
$this->email->build_message( array(
'DATE' => $date,
'MEMBER_NAME' => $member['name'],
)
);
$std->boink_it($ibforums->base_url.'&act=Login&CODE=autologin&fromreg=1');
}
}
else
{
// This is a COPPA user, so lets tell them they registered OK and redirect to the form.
Mở file lang_register.php
Thêm đoạn:
$lang['err_flood_check'] = "Bạn phải chờ thêm 120 phút nữa để đăng ký một tài khoản mới.";