23 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
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 4b49c148b6 Added mysqli support 2015-08-08 19:27:18 +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
Paul Gear b84b8de09f Merge pull request #1110 from laf/issue-279
Updated mysql DATE_FORMAT() and php date() to use $config variables
2015-06-13 10:15:23 +10:00
f0o 1b5e2536f6 Added config options for region and resolution for the globe.php frontpage
$config['frontpage_globe']['region'] = any of https://developers.google.com/chart/interactive/docs/gallery/geochart#Continent_Hierarchy
$config['frontpage_globe']['resolution'] = countries|provinces|metros
$config['frontpage_globe']['markers'] = devices|ports
2015-05-26 19:06:57 +00:00
laf 6496e6ece4 Consistent date formatting from MySQL 2015-05-22 13:38:52 +01:00
f0o dcf33ee9d6 Replaced old globe.php with newer derivate 2015-05-16 15:46:53 +00:00
Neil Lathwood 2cb5d727b4 Updated to support a demo user 2015-02-16 23:45:28 +00:00
laf 02792176fa Updated most files to use dbFacile 2014-03-12 22:21:33 +00:00
Adam Amstrong 5b5cb47563 fix bug with globe.php
git-svn-id: http://www.observium.org/svn/observer/trunk@3247 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-28 17:43:08 +00: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 6109cf1766 minor improvement to globe tooltip formatting
git-svn-id: http://www.observium.org/svn/observer/trunk@3207 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-18 15:17:49 +00:00
Adam Amstrong 32f7259c7b force sites with downed devices to the front of the map always.
git-svn-id: http://www.observium.org/svn/observer/trunk@3202 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-17 12:02:55 +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 4985943822 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3185 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-15 15:18:57 +00:00
Adam Amstrong 33c83c4f2a bigger zoom on globe
git-svn-id: http://www.observium.org/svn/observer/trunk@3183 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-14 14:20:28 +00:00
Adam Amstrong 6d3e97456f fixes to global map
git-svn-id: http://www.observium.org/svn/observer/trunk@3182 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-14 14:18:25 +00:00
Adam Amstrong 9c8b7f425f globe map
git-svn-id: http://www.observium.org/svn/observer/trunk@3181 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-14 13:27:24 +00:00