Commit Graph

79 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
a83e126b40 refactor: Remove inappropriate usages of truncate() (#5028)
Where truncate() is used as substr(), replace with substr()
2016-11-20 11:12:25 +00:00
crcro
80497f5295 fix: Ignore meraki bad_uptime #4691 2016-10-08 18:48:11 +01:00
crcro
f06b0ffb66 fix: device with no uptime (#4625)
fix: Add checks for devices with no uptime over snmp #4587
2016-09-27 21:07:42 +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
laf
f2cd332b91 Updated old frontpage to use new services format 2016-06-20 23:00:40 +01:00
laf
e0f14798fe Updated services box to be 2 for down 2016-05-03 22:15:29 +00:00
laf
b9e95b702d Updated userlevel >= 10 checks to use functions 2015-11-12 19:28:19 +00:00
Arjit Chaudhary
dca4f7ba85 Use bootstrap alert class for device down boxes 2015-09-28 00:33:50 +05:30
laf
4b49c148b6 Added mysqli support 2015-08-08 19:27:18 +00:00
laf
02f0ffe573 Fixed some front page issues 2015-08-04 19:34:52 +00:00
laf
2e24c633c9 Added Syslog, Eventlog and Globe Map widgets 2015-08-01 15:36:15 +00:00
laf
8f282c5174 Tidy up + new tiles 2015-07-22 22:04:33 +01:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
6496e6ece4 Consistent date formatting from MySQL 2015-05-22 13:38:52 +01:00
laf
ffdece9538 Stop boxes appearing when the device is down 2015-05-22 07:43:13 +01:00
laf
cb702577fc updated the query for the alert log 2015-04-12 15:09:32 +01:00
Rosiak
d0997d09d4 Print alert state and a matching glyphic
- Print alert state on default front page and on alert-log page.
Prints the state and a matching glyphicon.
2015-03-03 18:48:40 +01:00
Rosiak
8c2f629e14 Change Default Page View
- Add print-alerts code
 - Change the view of the lower part of the front page from 12 columns
to 2 x 6 columns
 - Add alertlog entries to the new column
2015-02-20 00:33:49 +01:00
Neil Lathwood
2cb5d727b4 Updated to support a demo user 2015-02-16 23:45:28 +00:00
Neil Lathwood
7feaf2fcba Moved the 10 limit for down boxes to config option 2014-10-07 19:37:52 +00:00
laf
d1bc21bf58 Added a LIMIT 10 into all the front page boxes 2014-10-03 12:00:05 +01:00
laf
22dfd5f64d Updated to fix scrutinizer issues 2014-06-26 00:21:22 +01:00
laf
bb7708cd03 Updated queries for non-admin users to filter devices 2014-06-25 14:51:50 +01:00
Paul Gear
737394ebbe Use narrower column for vertical status summary 2014-06-17 07:07:55 +10:00
laf
012ba6f9f8 Fixed issues with stray div tags 2014-06-15 14:48:07 +01:00
laf
b55ed32aa8 Fixed the site to be more mobile friendly - at least the home page and navbar 2014-06-15 01:38:55 +01:00
Paul Gear
968a6ee9c4 Add vertical option for summary 2014-06-14 09:31:22 +10:00
Paul Gear
2b047f62b6 Start at fixing up front page and moving top 10 into plugins 2014-06-14 07:55:17 +10:00
laf
02792176fa Updated most files to use dbFacile 2014-03-12 22:21:33 +00:00
Paul Gear
bcd4710973 Merge pull request #134 from laf/issue-133
Tidied up syslog on various pages to use bootstrap
2014-03-03 10:19:59 +10:00
laf
ab12c91e32 Tidied up syslog on various pages to use bootstrap 2014-02-28 22:19:39 +00:00
laf
5a995022dc Tidied up eventlog on various pages to use bootstrap 2014-02-28 22:02:39 +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
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
a0979e85cd Tidy up formatting; proof-of-concept right side box 2013-11-19 08:57:43 +10:00
Paul Gear
d859f1d20e Move last remaining styles from front page to CSS 2013-11-10 15:19:10 +10:00
Paul Gear
6e9623c96d Continue moving styles to CSS
- Also started standardised infrastructure for minigraphs to make it easy to create them anywhere
2013-11-10 14:08:02 +10:00
Paul Gear
15f21cefce More removing of code with embedded styles 2013-11-10 05:45:27 +10:00
Paul Gear
d5eba7e66c First attempt to de-uglify front page; note that some of the styles referenced do not exist yet - please report ugliness 2013-11-10 04:46:10 +10:00
Adam Amstrong
b273e04241 /// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
Adam Amstrong
cacf913a55 # -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +00: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
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
190b7261ce Only show rebooted systems on front page when uptime > 0
For SNMP-agents that do not report uptime (EMC VNX5300 for one)

Patch by RobJE.



git-svn-id: http://www.observium.org/svn/observer/trunk@2979 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-07 18:21:39 +00:00
Tom Laermans
2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Adam Amstrong
a9a1bd5471 $config['warn']['ifdown'] = false; on front/default.php
git-svn-id: http://www.observium.org/svn/observer/trunk@2908 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-20 11:52:01 +00:00
Tom Laermans
9a1bee1458 more code cleanup (last commit for now)
git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 14:37:54 +00:00