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) Deadpool (Pro)
Family Guy Elvira's House of Horrors (Premium)
Foo Fighters (LE)
Foo Fighters (Pro)
Ghostbusters (Pro) Ghostbusters (Pro)
Godzilla (Pro) Godzilla (Pro)
Iron Maiden: Legacy of the Beast (Pro) Iron Maiden: Legacy of the Beast (Pro)
James Bond 007 (Pro) James Bond 007 (Pro)
Jurassic Park (Pro) Jurassic Park (Premium)
Led Zeppelin (Pro)
Munsters (Pro)
Rush (Pro) Rush (Pro)
Scooby Doo (Collectors Edition) Scooby-Doo (CE)
Spider-Man Star Wars (Comic Art Pro)
Star Wars Comic Art (Pro)
Stranger Things (Pro) Stranger Things (Pro)
Teenage Mutant Ninja Turtles (Pro)
The Mandalorian (Pro) The Mandalorian (Pro)
The Munsters (Pro)

View File

@ -6,6 +6,12 @@ if (isset($_GET["location"])) {
$game = $games[array_rand($games)]; $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> <!DOCTYPE html>
@ -20,7 +26,7 @@ if (isset($_GET["location"])) {
<h1><?=$loc ?? ""?> pin picker</h1> <h1><?=$loc ?? ""?> pin picker</h1>
<ul> <ul>
<?php if (isset($loc)) { ?> <?php if (isset($loc) || isset($pbmid)) { ?>
<p><a href=".">&lt;- back to list</a></p> <p><a href=".">&lt;- back to list</a></p>
<p>reload the page to pick a table</p> <p>reload the page to pick a table</p>
<br> <br>

View File

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