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:
- Blindly sending a 'header.htm' to the client.
- Reading and parsing the score file.
- 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.
- 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:
Excelente, facil y super rapido en la conversion, lo recomiendo / Easy to use and fast. Thanks
Post a Comment