From bb3bcc68658a4e1da08b8865cd733e9880bc8e1f Mon Sep 17 00:00:00 2001 From: Date: Sun, 25 Mar 2018 06:19:01 -0500 Subject: [PATCH] Added steps to GUI, added Popn --- index.php | 40 +++++++++++++++++++++++++++++++++++++++- settings.json | 2 +- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index f8aa817..fb1a650 100644 --- a/index.php +++ b/index.php @@ -3,6 +3,8 @@ $IIDX_Location = "192.168.1.80"; $IIDX_Port = 4500; $SDVX_Location = "192.168.1.81"; $SDVX_Port = 4500; +$POPN_Location = "192.168.1.82"; +$POPN_Port = 4500; if (!file_exists('cards.json')) { fopen('cards.json','w'); } // if cards.json does not exist, we create it @@ -153,6 +155,20 @@ file_put_contents('settings.json',json_encode($settings)); width: 90%; margin: auto; } + #step_one p { + text-align: center; + width: 90%; + margin: auto; + font-weight: bold; + font-size: 150%; + } + #step_two p { + text-align: center; + width: 90%; + margin: auto; + font-weight: bold; + font-size: 165%; + } .trigger { display: block; margin: auto; @@ -474,11 +490,30 @@ if (isset($_POST['trigger']) && ($_POST['trigger'] == 'edit' || $_POST['trigger' } fclose($fp); } - } + } + if($slot == 'POPN') // edit p1 + { + $fp = fsockopen($POPN_Location, $POPN_Port, $errno, $errstr, 5); + if (!$fp) + { + echo "$errstr ($errno)
\n"; + } + else + { + fwrite($fp, "1:" . $_POST['id']); + while (!feof($fp)) + { + echo fgets($fp, 128); + } + fclose($fp); + } + } } ?>
+

Step One: Select Machine

+

+
+

Step Two: Select Card

+