14 Commits

Author SHA1 Message Date
9f5b42b028 webui: Allow full search on devices page (#8364)
* Update devices.inc.php

* Update devices.inc.php

* Replace $_POST with $vars

Better protection for SQL injection attempts; Need to verify other files for same issue.

* Fixed whitespace.

*sigh*

* More search options & sql injection fixes.

+Allow full search on devices page;
+Allow sysName search on alertlog page;
+Allow sysName search on alerts page;
+Allow sysName search on eventlog page;
+Allow sysName search on poll-log page;
+Allow sysName search on ports page;

*Replaced all occurrences of $_POST with $vars in librenms/html/includes/table. ($vars are sanity-checked).

* Whitespace fix

* Fixed $where & $param

* Add files via upload

* Whitespaces....

Sometimes you want'em, sometimes you hate'em.
2018-03-25 21:50:09 +01:00
e8dd72e8db feature: Support fdb table on generic devices (#6902)
* feature: support fdb table on generic devices
refactored code to use snmpwalk_group
refactored ajax table code to use joins and reduce extra queries
add indexes for device_id and port_id, drop primary index
Make all columns sortable
Fix a few other small issues

* Add index for vlan_id since that field can be searched by the user

* fix whitespace

* Rename 197.sql to 198.sql

* set row count for table
2017-06-29 21:03:56 +01:00
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
6a1fd3ec05 webui: Additional Font Awesome icons (#5572) 2017-01-25 17:42:26 +00:00
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
6f84a287b6 Fix ARP search on all ARP pages. Adapt ARP search page to use a common search variable. 2015-12-24 12:10:05 -06:00
fe86b998bf Switch device and port ARP tables to ajax
Allow sorting, filtering and paging of device and port ARP tables.
2015-12-24 10:58:12 -06:00
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
fba1e6933a removed debug 2015-07-07 23:28:00 +01:00
laf
3ed8d261a7 Fixed arp search page user perm queries 2015-07-07 23:26:03 +01:00
4497805b59 Show ifName instead of ifDescr in /search/search=arp/ 2015-05-26 17:51:28 +02:00
39f5daefee Fixed wrong graph type reference 2015-05-26 00:45:24 +02:00
laf
71f5f22387 Fixed loading.... issue when no data returned 2015-04-12 11:47:21 +01:00
laf
ad024d9055 Updated search tables for ipv4,ipv6,mac and arp 2015-04-04 11:42:30 +01:00