summaryrefslogtreecommitdiffstats
path: root/lib/base.php
Commit message (Collapse)AuthorAgeFilesLines
* Correctly remove usergroup shares on removing group membersJoas Schilling2020-07-301-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove hook for initSessionMorris Jobke2020-07-071-8/+2
| | | | | | It's not used anyways and allowed to manipulate the state of the session. Also removed the code handling this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Migrate Settings to new bootstrap mechanismChristoph Wurst2020-06-171-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add dedicated API for apps' bootstrapping processChristoph Wurst2020-06-171-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add lazy events for the Node APIRoeland Jago Douma2020-05-281-0/+1
| | | | | | | | | | | Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-25/+20
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove spaces after method or function callChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixes the throttler not checking the user state on postLoginArthur Schiwon2020-04-031-1/+1
| | | | | | | a listener to the post login events can still reject a login, so that a user is not necessarily available at the time. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #20241 from nextcloud/fix/license-headers-19Roeland Jago Douma2020-04-011-0/+2
|\ | | | | Update the license headers for Nextcloud 19
| * Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Update base.phpJohn Molakvoæ2020-03-281-2/+1
| |
* | Update base.phpJohn Molakvoæ2020-03-281-1/+0
|/
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* E_ALL already sets E_DEPRECATEDJose Quinteiro2020-03-091-1/+1
| | | | Signed-off-by: Jose Quinteiro <github@quinteiro.org>
* Set error_logging correctly. Fixes #19847Jose Quinteiro2020-03-091-1/+5
| | | | | | | Don't override the error_logging setting from php.ini unless we're debugging. Signed-off-by: Jose Quinteiro <github@quinteiro.org>
* Check that username and password are present.Daniel Kesselberg2020-02-231-4/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Move overwritehost check to isTrustedDomainJulius Härtl2019-12-071-3/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2019-12-051-4/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure we create an app's Application class just onceChristoph Wurst2019-10-111-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move settings to an appChristoph Wurst2019-09-281-1/+2
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Print plain error when the error page errors tooJoas Schilling2019-09-161-20/+25
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove deleted groups from app restrictions fixes #15823Greta Doci2019-06-271-0/+25
| | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>
* Migrate the maintenance script to a modern module and bundleChristoph Wurst2019-05-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix placeholder in disable messageJoas Schilling2019-03-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a listener for the eventsJoas Schilling2019-03-011-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove not used appinfo/classpath.php checkMorris Jobke2019-02-281-17/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Use APCu caching of composer"Joas Schilling2018-09-191-2/+0
| | | | | | This reverts commit 948ab8a4d06b3821ab94c11a3a04c820e60d6c8a. For details why see https://github.com/nextcloud/server/issues/11290
* replace setcookie value with '' instead of null.MartB2018-09-061-1/+1
| | | | | | | The php documentation states that an empty string should be used for a cookie when it has no real value. null leads to the following error: expects parameter 2 to be string, null given Signed-off-by: Martin Böh <mart.b@outlook.de>
* Fix remnants of refactoringMorris Jobke2018-07-051-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not use HTTP code OC_Response constants anymoreMorris Jobke2018-06-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace hardcoded status headers with calls to http_response_code()Morris Jobke2018-06-261-15/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server exception error pages by default with a 500 status codeMorris Jobke2018-06-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server error/hint pages with a 500 error code to avoid it being seen instead ↵Morris Jobke2018-06-261-4/+4
| | | | | | | | | of the actual resource * found while reviewing #7205 * allow to specify a special status code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change status code when config is write protectedEric Masseran2018-06-261-2/+6
| | | | | | | | | | Add hint msg, you can make config file read only If the config.php is not writable, print an error message: #6893 - set config writable - or set option to keep it read only Signed-off-by: Eric Masseran <rico.masseran@gmail.com>
* Configurable list for opt out from same site cookie protectionjaltek2018-06-061-5/+12
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use APCu caching of composerRoeland Jago Douma2018-05-101-0/+2
| | | | | | | Should potentially shave of a few ms when loading classes of apps that don't ship their own autoloader. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Show a link to the docs instead of a button on the untrusted domain pageMorris Jobke2018-04-171-2/+2
| | | | | | | | Before there was a button to "quickly" add the untrusted domain to the config. This button often didn't worked, because the generated URL was often untrusted as well. Thus removing it and providing proper docs seems to be the better approach to handle this rare case. Also the log should not be spammed by messages for the untrusted domain accesses, because they are user related and not necessarily an administrative issue. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow usage of Windows 10 WebDav NetdriveRoeland Jago Douma2018-04-051-0/+1
| | | | | | | | | Fixes #3523 As long as we don't have #8123 lets not leave our Window10 netdrive users hanging. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move calls to \OCP\JSON to private \OC_JSONRoeland Jago Douma2018-03-221-2/+2
| | | | | | They should be properly fixed at some point. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use proper method to log exceptionsMorris Jobke2018-03-121-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove OC_App::disable methodTobia De Koninck2018-03-061-1/+1
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* getIncompatibleApps needs a string not an arrayRoeland Jago Douma2018-02-211-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8096 from ↵Roeland Jago Douma2018-01-311-18/+0
|\ | | | | | | | | nextcloud/feature/6382/do-not-cache-settings-in-db-anymore Do not cache the settings/sections in the database anymore
| * Do not cache the settings/sections in the database anymoreJoas Schilling2018-01-291-18/+0
| | | | | | | | | | | | | | This caused more troubles then it had benefits, especially when an app got disabled or was removed without being disabled. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Make sure we don't query the AppManager before the installation startedJulius Härtl2018-01-301-2/+5
|/ | | | | | Otherwise we end up with the database not being instantiated Signed-off-by: Julius Härtl <jus@bitgrid.net>