60 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 d6db01abb5 refactor: Refactor fix php codesniffer 3.x issues (#7816)
We cannot use 3.x because it  requires php 5.4, so update to 2.9.1 or newer 2.x release.
2017-11-29 08:23:19 +00:00
Neil Lathwood 4f4719b66a webui: Updated all tables to have the same set number of items showing (#6798) 2017-06-08 22:10:30 -05:00
Neil Lathwood 9d5fd2b4cf webui: standardised all rowCount parameters for tables (#5067) 2016-11-26 20:57:12 +00: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 11d91215cb Added predicated usage to bills, basic at present 2016-08-13 01:11:20 +01:00
laf 31e8657325 Fix links for billing 2016-04-29 23:54:33 +00:00
Neil Lathwood 6b896d0cb7 Merge pull request #3239 from richardlawley/billing-search
Convert bills list to Bootgrid
2016-03-17 21:09:10 +00:00
Richard Lawley b2c015b58c Add Interface at bill create screen 2016-03-14 19:18:53 +00:00
Richard Lawley cbb8699fb8 Convert table to bootgrid 2016-03-14 16:30:55 +00:00
Richard Lawley c35afb1e1c Implement Billing Search 2016-03-10 18:11:39 +00:00
Richard Lawley 972429838b Redirect to edit page afer add bill 2016-03-09 08:26:32 +00:00
Richard Lawley fca483439e Remove Edit link if not admin 2016-03-08 19:12:15 +00:00
Richard Lawley 9f136c06de Update Billing UI to match rest of app 2016-03-08 18:21:29 +00:00
Rosiak 76a3be4abb small changes 2015-12-25 01:14:58 +01:00
Zollner Robert 4c9337dcbb fixes #2197 Cannot insert new Bill
since all those fields are defined as "NOT NULL" they must be set before inserting into mysql.
2015-10-25 03:39:35 +02:00
Michael Newton f77c712bfc changes needed to run under web server subdirectory 2015-08-11 14:54:05 -07:00
Neil Lathwood 945ca7f2ea Revert "changes needed to run under web server subdirectory" 2015-08-11 21:25:23 +01:00
Michael Newton cc0f449fc9 changes needed to run under web server subdirectory 2015-08-07 11:10:43 -07:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Mike Rostermund 3489476ad6 Fixed percentagebar on /bills/ 2015-06-08 12:52:38 +02:00
Neil Lathwood 2cb5d727b4 Updated to support a demo user 2015-02-16 23:45:28 +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
Adam Amstrong bde0dfd023 fix adding bills. needs more work to standardise URLs.
git-svn-id: http://www.observium.org/svn/observer/trunk@3245 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-27 15:29:54 +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 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 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 02356017e0 fix overlibs on billing forms
git-svn-id: http://www.observium.org/svn/observer/trunk@2903 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-18 17:00:32 +00:00
Adam Amstrong 9aa41ac04c prettier billing editing/adding
git-svn-id: http://www.observium.org/svn/observer/trunk@2902 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-18 16:23:49 +00:00
Adam Amstrong 6c9261623e minor changes to billing
git-svn-id: http://www.observium.org/svn/observer/trunk@2901 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-16 15:39:43 +00:00
Adam Amstrong 84ef05a60e grammatical fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2900 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-16 15:37:33 +00:00
Adam Amstrong 9c976aa942 fixes to billing
git-svn-id: http://www.observium.org/svn/observer/trunk@2899 61d68cd4-352d-0410-923a-c4978735b2b8
2012-03-16 15:33:39 +00:00
Adam Amstrong 38f95ce512 fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2762 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-06 23:02:31 +00:00
Adam Amstrong a1e96f708f billing rewrite (disabling svn after)
git-svn-id: http://www.observium.org/svn/observer/trunk@2758 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-06 22:17:37 +00:00
Adam Amstrong d94b0bd1c2 add bill from device/port, some billing changes
git-svn-id: http://www.observium.org/svn/observer/trunk@2756 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-05 12:15:41 +00:00
Adam Amstrong 0704a71fc2 implement standard URL scheme for billing.
git-svn-id: http://www.observium.org/svn/observer/trunk@2753 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-02 17:11:28 +00:00
Adam Amstrong f55a9dfca5 kbps
git-svn-id: http://www.observium.org/svn/observer/trunk@2747 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-01 13:25:12 +00:00
Adam Amstrong 2276b22e18 billing interface improvements
git-svn-id: http://www.observium.org/svn/observer/trunk@2721 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-12 15:19:05 +00:00
Adam Amstrong 9891f0201b fix bill adding
git-svn-id: http://www.observium.org/svn/observer/trunk@2718 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-07 10:30:43 +00:00
Adam Amstrong f7eb392298 billing improvements from codekiller.
git-svn-id: http://www.observium.org/svn/observer/trunk@2715 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-05 14:55:08 +00:00
Adam Amstrong 5e60d83c41 remove speed debugging
git-svn-id: http://www.observium.org/svn/observer/trunk@2708 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-02 18:27:21 +00:00
Adam Amstrong a607d17919 use cached data for bills page. need to put billing-calculate in crontab
git-svn-id: http://www.observium.org/svn/observer/trunk@2707 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-02 18:26:57 +00:00
Tom Laermans a0a1939995 more title sets
git-svn-id: http://www.observium.org/svn/observer/trunk@2691 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 14:41:19 +00:00
Tom Laermans a369c442eb syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2643 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 14:38:54 +00:00
Tom Laermans 9ff0fdb443 syntaxer run, removes dos newlines from 2 files
git-svn-id: http://www.observium.org/svn/observer/trunk@2597 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-27 13:22:38 +00:00
Adam Amstrong 770ccc46a3 updates to billing setup
git-svn-id: http://www.observium.org/svn/observer/trunk@2448 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-12 10:51:50 +00:00
Adam Amstrong f1285f2e31 more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2310 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-13 13:52:01 +00:00
Adam Amstrong efd9d30ee7 move percentage colour mappings to function. make graphs for memory/storage match percentage colours (should we do this for others?)
git-svn-id: http://www.observium.org/svn/observer/trunk@2160 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-25 17:15:36 +00:00