ẢNH MINH HỌA
Hướng dẫn :
Tải về file sau và giải nén ra : TẢI VỀ
1. Copy file login.lua vào ../script/ui/windows (để có thư mục này bạn phải biết unpack 2 file CP)
Mở file login.lua và tìm đến những dòng sau, đổi 127.0.0.1 thành ip hoặc tên miền của bạn
btnRegister = function (self, tbGameObj)
Sdk:OpenUrl("http://127.0.0.1/zhmm.php") /*Link quên mật khẩu*/
end;
btnPassword = function (self, tbGameObj)
Sdk:OpenUrl("http://127.0.0.1/register.php") /*Link đăng kí*/
end;
local szUrl = "http://127.0.0.1/verification.php?account="..szAccount.."&password="..szPassword..""
Sdk:DoHttpRequest(szUrl, "", function(szResult)
if szResult == "NoAccount" then
Ui:OpenWindow("MessageBox", "Tài khoản không tồn tại")
return
end
if szResult == "LoginFail" then
Ui:OpenWindow("MessageBox", "Sai mật khẩu")
return
end
if szResult == "Accountban" then
Ui:OpenWindow("MessageBox", "Tài khoản của bạn đang tạm khóa!")
return
end
if szResult == "LoginOK" then
Login:ConnectGateWay(szAccount, szToken)
end
end)
2. Mở vps lên copy những file còn lại vào /var/www/html/
+ import file info.sql vào data
+ Mở file connect.php sửa lại thông số cho phù hợp để kết nối với data của bạn
Ok xong rồi đó, thế là sv của bạn có check pass rồi đó, chúc thành công :)

Không có nhận xét nào:
Đăng nhận xét