Đóng lại!  Bạn chưa là thành viên của Blog 12B TVT. Hãy click vào đây để đăng ký làm thành viên và tham gia viết bài nhé!

Share code Laptop8x.com

[ 2008-08-05 08:11:09 | Tác giả: bvl91 ]
Cỡ chữ: Lớn | Bình thường | Nhỏ

Demo : http://laptop8x.com
Hướng dẫn sửa 1 sô lối:

Nếu ko đăng nhập đc admincp. Bạn sửa như sau
Các bạn làm như sau nhé .
tìm file index.php trong thư mục admincp/modules/login

Tìm đoạn sau :
Trích dẫn

$login['username'] = cstr( $HTTP_POST_VARS['username'] );
$login['password'] = encrypt( cstr( $HTTP_POST_VARS['passwd'] ) );

Thay bằng

Trích dẫn
$login['username'] = $HTTP_POST_VARS['username'];
$login['password'] = md5( $HTTP_POST_VARS['passwd'] );

và thay pass admin trong phpmyadmin thành e10adc3949ba59abbe56e057f20f883e - > 123456

Vậy là xong ^_^

vào dc admincp nhưng change pass hoặc tao user pass mới nhưng ko đăng nhập lại được bỉ lỗi. Cách sữa như sau :
Bạn vào admincp/modules/teacher/teacher_sql.php

Tìm đến

Trích dẫn
function insert_user_sql($t)
{
global $db;
$t['txt_pass']=encrypt($t['txt_pass']);

Sửa thành

Trích dẫn
function insert_user_sql($t)
{
global $db;
$t['txt_pass']=md5($t['txt_pass']);

Tìm tiếp

Trích dẫn
function update_user_sql($t,$id)
{
global $db;
if($t['txt_pass'])
{
$t['txt_pass']=encrypt($t['txt_pass']);

Thay thành

Trích dẫn
function update_user_sql($t,$id)
{
global $db;
if($t['txt_pass'])
{
$t['txt_pass']=md5($t['txt_pass']);

Vậy là ok rùi ^_^

**************** Hãy cùng chia sẻ với bạn bè bằng cách ****************

Copy đường link dưới đây gửi đến nick yahoo bạn bè!

Bài Viết Ngẫu Nhiên:
  • Pinnacle Studio Ultimate 12.0.0.6163 + Plugins & Addons
  • Đại Hội hở hang của các Sao Hollywood
  • Paula v1
  • Softgroup .NET ListView v2.5.3394
  • [English Study] - Powerful English Speaking
  • FontDoctor for Windows v2.6.1
  • iPhone and iPod Touch Apps & Games Collection
  • Driver.Checker.2.7.3.Datecode.20090618 Kiểm tra all driver cho máy tính
  • 1 Skin Home Giáng Sinh Cực Vip
  • [English Study] -Cambridge Preparation for the TOEFL Test Book with CD-ROM, 3rd + 4th Edition

  • Hiện chưa có lời bình nào cho bài viết này.

    Gởi Ý Kiến
    Hình vui
    [smile] [confused] [cool] [cry]
    [eek] [angry] [wink] [sweat]
    [lol] [stun] [razz] [redface]
    [rolleyes] [sad] [yes] [no]
    [heart] [star] [music] [idea]
    Có thể dùng BBCode
    Tự nhận Link
    Hiển thị Smilies
    Ẩn comment
    Tài khoản:   Mật khẩu:   Đăng Ký?