update pins

This commit is contained in:
Ben Harris 2023-07-09 12:35:02 -04:00
parent 16b05171aa
commit 7e0f5e62b8
3 changed files with 22 additions and 15 deletions

View File

@ -1,17 +1,18 @@
Avatar (Pro)
Avengers: Infinity Quest (pro)
Avengers: Infinity Quest (Pro)
Cactus Canyon (Remake LE)
Deadpool (Pro)
Family Guy
Elvira's House of Horrors (Premium)
Foo Fighters (LE)
Foo Fighters (Pro)
Ghostbusters (Pro)
Godzilla (Pro)
Iron Maiden: Legacy of the Beast (Pro)
James Bond 007 (Pro)
Jurassic Park (Pro)
Led Zeppelin (Pro)
Munsters (Pro)
Jurassic Park (Premium)
Rush (Pro)
Scooby Doo (Collectors Edition)
Spider-Man
Star Wars Comic Art (Pro)
Scooby-Doo (CE)
Star Wars (Comic Art Pro)
Stranger Things (Pro)
Teenage Mutant Ninja Turtles (Pro)
The Mandalorian (Pro)
The Munsters (Pro)

View File

@ -6,6 +6,12 @@ if (isset($_GET["location"])) {
$game = $games[array_rand($games)];
}
}
if (isset($_GET["pbmid"])) {
$pbmid = $_GET["pbmid"];
$json = json_decode(file_get_contents("https://pinballmap.com/api/v1/locations/$pbmid/machine_details.json"));
foreach ($json->machines as $pin) { $games[] = $pin->name; }
$game = $games[array_rand($games)];
}
?>
<!DOCTYPE html>
@ -20,7 +26,7 @@ if (isset($_GET["location"])) {
<h1><?=$loc ?? ""?> pin picker</h1>
<ul>
<?php if (isset($loc)) { ?>
<?php if (isset($loc) || isset($pbmid)) { ?>
<p><a href=".">&lt;- back to list</a></p>
<p>reload the page to pick a table</p>
<br>

View File

@ -1,13 +1,13 @@
Addams Family, The
Beatles
Big Guns
Black Knight
Centaur
Cirqus Voltaire
Comet
Cyclone
Diner
Elvira's House of Horrors (Premium Edition)
Elvira's House of Horrors (LE)
Fire!
FunHouse
Godzilla (Premium)
Hercules
Hook
@ -23,11 +23,11 @@ Sinbad
Spy Hunter
Star Wars
Star Wars (Premium)
Star Wars Episode I
Star Wars Episode 1
Star Wars Trilogy
Taxi
Terminator 2: Judgment Day
The Beatles (Gold Edition)
The Addams Family
The Godfather (LE)
The Mandalorian (Premium)
Toy Story 4 (LE)