Jump to content

How-To ? put login ip every log


Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Open input_auth.cpp and find this:

DBManager::instance().EscapeString(szLogin, sizeof(szLogin), login, strlen(login));

and add under that this:

DBManager::instance().DirectQuery("INSERT INTO log.newlogins ('ip','account','date') VALUES ('%d','%s','NOW()')",inet_ntoa(d->GetAddr().sin_addr),szLogin);
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.