From 7a915230f457942273bdac90e7266b70ea788b29 Mon Sep 17 00:00:00 2001 From: Date: Sun, 25 Mar 2018 05:45:32 -0500 Subject: [PATCH] added ability to select different computers and communicate using nCard0 --- index.php | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ settings.json | 1 + 2 files changed, 60 insertions(+) create mode 100644 settings.json diff --git a/index.php b/index.php index d9d98fa..ab838bd 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,9 @@ \n"; + } + else + { + fwrite($fp, "1:" . $_POST['id']); + while (!feof($fp)) + { + echo fgets($fp, 128); + } + fclose($fp); + } + } + elseif($slot == 'IIDX_P2') // edit p1 + { + $fp = fsockopen($IIDX_Location, $IIDX_Port, $errno, $errstr, 5); + if (!$fp) + { + echo "$errstr ($errno)
\n"; + } + else + { + fwrite($fp, "2:" . $_POST['id']); + while (!feof($fp)) + { + echo fgets($fp, 128); + } + fclose($fp); + } + } + if($slot == 'SDVX') // edit p1 + { + $fp = fsockopen($SDVX_Location, $SDVX_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); + } + } } ?>
diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..3c638e9 --- /dev/null +++ b/settings.json @@ -0,0 +1 @@ +{"rcard":["IIDX_P1","IIDX_P2","SDVX"],"card":{"background":"backgrounds\/programmedsun.png","subtitle":"","icon":"","width":"400","height":"260"},"sort-key":"name","sort-order":"asc","animations":"on","regex":"cards\/monopole-$0.txt"} \ No newline at end of file