"; $content = json_decode(file_get_contents("http://".$server_settings['ip'].":".$server_settings['port']."/info.json"), true); $img_d64 = $content['icon']; if($content): $gta5_players = file_get_contents("http://".$server_settings['ip'].":".$server_settings['port']."/players.json"); $content = json_decode($gta5_players, true); $pl_count = count($content); $SRV_STATUS = "Online"; if($img_d64) { print "
"; } print "

$server_settings[title]

"; print "

Players: $pl_count / $server_settings[max_slots]

"; else: print "

$server_settings[title]

"; $SRV_STATUS = "Offline"; endif; print "

Status: $SRV_STATUS

"; ?>