[RC] Forbidden Password ระบบป้องกัน ป้อน password ง่ายเพื่อป้องกันโดนแฮก

แนะนำ Mod ต่างๆ ของ PHPBB3 แนะนำความสามารถ ของ mod การติดตั้ง การเข้ากันได้กับเวอร์ชั่น

Moderator: mindphp

ภาพประจำตัวสมาชิก
M004
PHP VIP Members
PHP VIP Members
โพสต์: 1323
ลงทะเบียนเมื่อ: 01/01/1970 7:00 am

[RC] Forbidden Password ระบบป้องกัน ป้อน password ง่ายเพื่อป้องกันโดนแฮก

โพสต์ที่ยังไม่ได้อ่าน โดย M004 »

รายละเอียดเกี่ยวกับ [RC] Forbidden Password ระบบป้องกัน ป้อน password ง่ายเพื่อป้องกันโดนแฮก เพื่อ ความปลอดภัยของ user จึงจำเป็นต้องมีการ กรอก password ง่ายๆ ไว้ เพื่อป้องกันไม่ให้ user ใส่ password ง่ายๆ
พัฒนาโดย : Geolim4
Version : 1.3.0
phpBB Version(s) : phpBB 3.0.10 3.0.11
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2165137
1.png
1.png (70.95 KiB) Viewed 1712 times
2.png
2.png (109.87 KiB) Viewed 1712 times
3.png
3.png (55.73 KiB) Viewed 1712 times
เปิดไฟล์ includes/functions.php
ค้นหา

โค้ด: เลือกทั้งหมด

 includes/functions.php
เติมหลัง

โค้ด: เลือกทั้งหมด

            //----Start Forbidden Passwords
            if ( !function_exists('forbidden_pwd') )
            {
                include($phpbb_root_path . 'includes/fbd_pwd.' . $phpEx);
            }
            if (forbidden_pwd($password, array(), 'login', $user->data['username'], '') )
            {
                $user->data['fp_pwd_update'] = true;
                $db->sql_query('UPDATE ' . USERS_TABLE . "
                        SET fp_pwd_update =" . FP_SQL_TRUE .  "
                        WHERE username='" . $db->sql_escape($user->data['username']) . "'");
            }
            //----End Forbidden Passwords 
เปิดไฟล์ includes/session.php
ค้นหา

โค้ด: เลือกทั้งหมด

        // Does the user need to change their password? If so, redirect to the 
เติมก่อน

โค้ด: เลือกทั้งหมด

        //----Start Forbidden Passwords
        if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $this->data['is_registered'] && !$auth->acl_get('u_bypass_fwd_pwd') && $this->page['page_name'] != "ajaxchecks.$phpEx")
        {
            // Make sure we're not already where we need to be (and we're not in a popup box).
            if ( strpos($this->page['query_string'], 'mode=reg_details') === false  && strpos($this->page['query_string'], 'mode=logout') === false  && !empty($this->data['fp_pwd_update']))
            {
                $this->add_lang('mods/info_acp_fbd_pwd');
                $redirect = meta_refresh(5, append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=profile&mode=reg_details'));
                trigger_error($this->lang('ACP_FBD_PWD_DETECTED','<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=profile&mode=reg_details') . '">', '</a>'), E_USER_WARNING);
            }
        }
        //----End Forbidden Passwords 
เปิดไฟล์ ncludes/acp/acp_users.php
ค้นหา

โค้ด: เลือกทั้งหมด

                        case 'leave_nr': 
เติมก่อน

โค้ด: เลือกทั้งหมด

                        //----Start Forbidden Passwords
                        case 'check_fbw_pwd':
                            if ( !function_exists('forbidden_pwd') )
                            {
                                include($phpbb_root_path . 'includes/fbd_pwd.' . $phpEx);
                            }
                            $pwd_result = acp_check_pwd($user_row['user_password'], $user_row['username'], $user_row['user_email']);
                            if ( $pwd_result )
                            {
                                trigger_error($user->lang[$pwd_result]. adm_back_link($this->u_action . '&u=' . $user_id), E_USER_WARNING);
                            }
                            else
                            {
                                trigger_error($user->lang['USER_ADMIN_CHECK_PWD_OK'] . adm_back_link($this->u_action . '&u=' . $user_id), E_USER_NOTICE);
                            }
                        break;
                        //----End Forbidden Passwords 
.
ติดตั้งไฟล์

โค้ด: เลือกทั้งหมด

fbd_pwd_install.php
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 63