====== q3astatus.php ====== This snippet displays the current map and players on your [[quake3arena]] server on your homepage. Just include it somewhere. \n"; exit; } else { fwrite($fp,"\xFF\xFF\xFF\xFF".$query); $answer = fread($fp, 10000); fclose($fp); } $rows = split("\n",$answer); preg_match('#mapname\\\\(.*?)\\\\#',$rows[1],$matches); $map = $matches[1]; ?> \\2',$name); $name = preg_replace('!(\^1)(.*?)(?=\^\d|$)!','\\2',$name); $name = preg_replace('!(\^2)(.*?)(?=\^\d|$)!','\\2',$name); $name = preg_replace('!(\^3)(.*?)(?=\^\d|$)!','\\2',$name); $name = preg_replace('!(\^4)(.*?)(?=\^\d|$)!','\\2',$name); $name = preg_replace('!(\^5)(.*?)(?=\^\d|$)!','\\2',$name); $name = preg_replace('!(\^6)(.*?)(?=\^\d|$)!','\\2',$name); $name = preg_replace('!(\^7)(.*?)(?=\^\d|$)!','\\2',$name); print ""; print ""; print ""; print ""; print ""; } ?>
Frags Player Ping
$frags$name$ping
Map: