Xuất hiện những cảnh báo sau đây:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.3.33 (Linux)
File Line Function
/showthread.php 871 errorHandler->error




  • 0 Votes - 0 Average
  • 5
  • 4
  • 3
  • 2
  • 1
Chế độ chủ đề

Thêm mã PIN khi đăng nhập AdminCP
thinhnhoc
Unregistered

 
Thêm mã PIN khi đăng nhập AdminCP
Cái này gọi là mất bò với lo làm chuồng đây. Đang bị hack vừa tìm cách khắcc phục vừa viết bài chơi
[


Mở file forum/admin/inc/class_page.php
Line: 391

Code:
Code:
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
<div class="field"><input type="password" name="password" id="password" class="text_input" /></div>


Thay thế:

Code:
Code:
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
<div class="field"><input type="password" name="password" id="password" class="text_input" /></div>

<div class="label"{$login_label_width}><label for="pin">Secret PIN</label></div>
<div class="field"><input type="password" name="pin" id="pin" class="text_input" /></div>


Tiếp forum/admin/index.php
Line: 129

Code:
Code:
if($user['uid'])
{
$query = $db->simple_select("users", "*", "uid='".$user['uid']."'");
$mybb->user = $db->fetch_array($query);
}

Thay thế:

Code:
Code:
if($user['uid'])
{
$query = $db->simple_select("users", "*", "uid='".$user['uid']."'");
$mybb->user = $db->fetch_array($query);
}

if (isset($config['acp_pin']) && $mybb->input['pin'] != $config['acp_pin']) {
$default_page->show_login("Invalid PIN","error");
}

OK! sau đó mở /inc/config.php và thêm vào:

Code:
Code:
$config['acp_pin'] = 'http://haiquan.info';
***trong đó http://haiquan.info là mã PIN

Nguồn mybb.vn

Có thể liên quan đến chủ đề...
Thêm thông báo ở file đính kèm
Thêm trang upanh lên picasa cho mybb
Edit Registration Agreement _sửa điều lệ khi đăng ký
Thêm một mod soan thảo bải viết cho diển đàn
Hướng dẫn khắc phục tình trạng không đăng nhập được khi thay domain trong mybb


Các bài viết trong chủ đề này
Thêm mã PIN khi đăng nhập AdminCP - bởi thinhnhoc - 20-08-2014, 09:18 AM
RE: Thêm mã PIN khi đăng nhập AdminCP - bởi PCNDL - 20-08-2014, 10:04 PM
Có thể liên quan đến chủ đề...
Chủ đề: / Tác giả Trả lời: / Xem: Bài mới nhất




Những người đang xem chủ đề này:

Color Skins

Change Color:

Background Patterns:

Background Images:

Background Header:

Setting Panel

Main Options: