11.02.21 14:49:44 #2 JMH : 45 SECOND TIME PENALTY
11.02.21 14:49:44 #2 C07P13 jmh - Lap 1 : 2:09.11
11.02.21 14:49:44 #2 C07P13 jmh - PB not saved : Lap not clean...
11.02.21 14:49:44 #2 C07P13 jmh - Finishing race : 2:54.11
11.02.21 14:49:44 #2 Race finishing...
11.02.21 14:49:44 #2 Normal race restart in : 10
11.02.21 14:49:44 #2 JMH : SPECTATED FOR SPEEDING
11.02.21 14:49:44 #2 C31P33 darrajunior - Lap 1 : 2:09.46
11.02.21 14:49:44 #2 C31P33 darrajunior - PB not saved : Lap not clean...
11.02.21 14:49:44 #2 C31P33 darrajunior - Finishing race : 2:09.46
11.02.21 14:49:45 #2 LFSW - new FBM PB by JMH: 2:09.11 (-0:16.36)
11.02.21 14:49:45 #2 C07P13 jmh - Requesting LFSW PB update...
11.02.21 14:49:45 #2 C31P33 darrajunior - Darrajunior : >:3
11.02.21 14:49:45 #2 C07P13 jmh - Leaving race...
11.02.21 14:49:45 #2 C07P00 jmh - Received LFSW PB data : 67
11.02.21 14:49:46 #2 LFSW - new FBM PB by Darrajunior: 2:09.46 (-0:15.58)
11.02.21 14:49:46 #2 C31P33 darrajunior - Requesting LFSW PB update...
11.02.21 14:49:46 #2 C31P33 darrajunior - Receiving results : 1 | False
11.02.21 14:49:46 #2 Darrajunior won the race
11.02.21 14:49:46 #2 JMH finished
11.02.21 14:49:46 #2 Race points - Darrajunior : 5
11.02.21 14:49:48 #2 C07P00 jmh - JMH : :-)
11.02.21 14:49:48 #2 C07P00 jmh - JMH : :-)
11.02.21 14:49:48 #2 C31P33 darrajunior - Darrajunior : LOL
11.02.21 14:49:49 #2 C12P34 sjb - Lap 1 : 2:13.78
11.02.21 14:49:49 #2 C12P34 sjb - PB not saved : Lap not clean...
11.02.21 14:49:49 #2 C12P34 sjb - Finishing race : 2:13.78
11.02.21 14:49:50 #2 LFSW - new FBM PB by SJB: 2:13.78 (-0:23.32)
11.02.21 14:49:50 #2 C12P34 sjb - Requesting LFSW PB update...
11.02.21 14:49:50 #2 C12P34 sjb - Receiving results : 2 | False
11.02.21 14:49:50 #2 DBunnySJB finished 2nd
11.02.21 14:49:50 #2 Race points - DBunnySJB : 4
11.02.21 14:49:51 #2 C31P33 darrajunior - Received LFSW PB data : 273
11.02.21 14:49:51 #2 C12P34 sjb - DBunnySJB : !top
11.02.21 14:49:51 #2 DBunnySJB : !top
RestartBtn=^7Please, drive ^3CLEAN AND FAIR^7, Take care in ^3TURN 1
RestartBtn=+^7Visit Us: ^3www.housedc.lolbb.com^7
RestartBtn=+Like Us on ^4Facebook^7: ^3www.facebook.com/housedc
nohup mono Airio.exe >/dev/null & echo $! > airio.pid
chmod 777 airio_starter.sh
./airio_starter.sh
<?php
php
// name of the jpg background (any size you want, mine is 400x100)
$background = "lfsstatus.jpg";
$im = imagecreatefromjpeg($background);
// edit to change textcolor e.g. black: 0, 0, 0 white: 255, 255, 255 blue: 0, 0, 255
$textcolor = imagecolorallocate($im, 0, 0, 0);
// imagestring($im, fontsize (1-5), position x, position y, text, color )
imagestring($im, 5, 7, 5, $host, $textcolor);
imagestring($im, 3, 7, 25, "Mode: ".$mode, $textcolor);
imagestring($im, 3, 7, 40, "Track: ".$track, $textcolor);
imagestring($im, 3, 7, 55, "Cars: ".$cars, $textcolor);
imagestring($im, 5, 7, 75, "Connections: ".$conns, $textcolor);
header('Content-Type: image/jpeg');
imagejpeg($im);
imagedestroy($im);
?>
<?php
RewriteEngine on
RewriteRule status.jpg$ status.php
?>
<?php
php
set_include_path(get_include_path() . PATH_SEPARATOR . './library/');
require_once 'JS/Extractor.php';
// insert the name of your server
$hostname = "Blackwood XFG XRG";
$url = "http://www.lfsworld.net/hoststatus/?h=".urlencode($hostname)."&c=1&onlycontent";
$extractor = new JS_Extractor(file_get_contents($url));
$body = $extractor->query("body")->item(0);
$data = $body->extract(array("div", array("div|span")));
// to see the array / for debug you can uncomment the following 3 lines
// echo "<pre>";
// print_r($data);
// echo "</pre>";
$host = $data[0][0];
$mode = $data[1][1];
$track = $data[2][1];
$cars = $data[3][1];
$settings = $data[4][1];
$version = $data[5][1];
$conns = $data[6][1];
$user = $data[7][0];
?>