พัฒนาโดย : Geolim4
Version : 1.3.0
phpBB Version(s) : phpBB 3.0.10 3.0.11
ดาวน์โหลดได้ที่ : https://www.phpbb.com/community/viewtop ... &t=2165137
เปิดไฟล์ 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
ค้นหา
โค้ด: เลือกทั้งหมด
// 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
ค้นหา
โค้ด: เลือกทั้งหมด
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