We are many to have written some code for our web sites.
We should create a new package to offer our works for others in a single tool
But this kind of tools uses many CPU and XMLRPC requests with dedicated ManiaPlanet servers. This can generate some ingame lags.
So I am also working on a cache system for both datas (xml) and generated pictures.
I don't get the information directly from the servers but I am using xml files storing informations gathered from each servers we have (6 Ubuntu). A php scipt on each of these servers generates an on-demand XML file using GbxRemote to comunicate with Maniaplanet Servers.
Every 5 minutes these files are updated by a cron task. Files are also updated each time a visitor display the server list, but only once maximum each 10 seconds.
This allows to get very quickly the information when we want to refresh the list. And, in the worst case, the displayed information is a 5 minutes old one.
I am using the same way for pictures. Each time a GD2 picture is generated, a lot of CPU is used and it can slow up the web server. So I store many pictures for each state (easy when only server name and number of players are used). And I use these stored pictures in my Web page
I will soon share my code and optimized it to diplay more informations as efficiently as I can ^^.
There is my actual beta version :
http://speedstuntmod.fr/serverlist/index2.php
LORDMORGOTH : About what you want exactly, contact me by PM and I will give you the code I wrote for my Example. But I will replace TCP/IP information by the server login and the environment
