Thursday, March 29, 2007

Tetrinet-X scores on a webpage

My home server (saladrex, FreeBSD machine) is now running a TetriNET server (tetrinet-x). Today I have written a small script which parses the game.winlist file the TetriNET server produces and displays it as HTML you design. Generally it does the following:
  1. Blindly sending a 'header.htm' to the client.
  2. Reading and parsing the score file.
  3. Sending out the content of a 'bit.htm' for each score field, and replacing $name with the name of the score holder and $score with the score value.
  4. Blindly sending a 'footer.html' to the client.
So far it can only cover one winlist file. Though I am working on it! Tested on IIS and Apache 2; and sorry for the missing help file: Too lazy!

Download (Sample HTML/CSS included)

1 comment:

Anonymous said...

Excelente, facil y super rapido en la conversion, lo recomiendo / Easy to use and fast. Thanks