This is on my mind.
But, where I need put this code?
In server.php, or _data_inc.php, and where?
Thx.
echo "{$strServer}: <strong><a href=\"lfs://|" . get_clearHostname($output["Name"]) . "|0|" . $output["Version"][0] . $output["Version"][1] . "|/\"" . get_hostname($output["Name"]) . "</a></strong><br />\n";
// Print out what we did ;-)
echo "<body bgcolor=\"$bgColor\"><font face=\"Verdana\" size=\"2\">";
foreach($server as $output) {
if($output["Version"] == "") {
for($j = 0;$j < $i; $j++) next($server);
echo "{$strServer}: <strong>" . get_hostname(key($server)) . "</strong><br />\n{$strStatus}: <strong><font color=\"#C60000\">{$strOffline}</font></strong><br /><br />\n";
$i++;
}
else {
echo "{$strServer}: <strong><a href=\"lfs://|" . get_clearHostname($output["Name"]) . "|0|" . $output["Version"][0] . $output["Version"][1] . "|/\"" . get_hostname($output["Name"]) . "</a></strong><br />\n";
if($showInfo[0] == 1)
echo "{$strVersion}: " . $output["Version"] . "<br />\n";
if($showInfo[8] == 1)
echo "{$output["Access"]}<br />\n";
if($showInfo[9] == 1)
echo "{$strServerRules}:<br />\n<ul>" . $output["Rules"] . "</ul>\n";
if($showInfo[2] == 1)
echo "{$strTrack}: " . $output["Trackconfig"] . "<br />\n";
if($showInfo[3] == 1)
echo "{$strCars}: " . $output["Cars"] . "<br />\n";
if($showInfo[6] == 1)
echo "{$strRacelength}: " . $output["Laps"] . " " . $output["LapsHours"] . "<br />\n";
if($showInfo[5] == 1) {
if($output["Qualmins"] == '0')
$showQual = $strNone;
else
$showQual = $output["Qualmins"];
echo "{$strQualification}: " . $showQual . "<br />\n";
}
if($showInfo[1] == 1)
echo "{$strPlayersConnected}: " . $output["PlayersOn"] . "/" . $output["MaxPlayers"] . "<br />\n";
if($showInfo[7] == 1) {
if($output["Racers"] == '')
$showRacers =" {$strNone}";
else
$showRacers = $output["Racers"];
echo "{$strRacersOnline}:<br />". $showRacers . "\n";
}
echo "<br /><br />";
$i++;
}
}
echo "{$strServer}: <strong><a href=\"http://www.lfsworld.net/pubstat/live_progress.php?host=" . get_clearHostname($output["Name"]) . "\">" . get_hostname($output["Name"]) . "</a></strong><br />\n";
echo "{$strServer}: <strong><a href=\"http://www.lfsworld.net/pubstat/live_progress.php?host=" . get_clearHostname($output["Name"]) . "\" target=\"_blank\">" . get_hostname($output["Name"]) . "</a></strong><br />\n";
// Print out what we did ;-)
echo "<body bgcolor=\"$bgColor\" style=\"color: #A7A7A7;\"><font face=\"Verdana\" size=\"1\">";
foreach($server as $output) {
if($output["Version"] == "") {
for($j = 0;$j < $i; $j++) next($server);
echo "{$strServer}: <strong>" . get_hostname(key($server)) . "</strong><br />\n{$strStatus}: <strong><font color=\"#C60000\">{$strOffline}</font></strong><br /><br />\n";
$i++;
}
else {
echo "{$strServer}: <strong>" . get_hostname(key($server)) . "</strong><br />\n";
if($showInfo[0] == 1)
echo "{$strVersion}: " . $output["Version"] . "<br />\n";
if($showInfo[8] == 1)
echo "{$output["Access"]}<br />\n";
if($showInfo[9] == 1)
echo "{$strServerRules}:<br />\n<ul>" . $output["Rules"] . "</ul>\n";
if($showInfo[2] == 1)
echo "{$strTrack}: " . $output["Trackconfig"] . "<br />\n";
if($showInfo[3] == 1)
echo "{$strCars}: " . $output["Cars"] . "<br />\n";
if($showInfo[6] == 1)
echo "{$strRacelength}: " . $output["Laps"] . " " . $output["LapsHours"] . "<br />\n";
if($showInfo[5] == 1) {
if($output["Qualmins"] == '0')
$showQual = $strNone;
else
$showQual = $output["Qualmins"];
echo "{$strQualification}: " . $showQual . "<br />\n";
}
if($showInfo[1] == 1)
echo "{$strPlayersConnected}: " . $output["PlayersOn"] . "/" . $output["MaxPlayers"] . "<br />\n";
if($showInfo[7] == 1) {
if($output["Racers"] == '')
$showRacers =" {$strNone}";
else
$showRacers = $output["Racers"];
echo "{$strRacersOnline}:<br />". $showRacers . "\n";
}
echo "<br /><br />";
$i++;
}
}