http://forum.php.pl/index.php?showtopic=23...st&p=483266Ten skrypt to jedyny jaki działa i można go fajnie zmodyfikować, ale mam pytanie, jak go przerobić aby pokazywał to w liście (no wiecie o co mi chodzi (IMG:
style_emoticons/default/biggrin.gif) )?
Znalazłem taki cos:
// internal function to parse halflife verion 1 'info' packets
function _parse_info_halflife1() {
$this->raw = substr($this->raw, 5
); // strip off response header bytes $this->data['int_ipport'] = $this->_getnullstr();
list
($this->data['int_ip'], $this->data['int_port']) = explode(':', $this->data['int_ipport']); $this->data['name'] = $this->_getnullstr();
$this->data['map'] = $this->_getnullstr();
$this->data['gamedir'] = $this->_getnullstr();
$this->data['gamename'] = $this->_getnullstr();
$this->data['totalplayers'] = $this->_getbyte();
$this->data['maxplayers'] = $this->_getbyte();
$this->data['protocol'] = $this->_getbyte(); // 47
$this->data['servertype'] = $this->_getchar();
$this->data['serveros'] = $this->_getchar();
$this->data['serverlocked'] = $this->_getbyte();
$this->data['modrunning'] = $this->_getbyte();
$this->data['modurl'] = $this->data['modrunning'] ? $this->_getnullstr() : '';
$this->data['modftp'] = $this->data['modrunning'] ? $this->_getnullstr() : '';
$this->_getnullstr(); // depreciated string, ignore it
$this->data['modver'] = $this->_getshort() . '.' . $this->_getshort();
$this->data['modsize'] = $this->_getlong();
$this->data['modserveronly'] = $this->_getbyte();
$this->data['modclientdll'] = $this->_getbyte();
return $this->data;
}
Refresh...
Ten post edytował Siper 21.11.2009, 12:42:05