Author Topic: Random concept (player registration on forum for semi-private server)  (Read 779 times)

0 Members and 1 Guest are viewing this topic.

Offline nub

  • Major
  • *
  • Posts: 56
Hai,

here is the concept:
A server admin wants only people who are registered to a certain forum to be able to join his server. He installs a Bot which is watching a certain thread on the forum for players registrations:
[Registration]
Name=PlayerName
Password=md5sum(password)

At this point the Bot could look if the registered user meets certain conditions like number of posts must be above a specific valueor level of warnings etc. If this player is not registered yet the bot will save player name and md5sum(password) to a file and upload it to the server. The server on the other hand could have a ban list with banned names. So that the bot can act appropriately.

When the registered user joins a server he has a certain amount of time to login to the server with his password and name (server side scripting). He is kicked/ banned when time expires.

I think this might be useful because it'd be difficult for banned people to come back, if they need a certain amount of posts on the forum or other requirements. I just don't know if there is already something similar that might make the aforementioned redundant.

kthxbai
Можно зарезать, украсть и всё-таки быть счастливым...

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
you'd need to use geturl(), which is not threaded afaik... In other words if you make this, whenever someone logs in, the soldat server will freeze until it gets a reply from the http server =/ So you'd either need to restrict login to only certain times (first minute of a map or smth, so that people dont lag shile playing because of logins) or make a diff system, like for example load a php-generated file with all the logins in the beginning of each map and read that when someone joins

Offline nub

  • Major
  • *
  • Posts: 56
My idea was actually to write a perl script which would run on a home computer or a remote server (it's not meant to be a Soldat server script) and check the forum thread at a rate of about 10 to 20 minutes. The perl script would then upload a file with user account data to the Soldat server directory, where the game server would just need to read the file every now and then.
Можно зарезать, украсть и всё-таки быть счастливым...