KOD:
<?php $adres = '91.203.223.83:'; for( $x = 27015; $x <= 27030; $x++ ) $ips[] = $adres.$x; //Jakie dane chcemy wyświetlać: //Wpisz ! na poczatku nazwy, aby oznaczy ja jako wartość TAK/NIE np hasło $what_to_display["info"] = "" => "activeplayers", ); function sort_multi($data) { foreach($data as $key => $value) { $val = $value["kills"].".".$value["onlinetime"]; $new += $this_data; } return($new); } function two_digit($string) { { $string = "0".$string; } return($string); } require_once("class_PQ.php"); foreach($ips as &$ip) { //Tworzymy klasę //Pobieramy dane $infor = $pq_data->query_info($ip); $rules = $pq_data->query_rules($ip); $players = $pq_data->query_players($ip); { $data = array_merge($pq_data->query_info($ip), $pq_data->query_rules($ip), $pq_data->query_players($ip)); //Wyświetlamy dane: foreach($what_to_display["info"] as $nazwa => $wartosc) { $bool_var = false; if($bool_var) { if($data[$wartosc] == "1") { } else { } } else { } } $suma_wszystkich_sum = $suma_wszystkich_sum + $data[$wartosc]; } } ?>