• 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.

Share mod tự động xóa nick không kích hoạt 24h phpbb3x

Admin

Well-Known Member
Staff member
Administrator
Tên mod: Delete Inactive User Timer
Tác giả: TCR_500
Công dụng: Tự động xóa nick member đã đăng kí tài khoản nhưng không kích hoạt, mod sẽ tự động xóa nick member sau 24 tiếng để tránh tình trạng spam nick trên diễn đàn
Tương thích: Từ phpBB v3.0.7 trở lên
Chèn mod:
Mở commond.php tìm
PHP:
?>
Chèn trước:
PHP:
    $usercheck_time = time();
    $sql_usercheck = "SELECT * FROM " . USERS_TABLE . " WHERE user_inactive_reason='1' ";
    $result_usercheck = $db->sql_query($sql_usercheck);
    while($row_usercheck = $db->sql_fetchrow($result_usercheck))
    {
       $user_id = $row_usercheck['user_id'];
       $user_inactive_time = $row_usercheck['user_inactive_time'];
       $user_regdate = $row_usercheck['user_regdate'];
       if($user_inactive_time == $user_regdate and $usercheck_time == $user_inactive_time + (24 * 60 * 60))
       {
          $sql_usercheck_remove = "DELETE FROM " . USERS_TABLE . " WHERE user_inactive_time='$user_inactive_time' ";
          $result_usercheck_remove = $db->sql_query($sql_usercheck_remove);
       }
    }
Thấy hay thanks nào
 

Facebook Comments

New posts New threads New resources

Back
Top