17 Commits

Author SHA1 Message Date
Tony Murray 32a7c50189 Use Laravel authentication (#8702)
* Use Laravel for authentication
Support legacy auth methods
Always create DB entry for users (segregate by auth method)

Port api auth to Laravel

restrict poller errors to devices the user has access to

Run checks on every page load.  But set a 5 minute (configurable) timer.
Only run some checks if the user is an admin

Move toastr down a few pixels so it isn't as annoying.

Fix menu not loaded on laravel pages when twofactor is enabled for the system, but disabled for the user.
Add two missing menu entries in the laravel menu

Rewrite 2FA code
Simplify some and verify code before applying

Get http-auth working
Handle legacy $_SESSION differently.  Allows Auth::once(), etc to work.

* Fix tests and mysqli extension check

* remove duplicate Toastr messages

* Fix new items

* Rename 266.sql to 267.sql
2018-09-11 07:51:35 -05:00
Tony Murray 7250376104 refactor: Don't access $_SESSION directly for Auth (#8513)
* Don't access $_SESSION directly for Auth

* fix style

* add property annotations
2018-04-07 21:55:28 +01: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
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 d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Paul Gear a02871263c Fix up some unclear/missing copyrights 2015-06-16 08:27:58 +10:00
laf 3b61e82d39 Fixes query to limit devices/ports users can see 2015-05-29 00:39:05 +01:00
timdufrane e2ddf3daf0 Fix top port overlay issues
Should not look like crap on small screens anymore
2014-03-28 13:22:22 -04:00
laf 3fbd56b190 Top X boxes can now be switched off 2014-02-23 12:10:37 +00:00
laf d9194a12b8 Changed top X boxes to fade rather than scroll 2014-02-05 22:33:33 +00:00
laf fc7404a3c4 Updates bringing forms / tables inline with Bootstrap v3, also adds Global search box 2014-01-13 10:08:59 +00:00
Paul Gear ab23cbe144 Tidy top 10 displays 2013-11-26 15:32:53 +10:00
Paul Gear a5b152cd98 Next front page improvement
- load all files in include directory
- half-baked attempt to make HTML output more readable
- add top hosts by total bits box
- horrible hack to generate_device_link() to make it possible to insert the device_bits graph
2013-11-26 14:35:23 +10:00
Paul Gear 663c3649a9 Remove commented code used for reference while creating the top ports screen 2013-11-26 12:33:09 +10:00
Paul Gear fbceedf3b7 Clean up sizing of top 10 graph 2013-11-26 11:21:21 +10:00
Paul Gear 7e6e66f362 Make top 10 box actually useful:
- Fix overlib popup when host metadata contains quotes
- Only show ports with traffic
- Add host & port links, and port graph
2013-11-26 11:03:00 +10:00
Paul Gear a0979e85cd Tidy up formatting; proof-of-concept right side box 2013-11-19 08:57:43 +10:00