mirror of
https://github.com/Art-of-WiFi/UniFi-API-client.git
synced 2024-11-22 02:00:21 +01:00
17d895076f
- applied patches to update_switch_poe-mode.php as suggested by scrutinizer-ci.com - code clean up and improvements in preparation of support for UniFi OS-based controllers - added support for UniFi OS-based controllers, thanks to @Scyto for providing access - adapt login route and method, and base URL for UniFi OS-based controllers - automatically identify UniFi OS-based controllers, thanks to @TwitchCaptain for this and several other suggestions - relaxed URL validation to allow UniFi OS-based controllers to pass - changed default HTTP method to GET - many improvements throughout the code
26 lines
982 B
PHP
Executable File
26 lines
982 B
PHP
Executable File
<?php
|
|
/**
|
|
* Copyright (c) 2017, Art of WiFi
|
|
*
|
|
* This file is subject to the MIT license that is bundled
|
|
* with this package in the file LICENSE.md
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* Controller configuration
|
|
* ===============================
|
|
* Copy this file to your working directory, rename it to config.php and update the section below with your UniFi
|
|
* controller details and credentials
|
|
*/
|
|
$controlleruser = ''; // the user name for access to the UniFi Controller
|
|
$controllerpassword = ''; // the password for access to the UniFi Controller
|
|
$controllerurl = ''; // full url to the UniFi Controller, eg. 'https://22.22.11.11:8443', for UniFi OS-based
|
|
// controllers a port suffix isn't required, no trailing slashes should be added
|
|
$controllerversion = ''; // the version of the Controller software, e.g. '4.6.6' (must be at least 4.0.0)
|
|
|
|
/**
|
|
* set to true (without quotes) to enable debug output to the browser and the PHP error log
|
|
*/
|
|
$debug = false;
|