Commit Graph

28 Commits

Author SHA1 Message Date
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 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 9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
Neil Lathwood a2f2ccfd2c security: Fix some reported security issues (#4807) 2016-10-15 20:45:18 +01:00
Neil Lathwood 7dec670494 refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339) 2016-09-08 08:12:23 -05:00
laf 5f8705bd37 Changed package names 2016-08-20 12:21:13 +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 db0e1ca203 Resolved some security issues 2016-06-02 06:56:45 +00:00
Job Snijders d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Alexander Sosna 5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
Paul Gear 961be6def0 Test fix for a scrutinizer bug 2014-02-23 15:08:06 +10:00
Paul Gear 3184a35268 Revert boilerplate changes 2013-10-29 05:38:12 +10:00
Brad Peczka 985330f638 Updated copyright and package notices. 2013-10-28 21:39:08 +08:00
Adam Amstrong dbf212f652 phpDocumentator headers. retire static-config. IF YOU ARE READING THIS, REMOVE IT FROM THE BOTTOM YOUR CONFIG.PHP. YES. YOU.
git-svn-id: http://www.observium.org/svn/observer/trunk@3150 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-09 10:01:42 +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
Adam Amstrong 51e242b896 FFFFFFFffffffuuuuuuuuuuuuuuuuuuuuuu
git-svn-id: http://www.observium.org/svn/observer/trunk@2028 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-05 14:16:27 +00:00
Tom Laermans de7ff537cc revert r1957 patch
git-svn-id: http://www.observium.org/svn/observer/trunk@1960 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 09:54:56 +00:00
Geert Hauwaerts 6501cd29b5 - Code cleanup by Bastian Widmer.
git-svn-id: http://www.observium.org/svn/observer/trunk@1957 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-22 20:27:39 +00:00
Tom Laermans a32bff3c81 html pages cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@1902 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 11:48:03 +00:00
Tom Laermans 5ccfbcc56c fixed netcmd.php, thanks to falz
git-svn-id: http://www.observium.org/svn/observer/trunk@1828 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-14 12:02:23 +00:00
Geert Hauwaerts 49aa3a3951 - Removed hardcoded binaries.
- Restricted nmap to level 10
- Replaced traceroute with mtr (report mode)
- Also edited the Installation Wiki to include whois, mtr and nmap.


git-svn-id: http://www.observium.org/svn/observer/trunk@1040 61d68cd4-352d-0410-923a-c4978735b2b8
2010-03-22 22:13:45 +00:00
Tom Laermans fca6fafb60 include defaults.php before config.php, not FROM config.php
git-svn-id: http://www.observium.org/svn/observer/trunk@966 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-27 14:44:38 +00:00
Adam Amstrong e227df8ef2 rename some gui include files
git-svn-id: http://www.observium.org/svn/observer/trunk@891 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-20 17:37:42 +00:00
Adam Amstrong b7c9a6eb11 fixing things, adding better security
git-svn-id: http://www.observium.org/svn/observer/trunk@351 61d68cd4-352d-0410-923a-c4978735b2b8
2009-03-11 14:50:24 +00:00
Adam Amstrong 81c75b3d92 bug fixes and security fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@307 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-19 12:12:54 +00:00
Adam Amstrong 436e638525 security fixes. again.
git-svn-id: http://www.observium.org/svn/observer/trunk@306 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-13 17:28:13 +00:00
Adam Amstrong 080f9ce248 security fixes. AMG SECURIITAHHHHHHHHH!
git-svn-id: http://www.observium.org/svn/observer/trunk@305 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-13 17:19:43 +00:00
Super User ff70062aa9 Initial Import
git-svn-id: http://www.observium.org/svn/observer/trunk@2 61d68cd4-352d-0410-923a-c4978735b2b8
2007-04-03 14:10:23 +00:00