Commit Graph

34 Commits

Author SHA1 Message Date
Tony Murray e18f4522d5 Update to Laravel 5.7 (PHP 7.3 support) (#9800)
* Move assets to 5.7 location

* Add 5.7 SVGs

* add cache data dir

* update QUEUE_DRIVER -> QUEUE_CONNECTION

* Update trusted proxy config

* update composer.json

* 5.5 command loading

* @php and @endphp can't be inline

* Laravel 5.6 logging, Nice!

* Update blade directives

* improved redirects

* remove unneeded service providers

* Improved debugbar loading

* no need to emulate renderable exceptions anymore

* merge updated 5.7 files (WIP)

* Enable CSRF

* database_path() call causes issue in init.php

* fix old testcase name

* generic phpunit 7 fixes

* add missed file_get_contents
Keep migrations table content

* fix duplicate key

* Drop old php versions from travis-ci

* remove hhvm

* fix code climate message

* remove use of deprecated function assertInternalType

* Disable CSRF, we'll enable it separately.
All forms need to be updated to work.

* Update document references
2019-02-12 17:45:04 -06:00
Tony Murray 0ba76e6d62 New python service for poller, discovery + more (#8455)
Currently has a file handle leak (and will eventually run out of handles) related to the self update process.

Either need to fix that or rip out self-update and leave that up to cron or something.


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-06-30 12:19:49 +01:00
Tony Murray 1ad7f3138b Add Laravel to LibreNMS (#8318)
* Add Laravel to LibreNMS.

* Try to set permissions during initial install and first composer update to Laravel.

* Fix composer.lock
Fix missing db config keys

* Start building v1 layout
Port ajax_setresolution, inject csrf into jquery ajax calls
Layout works, building menu
Partially done.

* Fix device group list
remove stupid count relationships

* Print messages for common boot errors.
Don't log to laravel.log file.
Log to error_log until booted, then librenms.log

* Fix up some issues with Config loading
Start of custom directives

* Custom blade directives: config, notconfig, admin

* Preflight checks
Only load config files once.

* Update the composer.lock for php 5.6

* Menu through routing

* Start of alert menu

* Better alert scopes

* reduce cruft in models

* Alerting menu more or less working :D

* Fix style

* Improved preflight

* Fix chicken-eggs!

* Remove examples

* Better alert_rule status queries
Debugbar

* fix app.env check

* User Menu

* Settings bar (dropped refresh)
Search JS

* Toastr messages

* Rename preflight

* Use hasAccess(User) on most models.
Add port counts

* Missed a Preflight -> Checks rename

* Fix some formatting

* Boot Eloquent outside of Laravel
Use Eloquent for Config and Plugins so we don't have to connect with dbFacile inside Laravel.
Move locate_binary() into Config class

* Config WIP

* Try to fix a lot of config loading issues.

* Improve menu for non-admins removing unneeded menus
url() for all in menu

* Only use eloquent if it exists

* Include APP_URL in initial .env settings

* Implement Legacy User Provider

* Helper class for using Eloquent outside of Laravel.
Allows access to DB style queries too and checking the connection status.

* Fix up tests

* Fix device groups query

* Checking Travis

* copy config.test.php earlier

* dbFacile check config before connecting
Don't use exception to check if eloquent is connected, it gets grabbed by the exception handler.
Ignore missing config.php error.

* Fix config load with database is not migrated yet.

* Remove Config::load() from early boot.

* Use laravel config settings to init db (this prefers .env settings)
Fix bgp vars not set in menu
add _ide_helper.php to .gitignore

* Restrict dependencies to versions that support php 5.6

* Update ConfigTest

* Fix a couple of installation issues

* Add unique NODE_ID to .env

* Correct handling of title image

* Fix database config not loading. Thanks @laf

* Don't prepend /

* add class_exists checks for development service providers

* Fix config value casting

* Don't use functions that may not exist

* Update dbFacile.php

* d_echo may not be defined when Config used called.

* Add SELinux configuration steps
More detailed permissions check.
Check all and give complete corrective commands in one step.

* Ignore node_modules directory

* Re-add accidetal removal
2018-05-09 08:05:17 -05:00
Tony Murray 6878df8c12 Prep for composer changes (#8075)
* Prep for composer changes

* Update composer.json, composer.lock and a small update to phpmailer and Yaml

* Prevent accidental `composer update` runs

* Add  --no-interaction to daily.sh
2018-01-22 08:16:37 -06:00
FTBZ 163d0b4f88 fix: Errors in the documentations for CentOS 7 (#7510)
* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* Some corrections to make docs work as intended.

* re-add httpd_execmem for nginx
2017-10-18 14:38:56 -05:00
Bennett Blodinger 31993387e4 docs: Updated alerting docs / formatting (#7185)
* Ignore docs/

* Fix indenentation

YAML's pretty strict

* Remove static anchor names

Markdown does this automatically for us

* Tabelize entities

* Remove tildes

They don't do anything
2017-08-19 19:40:50 +01:00
rockyluke e670a639e7 webui: Add $config['title_image'] in doc and use it also for login screen (#5683) 2017-01-31 08:16:01 +00:00
Neil Lathwood 4cf9c0f2c7 added support for mention bot (#5347) 2017-01-08 17:39:12 +00:00
Neil Lathwood f5a16be0e3 refactor: Move OS definitions into yaml files (#5189) 2016-12-23 17:53:19 +00:00
Neil Lathwood f488e0b689 Added support for codeclimate (#5034) 2016-11-21 20:48:58 +00:00
Neil Lathwood b5be6e9271 feature: Added custom css and include directories which are ignored by git (#4871) 2016-10-28 05:55:40 +00:00
Tony Murray fc0871f716 Move Support New OS to the Developing menu (#4636)
Re-arrange the Developing menu, needs separators...
2016-09-27 17:52:26 +01:00
Neil Lathwood dcff4d3ed1 Revert "Some more doc updates" (#4231) 2016-08-27 22:12:44 +01:00
Neil Lathwood acde0db434 More doc updates 2016-08-27 13:41:26 +01:00
Neil Lathwood 9f1930a81e More more docs (#4197)
* Updated docs + some small code changes

* Added validating code doc for developers

* Doc updates

* Updates and improvements
2016-08-25 18:40:11 -05:00
Tony Murray 64399c833a Prep Travis.yml for codesniffer changes 2016-08-15 13:23:21 -05:00
Tony Murray 0553fb6b5a Add php_code_sniffer config file 2016-08-10 15:16:21 -05:00
laf 5d73c0c2fd Added issue template 2016-05-02 18:17:31 +00:00
Tony Murray 985ea9bea6 Enable phpunit testing in Travis CI. 2016-03-03 11:56:29 -06:00
Birger J. Nordølum 62cd6e8e7a Tweaked .gitignore 2016-01-14 17:58:17 +01:00
Tobias Herrmann e9b1e91792 added temporary files to gitignore 2016-01-04 13:15:31 +01:00
Clint Armstrong 8e34e83d97 add swp to gitignore for vim 2015-08-25 11:35:13 -04:00
laf ac4eba78e4 Added support for AirOS and AirFibre from UBNT 2015-04-03 18:59:58 +01:00
Neil Lathwood 7b31e98bfe Updated .gitignore to remove .ircbot.alert 2015-03-03 14:17:55 +00:00
Neil Lathwood 6e341a960f Added .alerts.lock to .gitignore 2015-02-26 23:15:17 +00:00
Paul Gear bd17de8eb7 Provide local junk dir; ignore contents 2015-02-06 08:59:42 +10:00
Paul Gear 75c4ce4edb Genericise Makefile and do not ignore it 2014-10-28 05:56:36 +10:00
Paul Gear f46addd947 Trying out NetBeans IDE - ignore projects dir 2014-06-24 10:29:09 +10:00
Paul Gear d1e3998fd2 Remove Makefile - used only for local testing 2014-06-17 07:10:45 +10:00
laf 4151269de4 Moved plugins menu and enabled Test plugin by default 2014-03-12 22:03:47 +00:00
Paul Gear a0979e85cd Tidy up formatting; proof-of-concept right side box 2013-11-19 08:57:43 +10:00
Paul Gear 346ca22a97 Removed cruft 2013-11-05 09:22:24 +10:00
Paul Gear a056c7de62 Ignore a couple of directories in my dev tree 2013-10-29 05:48:19 +10:00
Paul Gear a78ed7682a Add .gitignore to ignore my shameful misdeeds 2013-10-28 18:01:50 +10:00