• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng chống auto reg nick hàng loạt (flood nick) khi đăng ký cho johncms4.4

Admin

Well-Known Member
Staff member
Administrator
Các bạn mở tập tin registration.php tìm
PHP:
// Если регистрация закрыта, выводим предупреждение
if (core::$deny_registration || !$set['mod_reg']) {
    echo '<p>' . $lng_reg['registration_closed'] . '</p>';
    require('incfiles/end.php');
    exit;
}
Thêm vào đằng sau
PHP:
//Cam khong dang ky qua 3 lan
$ktip = mysql_result(mysql_query("SELECT COUNT(`ip`) FROM `users` WHERE `ip`='" . core::$ip . "'"), 0);
if ($ktip == 3) {
          echo '<div class="rmenu">Chúng tôi không cho phép đăng kí quá ba nick cho một người sử dụng.</div>'; 
require('incfiles/end.php'); 
    exit;
}
Thanks lấy tinh thần nào
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top