Commit Graph

25 Commits

Author SHA1 Message Date
Tony Murray
561846a44b fix: Fiedx issues with new config init (#8242)
* Fix non-config defaults

* update processConfig and remove file
2018-02-12 09:15:44 +00:00
Tony Murray
1d777693e1 feature: New IP parsing classes. Removes usage of Pear Net_IPv4 and Net_IPv6. (#7106)
* 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)
2017-08-08 14:14:58 -05:00
Neil Lathwood
1bbbaff58b refactor: Moved ifLabel -> cleanPort and updated the usage (#6288)
* refactor: Moved ifLabel -> cleanPort and updated the usage

* added list of tags allowed

* few updates as per comments from @murrant

* Added simple unit tests

* double display for javascript popover

* Remove ifNameDescr() function
Fix realtime port page

* remove accidental temp code

* Remove double display calls in ajax tables
2017-04-04 08:08:23 +01:00
Richard Mayhew
6a1fd3ec05 webui: Additional Font Awesome icons (#5572) 2017-01-25 17:42:26 +00:00
Neil Lathwood
9b9c10e204 fix: Cleanup printing ifAlias (#4874) 2016-12-12 14:25:48 +00:00
Tony Murray
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
Job Snijders
ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
Adam Amstrong
4db1454e92 move from port_id to interface_id. make ports discovery only discover. add some cleaner functions. add a tiny bit of alerting infrastructure.
git-svn-id: http://www.observium.org/svn/observer/trunk@3195 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-16 13:25:50 +00:00
Adam Amstrong
7584bba741 more migration to new URL system
git-svn-id: http://www.observium.org/svn/observer/trunk@2492 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-18 13:11:04 +00:00
Adam Amstrong
1b956853ad cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@2340 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-17 19:21:20 +00:00
Adam Amstrong
6bcc4f4e48 fix some stuff, break some stuff (ports disaply is missing some stuff atm)
git-svn-id: http://www.observium.org/svn/observer/trunk@2290 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-12 22:14:56 +00:00
Tom Laermans
6e5558db82 cleanups etc
git-svn-id: http://www.observium.org/svn/observer/trunk@2213 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-01 17:26:06 +00:00
Tom Laermans
173b095964 remove some leading slashiz
git-svn-id: http://www.observium.org/svn/observer/trunk@2085 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-15 14:10:24 +00:00
Adam Amstrong
d77765262a interface -> port
git-svn-id: http://www.observium.org/svn/observer/trunk@2048 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-09 16:08:39 +00:00
Tom Laermans
9fd77cd884 allow disabling of alerting per device, allow override of syscontact, minor cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1995 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 16:28:24 +00:00
Adam Amstrong
d302d1a4ce cosmetic change to print channel type for ADSL
git-svn-id: http://www.observium.org/svn/observer/trunk@1994 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-30 12:07:08 +00:00
Tom Laermans
ef6406d4c9 more cleanups, remove some FIXMEs
git-svn-id: http://www.observium.org/svn/observer/trunk@1983 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-28 10:39:55 +00:00
Tom Laermans
f7ecdd3bac cleanup html entities etc, to make htmltidy a bit happier (but not blissful at all yet)
git-svn-id: http://www.observium.org/svn/observer/trunk@1981 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-28 09:11:05 +00:00
Tom Laermans
2afb522333 just another cleanup commit, don't mind me...
git-svn-id: http://www.observium.org/svn/observer/trunk@1885 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-16 18:28:52 +00:00
Tom Laermans
f6756489af replace hand cursor by pointer, fix by Michael Robbert, closes bug FS#126
git-svn-id: http://www.observium.org/svn/observer/trunk@1783 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-04 16:07:30 +00:00
Adam Amstrong
8143340a02 rename merge generateiflink && generate_if_link to generate_port_link, rename generatedevicelink to generate_device_link
git-svn-id: http://www.observium.org/svn/observer/trunk@1624 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-02 22:09:52 +00:00
Adam Amstrong
3d937d28e9 graphing system updates
git-svn-id: http://www.observium.org/svn/observer/trunk@1599 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-01 14:17:06 +00:00
Adam Amstrong
3634fa3c16 some hacky changes to device.php to display port
git-svn-id: http://www.observium.org/svn/observer/trunk@1430 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-19 11:12:28 +00:00
Adam Amstrong
a0d752b118 reverse polarity!
git-svn-id: http://www.observium.org/svn/observer/trunk@1413 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-18 12:03:26 +00:00
Adam Amstrong
501b01c7c7 more ADSL updates
git-svn-id: http://www.observium.org/svn/observer/trunk@1412 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-18 11:38:38 +00:00