summaryrefslogtreecommitdiffstats
path: root/public.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* public.php - check if maintenance mode is enabledGeorg Ehrke2013-06-031-0/+1
|
* More Checkstyle cleanupFelix Moeller2012-10-231-1/+1
| | | | This is for all LowerCaseConstant warnings
* Update public.phpThomas Müller2012-09-041-4/+4
| | | respect coding style
* 404 if service is not set for public.phpMichael Gapczynski2012-08-281-0/+4
|
* Remove unused RUNTIME_NOSETUPFS varBart Visscher2012-08-081-1/+0
|
* fix remote and public.phpRobin Appelman2012-07-131-0/+1
|
* Check if app is enabled before loading in remote and public.phpBart Visscher2012-06-271-0/+1
|
* Correct remote and public, and last occurence of OC::Brice Maron2012-06-061-3/+3
|
* selective app loading for remote/publicRobin Appelman2012-05-141-2/+7
|
* improve remote.php and create public.phpGeorg Ehrke2012-05-071-0/+10