From 82861c0f2e2bccf9c9d938f1dd3813a82a32d064 Mon Sep 17 00:00:00 2001 From: malle-pietje Date: Wed, 27 Oct 2021 15:35:33 +0200 Subject: [PATCH] UniFi API browser 2.0.20 - updated links in the About modal now that dereferer.org is no longer available - updated PHP API client to 1.1.73 --- .gitignore | 5 +- ajax/fetch_collection.php | 5 +- common.php | 4 +- composer.lock | 12 +- templates/components/about_modal.html.twig | 8 +- vendor/art-of-wifi/unifi-api-client/README.md | 5 +- .../examples/test_connection.php | 27 ++--- .../unifi-api-client/src/Client.php | 103 +++++++++++------- vendor/composer/InstalledVersions.php | 10 +- vendor/composer/installed.json | 14 +-- vendor/composer/installed.php | 10 +- 11 files changed, 114 insertions(+), 89 deletions(-) diff --git a/.gitignore b/.gitignore index 44ed971..638fd02 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Ignore personal config file +# Ignore personal config files config/config.php config/users.php @@ -11,4 +11,5 @@ desktop.ini .Spotlight-V100 .Trashes ehthumbs.db -Thumbs.db \ No newline at end of file +Thumbs.db +/.idea diff --git a/ajax/fetch_collection.php b/ajax/fetch_collection.php index 8560251..753400e 100755 --- a/ajax/fetch_collection.php +++ b/ajax/fetch_collection.php @@ -74,7 +74,7 @@ 'data' => [] ]; -$output_method = 'json'; +$output_method = 'json'; if (!empty($_SESSION['controller'])) { $method = ''; @@ -118,7 +118,8 @@ $params = [null, null, $gateway_stats_attribs]; break; case 'stat_monthly_gateway': - $params = [null, null, $gateway_stats_attribs]; } + $params = [null, null, $gateway_stats_attribs]; + } } if (!empty($method) && !empty($site_id)) { diff --git a/common.php b/common.php index 07a5893..e93a04a 100755 --- a/common.php +++ b/common.php @@ -5,7 +5,7 @@ * * This file is subject to the MIT license that is bundled with this package in the file LICENSE.md */ -define('TOOL_VERSION', '2.0.19'); +define('TOOL_VERSION', '2.0.20'); /** * gather some basic information for the About modal @@ -48,4 +48,4 @@ function getClientVersion() } } return 'unknown'; -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock index 3cfdbfb..a68315b 100755 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "art-of-wifi/unifi-api-client", - "version": "v1.1.72", + "version": "v1.1.73", "source": { "type": "git", "url": "https://github.com/Art-of-WiFi/UniFi-API-client.git", - "reference": "9cca43557c7f6454eb044d5c04a676630825872a" + "reference": "310abc43b52518853b671e3fa46423c007ccac79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Art-of-WiFi/UniFi-API-client/zipball/9cca43557c7f6454eb044d5c04a676630825872a", - "reference": "9cca43557c7f6454eb044d5c04a676630825872a", + "url": "https://api.github.com/repos/Art-of-WiFi/UniFi-API-client/zipball/310abc43b52518853b671e3fa46423c007ccac79", + "reference": "310abc43b52518853b671e3fa46423c007ccac79", "shasum": "" }, "require": { @@ -54,9 +54,9 @@ ], "support": { "issues": "https://github.com/Art-of-WiFi/UniFi-API-client/issues", - "source": "https://github.com/Art-of-WiFi/UniFi-API-client/tree/v.1.1.72" + "source": "https://github.com/Art-of-WiFi/UniFi-API-client/tree/v1.1.73" }, - "time": "2021-10-19T08:39:17+00:00" + "time": "2021-10-23T09:14:25+00:00" }, { "name": "kint-php/kint", diff --git a/templates/components/about_modal.html.twig b/templates/components/about_modal.html.twig index b2bd8ea..5ac12d0 100755 --- a/templates/components/about_modal.html.twig +++ b/templates/components/about_modal.html.twig @@ -11,23 +11,23 @@