Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Tiago Flores
7b7db699e9
Audit log unsharing from self
Signed-off-by: Tiago Flores <tiago.flores@yahoo.com.br>
4 years ago
GrayFix
3e482653b9
Update Application.php
Fix corruption for logging internal path with multibyte characters in file preview event
Signed-off-by: GrayFix <grayfix@gmail.com>
4 years ago
Christoph Wurst
1b46621cd3
Update license headers for 18
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
4 years ago
John Molakvoæ (skjnldsv)
c327be0a75
Fix enable/disable user audit message
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
4 years ago
Sascha Wiswedel
07d2f68786
log circles and remote shares in admin_audit
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
4 years ago
Sascha Wiswedel
e98b2cb461
log email shares in admin_audit log
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
4 years ago
Daniel Kesselberg
268c0d97bf
Check if array element is present before access
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
5 years ago
Joas Schilling
ea21aa3f7a
Use numeric placeholders if there are multiple, so that RTL languages can operate better
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Arthur Schiwon
6f24865bf8
don't blame email address changers
the information is being collected with admin_audit
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
5 years ago
Daniel Calviño Sánchez
0fab46c817
Log sharing and unsharing with a room in the auditing app
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
6 years ago
Arthur Schiwon
b841a477c6
log to $datadir/audit.log by default and add rotation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
6 years ago
Arthur Schiwon
cfc3ab0119
offer API to create own File log. admin_audit makes use of it
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
6 years ago
Arthur Schiwon
373a1d5391
more consistent naming
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
6 years ago
Arthur Schiwon
2ebf26e444
admin_audit and dav listen to announce and revoke signals
also place them in doc
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
6 years ago
Roeland Jago Douma
4d5830c4aa
Make admin_audit strict
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Morris Jobke
eb51f06a3b
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Roeland Jago Douma
9e76577ead
Add tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Roeland Jago Douma
b2ca1d6553
Make admin_audit listen to 2fa events
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Joas Schilling
a4a99fa7b9
Log console commands
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
a5430b68ff
Listen to app enable/disable events
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
669f684434
Move logic to Application class
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
8260d4bf73
Move to PSR-4
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
97e41015b3
Don't try to generate logs for chunking paths
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
5ee445c54b
Audit log for enabling/disabling a user
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Roger Szabo
f1522a8dca
4190
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Lukas Reschke
abaf909ba2
Log access to preview images
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Roger Szabo
06a8ac6ff6
log user agent globally instead
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Roger Szabo
06bcb220b5
audit log the user-agent
Signed-off-by: Roger Szabo <roger.szabo@web.de>
7 years ago
Joas Schilling
df0eeb8089
Don't log the user password in case something goes wrong
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
a2668b11e5
Fix sniffes in admin_audit
7 years ago
Joas Schilling
813f0a0f40
Fix apps/
8 years ago
Bjoern Schiessle
f9fd7093c0
don't try to log the currently logged in user, this fails on cronjobs. The users are logged anyway
8 years ago
Bjoern Schiessle
e991b23d9d
log events from versions app
8 years ago
Bjoern Schiessle
86f12cc3e7
listen to trash bin and group manager hooks
8 years ago
Sam Tuke
8b01286a5d
Merged branch 'master'
11 years ago
Frank Karlitschek
72e9a2ce57
moved to apps repository
11 years ago
jfd
dc3bec6211
OC_Share no longer exists. remove hooks that would trigger require_once / autoloading failures, so i can at least upload files
11 years ago
Bart Visscher
2d581c675f
Audit: Log sharing actions
12 years ago
Bart Visscher
a2df8a4746
Audit: Log messages with separate function
12 years ago
Bart Visscher
1e12db35ee
Audit: Add user login/logout logging
12 years ago
Bart Visscher
640ba1828f
Start of audit app
Audit the filesystem action
12 years ago