array( 'method'=>"GET", 'header'=>"User-Agent: pgg-room-viewer_php +mailto:magmaus3@disroot.org \r\n" ) ); $context = stream_context_create($opts); // Here you can change the URL of the server $data = file_get_contents("http://pgg-server.glitch.me/scripts/getrooms.php", false, $context); ?>
Name | Players | Password | PvP | Edit | Country | Gamemode | "; parse_str($data, $arr); if ($arr['cant'] != "0") { foreach (range(0, $arr['cant']-1) as $i) { $i = strval($i); echo "
---|---|---|---|---|---|---|
" . $arr["roomname$i"] . " | " . $arr["players$i"] . "/" . $arr["maxplayers$i"] ." | idk | " . $arr["pvp$i"] . " | " . $arr["edit$i"]. " | " . $arr["country$i"] . " | " . $arr["gamemode$i"] . " |
No active games |