diff --git a/config.template.php b/config.template.php index 8940ba3..d460f43 100644 --- a/config.template.php +++ b/config.template.php @@ -2,7 +2,7 @@ /* The MIT License (MIT) -Copyright (c) 2015, Slooffmaster +Copyright (c) 2016, Slooffmaster Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -23,14 +23,15 @@ THE SOFTWARE. */ -$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' -$controllerversion = ''; // the version of the Controller software, eg. '4.6.6' (must be at least 4.0.0) -$cookietimeout = '3600'; // time of inactivity in seconds, after which the PHP session cookie will be refreshed - // this means the site and data collection will need to be selected again -$theme = 'bootstrap'; // your default theme of choice, pick one from the list below - // bootstrap/cerulean/cosmo/cyborg/darkly/flatly/journal/lumen/paper/ - // readable/sandstone/simplex/slate/spacelab/superhero/united/yeti -$debug = false; // set to true (without quotes) to enable debug output to the browser and PHP error log +$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' +$controllerversion = ''; // the version of the Controller software, eg. '4.6.6' (must be at least 4.0.0) +$cookietimeout = '3600'; // time of inactivity in seconds, after which the PHP session cookie will be refreshed + // after the cookie refresh the site and data collection will need to be selected again +$theme = 'bootstrap'; /* your default theme of choice, pick one from the list below + bootstrap, cerulean, cosmo, cyborg, darkly, flatly, journal, lumen, paper + readable, sandstone, simplex, slate, spacelab, superhero, united, yeti + */ +$debug = false; // set to true (without quotes) to enable debug output to the browser and the PHP error log ?> \ No newline at end of file diff --git a/index.php b/index.php index e37d5a4..1e5c6f0 100644 --- a/index.php +++ b/index.php @@ -14,13 +14,13 @@ Ubiquiti Community forums for this: https://community.ubnt.com/t5/UniFi-Wireless/Unifi-API-browser-tool-released/m-p/1392651 -VERSION: 1.0.1 +VERSION: 1.0.2 ------------------------------------------------------------------------------------ The MIT License (MIT) -Copyright (c) 2015, Slooffmaster +Copyright (c) 2016, Slooffmaster Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -56,14 +56,14 @@ assign variables which are required later on together with their default values */ $action = ''; -$siteid = ''; -$sitename = ''; +$site_id = ''; +$site_name = ''; $selection = ''; -$outputformat = 'json'; +$output_format = 'json'; $theme = 'bootstrap'; $data = ''; -$objectscount = ''; -$alertmessage = ''; +$objects_count = ''; +$alert_message = ''; $cookietimeout = '1800'; $debug = false; @@ -73,7 +73,7 @@ - if the config.php file is unreadable or does not exist, an alert is displayed on the page */ if(!is_readable('config.php')) { - $alertmessage = '