3
$this->conn->write("getplayers\r\n");
4
$playerinfos = $this->conn->read_till('OK');
5
$arrPlayerinfo = explode("<br>",$playerinfos);
7
foreach($arrPlayerinfo as $playerinfo)
9
if(substr($playerinfo,0,8) == "charname")
11
$playerinfo = str_replace(" ","&",$playerinfo);
12
parse_str($playerinfo);
14
array_push($result, array("name" => $charname, "ip" => $ip, "host" => $host, "system" => $system, "base" => $base, "hookid" => $clientid, "ping" => $ping, "loss" => $loss));