'); echo($server->RealmSelection()); echo(''); $data = file($gmlog); $radku = count($data); $i = 0; $db->select_db($Config['Mangos']['DatabaseCharacters']); while($i < $pocet_radku) { $radek = $radku - 1; $pole = explode(' ', $data[$radek]); if($pole[3] == 'announce') $prikaz = 'announce ...'; else { $prikaz = explode('[', $pole[3].' '.$pole[4].' '.$pole[5].' '.$pole[6].' '.$pole[7].' '.$pole[8].' '.$pole[9]); $prikaz = $prikaz[0]; } $prikaz_pole = explode('[', $pole[3].' '.$pole[4].' '.$pole[5].' '.$pole[6].' '.$pole[7].' '.$pole[8].' '.$pole[9]); $hrac_pole = explode('Player:', $data[$radek]); $hrac = explode(' ', $hrac_pole[1]); $vybran_pole = explode('Selected:', $data[$radek]); $vybran = explode(' ', $vybran_pole[1]); if($vybran[1] == 'player') { $guid_pole = explode('GUID:', $vybran_pole[1]); $guid = explode(')]', $guid_pole[1]); $DbResult = $db->query('SELECT name FROM characters WHERE guid='.$guid[0]); if($DbResult->num_rows > 0) { $radek = $DbResult->fetch_assoc(); $vybran_radek = $radek['name']; $vybran = 'hráč '.$vybran_radek; } else $vybran = 'neznámý hráč'; } else $vybran = $vybran[1]; echo(''); $i = $i + 1; $radku = $radku - 1; } echo('
ČasPříkazGMVybrán
'.$pole[0].' '.$pole[1].''.$prikaz.''.$hrac[1].''.$vybran.'
'); ?>