* Allow 'option' param in graph endpoint
* Update lint and update docs
* Uncomment api response
* Add imagedestroy on 'tobias_trim' section
* Add base64 to port endpoints also
* 'lat' and 'lng' columns added on list_devices()
* 'lat' and 'lng' columns added on device fetch
Helped by https://github.com/laf
* Commit user.name changed
* Move Billing/Bandwidth Graphs to common format, extract data generation to central function
* Add API functions to access billing graphs and graph data
* Scrutinizer fixes
* Fix transfer graphs with from/to
* Scrutinizer Fix
* Fix docs, transfer page and missing from API param
* Document and fix reducefactor, Add Graph Stats to Graph Data
* Standardise times in graphdata
* Fixed renamed function for History GraphData
* Add dependency info for api
* Fix travis CI error
* Changed to dbFetchColumn
* Add hostnames for parent devices as well as IDs
* Merged the queries as laf suggested
* add support for retrieving BGP sessions via id
* fix syntax, use router params
* use count properly
* add get_bgp docs
* streamlined get_bgp sql query
* Add Permission checks to API
* Consistent API Returns and SQL restrictions on list_devices, list_bills
* Scrut fixes
* Restore global for graph functions
* Minor fixes following review
* Refactored authorizers to classes
* Merge changes for #7335
* ! fix php 5.3 incompatibility
* Update ADAuthorizationAuthorizer.php
* Fix get_user -> getUser
* Rename AuthorizerFactory to Auth, fix interface missing functions
* Add phpdocs to all interface methods and normalize the names a bit.
* Re-work auth_test.php AD bind tests to work properly with the new class.
Reflection is not the nicest tool, but I think it is appropriate here.
Handle exceptions more nicely in auth_test.php
* Restore AD getUseList fix
Not sure how it got removed
* fix auth_test.php style
* Added support for ping only devices.
* Renamed sql-schema/206 to 207.
* Discovery tried to detect the OS when it shouldn't.
* Updated db_schema.yaml
* Added ping icon.
* Don't show unused graphs and tabs when SNMP is disabled.
* Allow the user to specify OS of ping only devices.
* Removing custom OS now changes it to 'ping'.
* Removed unnecessary use of mres().
* UI select box for SNMP enable/disable.
* Hide device_ping_perf if ping is disable on device.
* Fixed SNMP settings update status messages.
* Added functionality to add ping only devices via the web ui.
* Added ping only option to addhost.php
* Added ping only support to snmp-scan.py
* Moved sql 208 to 211
* Fixed scrutinizer issues.
* Fixed broken ossearch.
* Added ping only support to the API.
* Updated API doc.
* Added (optional) to OS and hardware description. Hid Port Settings, Applications, Modules, Storage, Processors, Memory and Components from the edit menu
* Style fix.
* Updated ping icon.
* clean() instead of mres(). More escaping. Better help in snmp-scan.py and addhost.php
* Fixed scrutinizer issue.
* Always try SNMP in snmp-scan.py, new option for it in addhost.php. Slice instead of chunk in ajax_ossuggest.php. Other minor style changes.
* Updated sql modifications to insert the new column in the same place as in db_schema.yaml.
* Refactor remove use of pear Net_IPv4 and Net_IPv6
Caution, I added tests to test the functionality of the new functions, but I'm not 100% certain the replaced usages match 100%. Please test.
Left usage in generate-iplist.php because I'm not sure the use of that script, so I didn't want to implement additional functionality to support it.
Add support for ipv6 fo ipInNetwork() function
Add phpdocs to functions
Remove accidental inclusion
Use binary operations instead of string for networKFromIp()
Tidy up binary operations in ipInNetwork()
tidy parsing cidr network
Change to a class based implementation.
Update phpdocs.
Fully catch exceptions for hex parsing.
Fix mistake.
support older phpunit versions
Fix php shifting to negative with php 5
* Fix graph authorization. Uncaught exception and checking an ipv4 against an ipv6 network == fail.
* Also remove colons from hex strings.
* Fix typo in bgp polling
Two passes of removing invalid characters from hex strings. (That way we don't mangle valid IPs)
* Fix bug get_graph_by_port_hostname() only hostname
From the documentation:
Function: get_graph_by_port_hostname top
Get a graph of a port for a particular device.
hostname can be either the device hostname or id
But the function is only works with a hostname and not with a ID.
I have modified a few things that solve the problem.
* Update api_functions.inc.php
* Fixed an issue with the output including all services from a host that had a single matched service regardless of whether they matched the filter.
* Cleaned up some bits
* Updated based on murrants suggestions
* A couple small cleanups
* api: API allow cidr network searches of the ARP table
* Allow non-encoded / in request
I also noticed that all is allowed to be called without device, which the sql query does not support.
* fix: API call for graphs not working (#6184)
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md
* updated set_image_type to use new function
* Adding location based filter for api-device calls
* I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md.
* configured linting etc, now pr should pass
* rebase and add entry to docs