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
eeb3d58f5b
Improved Logging and Debugging ( #8870 )
...
Use Log facility when Laravel is booted.
Update init.php so we can easily boot Laravel for CLI scripts. (and just Eloquent, but that may go away)
Move all debug setup into set_debug() function and use that across all scripts.
Log Laravel database queries.
Send debug output to librenms log file when enabling debug in the webui.
Allow for colorized Log CLI output. (currently will leave % tags in log file output)
** Needs testing and perhaps tweaking still.
DO NOT DELETE THIS TEXT
#### Please note
> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.
- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/ )
#### Testers
If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-07-13 23:08:00 +01:00
Tony Murray
9e30d3fd7b
Fix some issues with globals ( #8709 )
...
Some variables aren't global anymore.
Make $vars global.
2018-05-14 18:31:46 +01: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
darthsco
e0d3083791
Fixed typo: Predicated -> Predicted (2 instances) ( #7222 )
...
The text that should have been "Predicted usage" was written as "Predicated usage" for both occurrences in the file.
2017-08-24 15:06:32 -05: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
Richard Mayhew
6a1fd3ec05
webui: Additional Font Awesome icons ( #5572 )
2017-01-25 17:42:26 +00:00
Neil Lathwood
9b9c10e204
fix: Cleanup printing ifAlias ( #4874 )
2016-12-12 14:25:48 +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
Richard Lawley
9f136c06de
Update Billing UI to match rest of app
2016-03-08 18:21:29 +00:00
Zollner Robert
514692cc2b
fix percent bar also for quota bills
...
completes #1208
2015-10-25 03:25:00 +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
laf
6496e6ece4
Consistent date formatting from MySQL
2015-05-22 13:38:52 +01:00
Neil Lathwood
2cb5d727b4
Updated to support a demo user
2015-02-16 23:45:28 +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
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
Tom Laermans
3407022cb0
add loadbalancer device type, netscaler = loadbalancer, patch by mgm
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2844 61d68cd4-352d-0410-923a-c4978735b2b8
2012-01-20 13:15:05 +00:00
Adam Amstrong
d50d4eed08
billing cleanups
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2766 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-07 14:48:04 +00:00
Adam Amstrong
d0cee15757
billing fixes and improvements
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2764 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-07 13:52:46 +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
bc0349c914
fix billing
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2755 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-02 22:11:06 +00:00
Adam Amstrong
1e3718715e
fix bill header
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2754 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-02 18:51:47 +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
05e0d54677
improved billing
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2752 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-02 15:53:50 +00:00
Adam Amstrong
00c76d5071
add new billing graphs, may still be some bugs :)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2744 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-30 12:45:46 +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
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
8b82c99ca9
fixes and advocent discovery
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2712 61d68cd4-352d-0410-923a-c4978735b2b8
2011-11-03 12:26:45 +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
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
Tom Laermans
d864ce234f
kill a whole bunch of trailing spaces
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2516 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-20 09:55:11 +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
b03bb8181c
fixes to billing. add realtime graphs for port bits.
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2424 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-08 02:57:02 +00:00
Adam Amstrong
5f8edbc426
fixes to displaying billing (incomplete)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2420 61d68cd4-352d-0410-923a-c4978735b2b8
2011-09-05 17:09:50 +00:00
Adam Amstrong
16b34cbe38
fix billing
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2375 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-26 22:56:02 +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
Adam Amstrong
b76ad33b3b
extend simpler menubar to more pages. fix graphname to device_temperature for os definitions.
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2051 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-11 09:16:50 +00:00
Adam Amstrong
e291e39781
hacks to billing (this shit needs rewritten so badly)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2034 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-08 11:25:13 +00:00
Tom Laermans
f55a30f744
some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
...
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans
f7ecdd3bac
cleanup html entities etc, to make htmltidy a bit happier (but not blissful at all yet)
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1981 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-28 09:11:05 +00:00
Adam Amstrong
d89b0632d8
improve billing graphs a little
...
git-svn-id: http://www.observium.org/svn/observer/trunk@1961 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 10:25:42 +00:00