Jump to content
  • 0

How-To ? put login ip every log



  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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.