id date racer distance fuel laps joined win second third races_finished qual pole drags dragwins modified
261948 2008-10-06 paXton 88048495 2700517 20617 1675 94 173 173 997 233 36 39 15 2008-10-06 23:54:06
265402 2008-10-07 paXton 90862729 2753836 20770 1678 94 173 173 1003 234 36 39 15 2008-10-07 23:54:09
265858 2008-10-08 paXton 90862729 2753836 20770 1678 94 173 173 1003 234 36 39 15 2008-10-08 03:04:04
1. Team 74: 116 laps ( 2 pitstops ) 3:00:34.69
2. Team 3: 116 laps ( 3 pitstops ) +00:05.32 (3:00:40.01)
3. Team 8: 116 laps ( 4 pitstops ) +01:03.98 (3:01:38.67)
4. Team 58: 115 laps ( 2 pitstops ) +1 lap (3:02:08.05)
5. Team 7: 114 laps ( 3 pitstops ) +2 laps (3:02:02.41)
6. Team 33: 113 laps ( 4 pitstops ) +3 laps (3:01:10.20)
7. Team 918: 112 laps ( 4 pitstops ) +4 laps (3:00:53.66)
8. Team 59: 106 laps ( 2 pitstops ) +10 laps (3:02:04.92)
9. Team 75: 104 laps ( 3 pitstops ) +12 laps (3:01:50.42)
10. Team 46: 104 laps ( 7 pitstops ) +12 laps (3:02:17.12)
11. Team 69: 101 laps ( 6 pitstops ) +15 laps (3:01:58.73)
12. Team 12: 94 laps ( 5 pitstops ) +22 laps (3:00:44.03)
13. Team 2: 32 laps ( 1 pitstops ) +84 laps DNF
14. Team 45: 23 laps ( 0 pitstops ) +93 laps DNF
[Teams]
team count=20
Team 1=Alias Racing,Astro [ BJRL ],Franke,Andrew G
Team 2=Team Inferno,dpalonso,commander,bash0r,csurdongulos,bruno7529,edgar,Palee
Team 3=eXcite-Racing,Mr.Sing,Michael Leisterer,cyprien
Team 4=FAC - Finnish Automobile Club,plehto,oxygene,azaazaa,profi
Team 5=Karma Racing,Goucha,Hash_Gordon,Tifozi
Team 6=FPR - Factory Phantom Racing,Mr Soocerer,DonTob,nobo
Team 7=Cheryl's Team Racing,clare b sheppard,ksheppard
Team 8=TPS Racing,paXton,Big.H,T-o-D Zoom,Mr.Iron,M. Oliver
Team 9=MCS720,Drizzt_ZA,YorkHunt
Team 10=LFSLA,locovich,diego fr,becker,nach
Team 11=n1 - NordicOne Racing,J.s.S,jahvetti
Team 12=Fluid Racing,indie,GTR_PT,Max-Biaggi
Team 13=Racing Minds,Carlson74,w1ldport75,commandermas,ThrILL
Team 14=Czech e-Racing Team (CeRT),KID222,Itar (CZ)
Team 15=MCS720,Nucron,BoristheBlade
Team 16=LFSLA,-javif-,ariel_eb,nexxus,germangoose
Team 17=Racing Minds,CRC Snightlo,Ultra15,SRR Marty
Team 18=Karma Racing,PUPILO,_CoNcEpT_
Team 19=n1 - NordicOne Racing,Seme,Primoz
Team 20=Kaaz Gaming,LFSn00b,Dennis93
penalty disconnect=0
penalty pitted=1
[HKEY_LOCAL_MACHINE\SOFTWARE\Logitech\WingMan Software\CurrentVersion\GlobalDeviceSettings\DrivingForcePro]
"OperatingRange"=dword:0000021c
<?php
function getHost($hostname)
{
$rawList = array();
$file = file_get_contents("http://www.lfsworld.net/pubstat/get_stat2.php?version=1.2&user=" . LFS_USER . "&pass=" . md5(LFS_PASS) . "&action=hosts&c=2&ps=" . LFSW_PREMIUM_PUBSTAT);
if (isLFSWorldError($file)) return 0;
$rawList = @gzuncompress($file);
while(true)
{
//grab the next chunk of host data
$blob = substr($rawList, $offset, 53);
//If it's less than 53 then it can't be valid
if(strlen($blob) == 53)
{
//(Re-)Init tmp arrays to parse into
$data = $racers = array();
//Min len is 53. Parse and advance the offset to the end of this chunk
$data = unpack('a32hostName/c1serverType/c1majorVersion/c1minorVersion/c1testVersion/c1track/c1config/c1reversed/c1maxPlayers/L1cars/L1rules/c1laps/c1qualifyMins/x2/c1players', $blob);
$offset+= 53;
//Extract the entire player chunk, split it in to smaller chunks of 24, and explode
$racers = explode('&', chunk_split(substr($rawList, $offset, $data['players']*24), 24, '&'));
//This method always adds an empty entry so just pop it off
array_pop($racers);
//Trim the guff and advance the offset to the next chunk
$racers = array_map('rtrim', $racers);
$offset += $data['players']*24;
/*
//Laps parsing.
$data['hours'] = 0;
//Check if laps are literal
if($data['laps'] > 100)
{
if($data['laps'] < 191)
{
//Laps are in 10 step increment range (101-191)
$data['laps'] = (($data['laps'] - 100) * 10) + 100;
}
else
{
//Laps are hours
$data['hours'] = $data['laps'] - 190;
$data['laps'] = 0;
}
}
*/
//Formatting
//Compound the 3 integers that make up the track in to 1 var and dump the excess
$data['track'] = $data['track'].$data['config'].$data['reversed'];
unset($data['config'], $data['reversed']);
//Put the racers in the output
$data['playerNames'] = implode('&',$racers);
//Version formatting
$data['majorVersion'] /= 10;
$data['minorVersion'] = chr($data['minorVersion']);
if($data['hostName']==$hostname) return $data;
}
else
{
break;
}
}
return 0;
}
?>