summaryrefslogtreecommitdiffstats
path: root/public.php
Commit message (Collapse)AuthorAgeFilesLines
* app type extended_authenticationMaxence Lange2023-04-121-0/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Re-use fetched dependencies in lib/base.phpMorris Jobke2021-01-201-1/+1
| | | | | | | | Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+0
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* testing processMaxence Lange2019-08-291-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* returns a 501 instead of exception if app is not installed - #13088Maxence Lange2018-12-191-1/+2
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Return 404 when the service is not availableJoas Schilling2018-10-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not use HTTP code OC_Response constants anymoreMorris Jobke2018-06-261-5/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace hardcoded status headers with calls to http_response_code()Morris Jobke2018-06-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server exception error pages by default with a 500 status codeMorris Jobke2018-06-261-5/+4
| | | | 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-2/+1
| | | | | | | | | of the actual resource * found while reviewing #7205 * allow to specify a special status code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-0/+3
| | | | | | | | | | | Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add proper PHPDocLukas Reschke2017-08-011-2/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Clean up single user modeMorris Jobke2017-02-221-1/+0
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+4
|
* Revert "occ web executor (#24957)"Morris Jobke2016-07-071-2/+2
| | | | This reverts commit 854352d9a064a1e469ede207493bce44fd41d96c.
* occ web executor (#24957)VicDeo2016-06-221-2/+2
| | | | | | | | | | | | * Initial web executor * Fix PHPDoc Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Catch class Error on all root entrypointsThomas Müller2016-04-201-6/+10
|
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* update licence headers via scriptMorris Jobke2015-10-051-2/+0
|
* update license headers and authorsMorris Jobke2015-06-251-0/+1
|
* Fix singe user mode on public.php - take twoThomas Müller2015-04-101-1/+1
|
* Update license headersJenkins for ownCloud2015-03-261-1/+26
|
* Revert "Updating license headers"Morris Jobke2015-02-261-25/+1
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Merge pull request #14433 from owncloud/fix-public-phpThomas Müller2015-02-231-3/+4
|\ | | | | Use `getParam` instead of `server`
| * Use `getParam` instead of `server`Lukas Reschke2015-02-231-3/+4
| | | | | | | | | | | | | | | | | | | | `server` is completely wrong here and this will not work on master. With `getParam` it will work fine though. Testplan: - [ ] Without patch: Share a file and try to access `http://localhost/public.php?service=files&t=THESHAREDTOKEN` => Fails - [ ] With patch: Try the same => Works Master only.
* | Updating license headersJenkins for ownCloud2015-02-231-1/+25
|/
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-4/+5
| | | | | | | | | | This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
* Add sabredav plugin to check if a user has access to an appRobin Appelman2014-11-171-1/+3
|
* handle service not available exceptions in index, remote and public.phpRobin Appelman2014-08-041-0/+5
|
* Fix service warningVincent Petry2014-07-021-1/+1
|
* Return 503 in public.php and OCS API when upgrade is dueVincent Petry2014-06-301-0/+8
| | | | | To prevent unexpected behavior, public.php and the OCS API calls will return 503 Service Unavailable when an upgrade is due.
* Move authentication to it's own callLukas Reschke2014-06-051-1/+2
|
* Remove legacy routing codeLukas Reschke2014-06-051-0/+4
| | | | | | | | | | | | | | | | | | | The getfile routing code was absolutely legacy and not needed anymore. Additionally \OC::$REQUESTEDAPP was never set to the actually accessed application. This commit removes the legacy routing code and ensures that $REQUESTEDAPP is always set so that other applications (e.g. the firewall or a two-factor authentication) can intercept the currently accessed app. Testplan: [x] Installation works [x] Login with DB works [x] Logout works [x] Login with alternate backend works (tested with user_webdavauth) [x] Other apps are accessible [x] Redirect on login works (e.g. index.php?redirect_url=%2Fcore%2Findex.php%2Fsettings%2Fapps%3Finstalled) [x] Personal settings are accessible [x] Admin settings are accessible [x] Sharing files works [x] DAV works [x] OC::$REQUESTEDAPP contains the requested application and can be intercepted by other applications
* Merge pull request #7599 from owncloud/public-pathinfoicewind19912014-04-071-6/+14
|\ | | | | Allow using pathinfo based public.php paths
| * Allow using pathinfo based public.php pathsRobin Appelman2014-03-061-6/+14
| |
* | remove some more global variable $RUNTIME_NOAPPSThomas Müller2014-02-061-1/+0
|/
* Add "single user mode" which restricts access to users in the admin groupRobin Appelman2013-11-251-0/+1
| | | | This can be enabled by setting 'singleuser' to true in config.php
* set incognito mode for public.php calls. Because in this case ownCloud ↵Bjoern Schiessle2013-11-221-0/+1
| | | | should always work the same way as if no user is logged in
* Add _many_ newlines at the end of fileskondou2013-08-181-1/+1
|
* clean up usage of DatabaseSetupException and catch Exceptions in entrypointsJörn Friedrich Dreyer2013-06-101-16/+26
|