Skip to content

Commit 611a561

Browse files
committed
UniFi API browser 2.0.2
code update to also support PHP version 5.6
1 parent 9e6deac commit 611a561

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Please note that the bundled API client supports many more API endpoints, not al
9393

9494
### Requirements
9595

96-
- a web server with PHP and cURL modules installed (tested on apache2 with PHP Version 5.6.1 and cURL 7.42.1 and with PHP 7.2.5 and cURL 7.60.0)
96+
- a web server with PHP and cURL modules installed (confirmed to work on Apache with PHP Version 5.6.32 and cURL 7.29.0 and with PHP 7.2.5 and cURL 7.60.0)
9797
- network connectivity between this web server and the server (and port) where the UniFi controller is running (in case you are seeing errors, please check out [this issue](https://github.com/Art-of-WiFi/UniFi-API-browser/issues/4))
9898
- clients using this tool should have internet access because several CSS and JS files are loaded from public CDNs.
9999

@@ -156,7 +156,7 @@ Other included libraries:
156156

157157
### Security notice
158158

159-
We highly recommend enabling user name/password authentication by creating a `config/users.php` based on the included `config/users-template.php` file. When creating passwords and their SHA512 hashes for entry in the `config/users.php` file, please make sure to use strong random passwords.
159+
We **highly recommend** enabling the user name/password authentication feature by creating a `config/users.php` based on the included `config/users-template.php` file. When creating passwords and their SHA512 hashes for entry in the `config/users.php` file, please make sure to use **strong random passwords**.
160160

161161
Please refer to the instructions in the `config/users-template.php` file for further details
162162

ajax/fetch_sites.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,15 @@
103103
];
104104
}
105105

106+
/**
107+
* sort the sites array by full name
108+
*/
106109
usort($results['data'], function($a, $b) {
107-
return $a['site_full_name'] <=> $b['site_full_name'];
110+
if ($a['site_full_name'] == $b['site_full_name']) {
111+
return 0;
112+
}
113+
114+
return ($a['site_full_name'] < $b['site_full_name']) ? -1 : 1;
108115
});
109116

110117
/**

common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* with this package in the file LICENSE.md
88
*
99
*/
10-
define('TOOL_VERSION', '2.0.1');
10+
define('TOOL_VERSION', '2.0.2');
1111

1212
/**
1313
* gather some basic information for the About modal

0 commit comments

Comments
 (0)