$username = '******';
//username for controller
$password = '******';
//Password for controller
$baseurl = 'https://127.0.0.1:8443';
//URL to access controller
$controllerversion = "4.7.6";
//Version of controller
$ssid = "SSID";
//SSID you want people to connect to with this ticket
$wpapsk = "WPA";
//Security password for the SSID above
$printername = "VoucherPrinter";
//Name of the printer from PC
$unifidata = new unifiapi($username, $password, $baseurl, $siteid, $controllerversion);
$loginresults = $unifidata->login();
if ($loginresults === 400) {
    echo '<div class="alert alert-danger" role="alert">HTTP response status: 400<br>This is probably caused by a Unifi controller login failure, please check your credentials in config.php</div>';
}
////////////////////////////////////
//
//You shouldn't need to change anything under this line unless you want to customize the script.
//
////////////////////////////////////
?>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>UniFi Easy Voucher Creator</title>