mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-25 15:57:41 +01:00
Added variable fileformat
This commit is contained in:
parent
aa82381e45
commit
1f2c9e508e
3
dist/boilerplate.php
vendored
3
dist/boilerplate.php
vendored
@ -8,13 +8,14 @@ require_once 'vendor/autoload.php';
|
|||||||
|
|
||||||
// EDIT ME!
|
// EDIT ME!
|
||||||
$pairingfile = 'your pairing-file.sws';
|
$pairingfile = 'your pairing-file.sws';
|
||||||
|
$fileformat = 'Pairtwo-6'; // Possible values: Pairtwo-5, Pairtwo-6
|
||||||
|
|
||||||
|
|
||||||
if (!file_exists($pairingfile)) {
|
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);
|
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);
|
$reader->read($pairingfile);
|
||||||
|
|
||||||
// From here on you can start. Please use the examples on https://github.com/jeroened/libpairtwo/wiki
|
// From here on you can start. Please use the examples on https://github.com/jeroened/libpairtwo/wiki
|
||||||
|
Loading…
Reference in New Issue
Block a user