fixed functions assign_existing_admin() and invite_admin() to support controller versions 5.9 and higher because of observed changes in controller behavior

Assets 2

@malle-pietje malle-pietje released this Jan 19, 2019 · 1 commit to master since this release

added function/method assign_existing_admin()
fixed code for function/method invite_admin()
minor code tweaks for improved readability

Assets 2

@malle-pietje malle-pietje released this Dec 14, 2018 · 2 commits to master since this release

made regex to extract cookies case-insensitive, though this would only be needed for corner cases this is still RFC compliant (https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2), thanks to @ericfri
changed the layout of the README file to put more emphasis on the installation options and the basic example, and less on the list of methods/functions

Assets 2

@malle-pietje malle-pietje released this Nov 5, 2018 · 3 commits to master since this release

updated both READMEs
added cmd_stat() function, can currently only be used to reset DPI counters for the current site
added optional group_id parameter to list_firewallgroups() which allows you to select a single firewall group, thanks to @VWT-Dan for the suggestion

Assets 2

@malle-pietje malle-pietje released this Oct 24, 2018 · 4 commits to master since this release

added methods stat_ips_events(), set_ips_settings_base(), supported with controllers 5.9.10 and higher
thanks go to @leonardogyn for providing access to a 5.9.29 controller and test network for test/validation purposes

Assets 2

@malle-pietje malle-pietje released this Oct 20, 2018 · 5 commits to master since this release

general code cleanup:

  • added spaces throughout Client.php following PSR-2 guidelines that were skipped in the previous commit
  • added visibility to constructor and destructor methods following PSR-2 recommendations
  • declare user and password properties and visibility following PSR-2 recommendations
  • updated README to add recently added functions/methods
  • minor general changes to the README
Assets 2

@malle-pietje malle-pietje released this Oct 10, 2018 · 6 commits to master since this release

  • added spaces throughout Client.php following PSR-2 guidelines
  • changed checks to prevent 0 (zero), and "0" values from being submitted to the API for routes where this can have negative side effects
Assets 2

@malle-pietje malle-pietje released this Oct 2, 2018 · 8 commits to master since this release

  • merged PR #28, thanks go to @jamieaitken
  • further cleanup to follow PSR-2 as much as possible
  • added stat_5minutes_gateway(), stat_hourly_gateway() and stat_daily_gateway() methods
  • added changes to ensure we always use lowercase MAC addresses in API routes and payload (we have seen several issues with controllers ignoring uppercase MAC addresses)
Assets 2

@malle-pietje malle-pietje released this Aug 28, 2018 · 11 commits to master since this release

  • added stat_speedtest_results() method/function to collect results from scheduled speed tests
  • added list_backups() method/function to list auto backups
Assets 2

@malle-pietje malle-pietje released this Aug 19, 2018 · 12 commits to master since this release

updated comments for stats-related methods/function to make clear start/end values must be provided in milliseconds
changed use of objects as payload input for json_encode, to associative arrays for consistency
added functions/methods for firewall groups: list_firewallgroups(), create_firewallgroup(), edit_firewallgroup(), delete_firewallgroup()
added checks for required boolean parameters

merged PR by @Warafux:
added edit_client_fixedip() function/method
added optional parameter to list_networkconf() to fetch config details for a specific network

clean up after resolving merge conflicts

Assets 2