From 1f2c9e508ef228f94b05ce047c79aeff8d978170 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Wed, 19 Jun 2019 22:01:50 +0200 Subject: [PATCH] Added variable fileformat --- dist/boilerplate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/boilerplate.php b/dist/boilerplate.php index ed288ff..521013a 100644 --- a/dist/boilerplate.php +++ b/dist/boilerplate.php @@ -8,13 +8,14 @@ require_once 'vendor/autoload.php'; // EDIT ME! $pairingfile = 'your pairing-file.sws'; +$fileformat = 'Pairtwo-6'; // Possible values: Pairtwo-5, Pairtwo-6 if (!file_exists($pairingfile)) { trigger_error('Your file is not set or doesn\'t exist! Edit the file: ' . __FILE__ . ' and try again', E_USER_ERROR); } -$reader = IOFactory::createReader('Pairtwo-6'); +$reader = IOFactory::createReader($fileformat); $reader->read($pairingfile); // From here on you can start. Please use the examples on https://github.com/jeroened/libpairtwo/wiki