27 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
crcro b63c2ac3bf webui: device page refresh (#7963)
* various device page style fixes and alignments with new look

* blank line fix
2017-12-28 23:36:49 -06:00
Florian Beer ad58af6e6c webui: Update services pages
* Update services page

- Bring services overview page in line with the rest of the interface
using bootstrap classes, panels, colors etc.
- Getting rid of most of the tables using bootstrap's grid classes.

Device services page might need a bit more work but I'm not ready yet.

* Fix style check issues

* Bigger status labels
2017-02-22 23:53:17 +00:00
FTBZ ba2f0d8b51 fix: Remove the non-functional buttons for non-admins in devices/services (#5856)
* Remove the non-functional buttons for non-admins in devices/services

* Remove the non-functional buttons for non-admins in devices/services
2017-02-10 21:21:40 +00:00
Richard Mayhew 47397d0083 webui: Updated icons to use Font Awesome (#5468) 2017-01-21 11:24:05 +00:00
Bennett Blodinger 07574b27d8 Move to Font Awesome
Keeps the look more in line with the navigation bar icons.
In the future with Bootstrap 4, Glyphicons will not be included, so this
starts the transistions away.
2016-09-22 10:44:17 -04: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
laf f3ee9dcc2e Fixed php short tags 2016-05-02 18:43:06 +00:00
Daniel Preussker 975ddbc517 Revert "Fixed php short tags :/" 2016-05-02 20:19:18 +02:00
laf a14ae0bc18 Fixed php short tags :/ 2016-05-02 18:09:58 +00:00
Aaron Daniels eeb3dff393 - Use Nagios alerting: 0 = Ok, 1 = Warning, 2 = Critical
- Update documentation
- Moved SQL for upstream changes
2016-03-29 20:15:42 +10:00
Aaron Daniels 0d6cfec589 Nagios Services
- Moved check-services.php to a poller module
    - Added performance data collection to the poller
    - Centralised DB functions to includes/services.inc.php
    - Created add/edit/delete functions off the device, services page
    - Removed legacy edit/delete interfaces.
    - Moved and modified check.inc scripts
    - Documentation Updates
    - Modified services table
2016-03-15 22:23:14 +10:00
Job Snijders ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
Tom Laermans 8df2b9b3f5 remove legacy variables, hopefully i didn't mess anything up
git-svn-id: http://www.observium.org/svn/observer/trunk@3134 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-06 18:38:11 +00:00
Tom Laermans 613e8b1e29 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3117 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-02 22:02:30 +00:00
Adam Amstrong a12c71df4e quadgraphs -> graphrow
git-svn-id: http://www.observium.org/svn/observer/trunk@3093 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 16:49:38 +00:00
Adam Amstrong 77d055f9d6 fix services stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@3090 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 13:05:52 +00:00
Tom Laermans ab2668981c Add page title changing infrastructure, do it for device tabs already
git-svn-id: http://www.observium.org/svn/observer/trunk@2690 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 14:27:21 +00:00
Tom Laermans b6e7b4ef7a remove almost all base_url
git-svn-id: http://www.observium.org/svn/observer/trunk@2648 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-05 10:55:10 +00:00
Adam Amstrong 99c6fc3e65 vastly simplified .htaccess and cleaned up how we use variables a little
git-svn-id: http://www.observium.org/svn/observer/trunk@2446 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-12 04:57:56 +00:00
Adam Amstrong 27117e2c25 fixes to layout. fix netstats icmp/snmp poller (specify mib name)
git-svn-id: http://www.observium.org/svn/observer/trunk@2444 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-12 02:35:58 +00:00
Adam Amstrong 2978386af4 add missing ( from query call, capitalise SQL keywords and put backticks around field names
git-svn-id: http://www.observium.org/svn/observer/trunk@2348 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-19 08:50:26 +00:00
Adam Amstrong a209de0ca8 db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2325 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-15 16:19:54 +00:00
Adam Amstrong d4a29c41a5 more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2324 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-15 15:29:47 +00:00
Tom Laermans 9de8c08a65 remove REQUEST_URI from everywhere
git-svn-id: http://www.observium.org/svn/observer/trunk@2143 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-22 21:01:39 +00:00
Adam Amstrong c95516a02f fix device/services. rename from svc, add new menubar
git-svn-id: http://www.observium.org/svn/observer/trunk@2055 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-11 09:31:32 +00:00