summaryrefslogtreecommitdiffstats
path: root/lib/base.php
Commit message (Collapse)AuthorAgeFilesLines
* Add some more sanity checks for maintenance modeLukas Reschke2015-01-091-1/+3
|
* Verify authentication before initializing apps and routingLukas Reschke2015-01-091-13/+13
| | | | | | | | | | | | | | | | | | | | | | The current behaviour of the authenticion logic in base.php prevents REST APIs in ownCloud applications to work. Because `!self::$CLI` is usually always a true statement the previously above block was entered which returned, thus the authentication logic for this part does not trigger in. This can be reproduced by installing apps such as the News app and issuing the following command: `curl -u admin:admin http://localhost/index.php/apps/news/api/v1-2/feeds` The following parts needs to get throughly tested: - [ ] OCS - [ ] remote.php's DAV features - [ ] Regular login features This bug affects master and stable7. I'd propose that we merge this for 8.0 since this has the potential to break every component that relies on Basic Auth features. A backport would also be very nice. Remark to myself: We really need to move out the authentication code for 8.1 out of base.php - I already have a local branch that does that somewhere which I will get in shape for 8.1... - This untested code is a night-mare. Fixes itself.
* move search results below filelist, show hint when results are off screen, ↵Jörn Friedrich Dreyer2015-01-021-1/+0
| | | | use js plugin mechanism
* move code from js.js to search.js in the search appJörn Friedrich Dreyer2015-01-021-0/+1
|
* Merge pull request #12759 from owncloud/core-reduce-js-and-cssJörn Friedrich Dreyer2014-12-181-2/+0
|\ | | | | make sure styles and scripts are only loaded once
| * load showpassord.js conditionally in the template only if neededThomas Müller2014-12-161-2/+0
| |
* | Check basic auth header only for not-logged-in usersLukas Reschke2014-12-171-1/+1
| |
* | Move basic auth login out of `isLoggedIn`Lukas Reschke2014-12-171-0/+1
|/ | | | | | | | | | | | Potentially fixes https://github.com/owncloud/core/issues/12915 and opens the door for potential other bugs... Please test very carefully, this includes: - Testing from OCS via cURL (as in #12915) - Testing from OCS via browser (Open the "Von Dir geteilt" shares overview) - WebDAV - CalDAV - CardDAV
* Implement method that reads vendor libs from core.jsonMorris Jobke2014-12-151-6/+15
| | | | * includes them at the beginning of initTemplate()
* bower jquery-ui - exported changes to a separate css fileMorris Jobke2014-12-131-2/+3
|
* Check if open_basedir is setLukas Reschke2014-12-111-1/+1
| | | | | | The file:// protocol does not work with curl when an open_basedir is set. This fixes https://github.com/owncloud/core/issues/12016
* reduce OC_Preferences, OC_Config and \OCP\Config usageMorris Jobke2014-12-081-1/+1
| | | | | | | | | | * files_encryption * files_versions * files_trashbin * tests * status.php * core * server container
* fix base.php for not installed systemsMorris Jobke2014-12-081-25/+25
|
* Create config if it does not existsLukas Reschke2014-12-061-1/+9
| | | | | | | | | | The codepath that is executed when executing ownCloud via CLI is different than via browser. Specifically, the config is created by the user session already in `OC_Util::getInstanceId()` by a call to `setValue`. That said, this seems to be quite a bad side-effect, but for the sake of "not breaking whatever might break if we touch this" let's keep it that way for now. When executing the autoconfig via `php -f index.php` the said session was not setup and thus no `config/config.php` file was created resulting in an installation error. To reproduce this try to setup ownCloud via `php -f index.php` with and without that patch. (ensure to delete all existing configs before and don't access ownCloud with a browser in the meantime) Fixes itself.
* Remove checks for safe mode and magic quotesLukas Reschke2014-12-051-4/+0
| | | | | | | | | | Both are removed from 5.4.0 Safe Mode: http://php.net/manual/en/features.safe-mode.php > This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. Magic Quotes: http://php.net/manual/en/security.magicquotes.php > This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
* Merge pull request #12419 from owncloud/read-only-configThomas Müller2014-12-011-3/+3
|\ | | | | Allow read-only configuration
| * Allow read-only configurationLukas Reschke2014-11-251-3/+3
| | | | | | | | | | | | Workaround required for IIS setups running ownCloud to prevent dataloss. Long-term solution would be to move some configuration settings to the database
* | Pass \OC::$WEBROOT to the ctrLukas Reschke2014-11-271-1/+1
| |
* | remove deprecated \OC:$sessionThomas Müller2014-11-261-10/+2
|/
* Merge pull request #12299 from owncloud/clean-lib-base-configMorris Jobke2014-11-201-23/+29
|\ | | | | replace all static calls to OC_Config and OC_Preferences to calls to OCP...
| * replace double quotes with single quotesMorris Jobke2014-11-191-1/+1
| |
| * replace all static calls to OC_Config and OC_Preferences to calls to OCP\IConfigMorris Jobke2014-11-191-23/+29
| |
* | Merge pull request #12226 from owncloud/remove-phpassThomas Müller2014-11-201-2/+1
|\ \ | | | | | | Remove phpass and migrate to new Hasher interface
| * | Remove phpass and migrate to new Hasher interfaceLukas Reschke2014-11-171-2/+1
| |/ | | | | | | | | | | | | This PR removes phpass and migrates to the new Hasher interface. Please notice that due to https://github.com/owncloud/core/issues/10671 old hashes are not updated but the hashes are backwards compatible so this shouldn't hurt. Once the sharing classes have a possibility to update the passwords of single shares those methods should be used within the newHash if block.
* / Ignore port for trusted domainsLukas Reschke2014-11-181-7/+1
|/ | | | | | | | | This lead to a lot of confusion in the past and did not really offer any value. Let's remove the port check therefore. (it's anyways not really a part of the domain) Fixes https://github.com/owncloud/core/issues/12150 and https://github.com/owncloud/core/issues/12123 and also a problem reported by @DeepDiver1975. Conflicts: lib/private/request.php
* Merge pull request #11917 from owncloud/fix-11909Thomas Müller2014-11-111-4/+11
|\ | | | | Add checkbox to enforce SSL for subdomains
| * Migrate "setsecurity.php" to the AppFrameworkLukas Reschke2014-11-031-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | Add switch to enforce SSL for subdomains Add unit tests Add test for boolean values Camel-case Fix ugly JS
* | Load PHPAss via autoloaderLukas Reschke2014-11-061-1/+2
| |
* | Merge pull request #11883 from owncloud/clear-session-for-setupLukas Reschke2014-11-061-1/+2
|\ \ | | | | | | Clear session before setup
| * | Clear session before setupLukas Reschke2014-10-311-1/+2
| | | | | | | | | | | | Fixes https://github.com/owncloud/core/issues/11861
* | | md5 now handled via bowerMorris Jobke2014-11-061-1/+1
| | |
* | | bower snapjsMorris Jobke2014-11-061-1/+1
| | |
* | | bower underscoreMorris Jobke2014-11-051-1/+1
| | |
* | | migrate jQuery to bowerMorris Jobke2014-11-041-2/+2
| | |
* | | replace moment.js with bower versionMorris Jobke2014-11-031-1/+1
| | | | | | | | | | | | * fix JS unit tests
* | | Update Pimple to V3.0Thomas Müller2014-11-031-2/+1
| |/ |/|
* | Update Symfony/Console to 2.5 & Update Symfony/Routing to 2.5Thomas Müller2014-11-031-2/+0
|/
* Merge pull request #11638 from owncloud/oc8-translationsThomas Müller2014-10-291-1/+3
|\ | | | | [OC8] Load javascript translations using standard web technologies
| * Include core translationsVincent Petry2014-10-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Moved search result type translations to search.js Load JS translations earlier Translations need to be loaded earlier to make sure that some JS files like search.js get access to translations at this time. This requires the template initialization to be moved to after session initialization, because only after the session we have access to the current language.
| * Added OC.L10N namespace with translation functionsVincent Petry2014-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | Added addTranslations and fixed de.js file Fixed de.js to use OC.L10N.register() and use to correct expected format. Added JS unit tests for OC.L10N class Include translations JS script for all apps
* | Update doctrine/dbal to 2.5Thomas Müller2014-10-281-2/+0
|/
* Use composer autoloader to load PatchworkThomas Müller2014-10-281-2/+0
|
* use Composer autoloader not OC for non-Composer 3rdparty (#9643)Adam Williamson2014-10-281-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Composer's autoloader is rather better than the OwnCloud autoloader's handling of non-OC classes. Plus we can rely on upstream Composer to maintain it and not worry about it ourselves. With this change, we drop the bits of OwnCloud's autoloader that handled non-OC classes, and register the classes that were being handled by that code with Composer's autoloader instead. As these dependencies are converted to actually being managed by Composer, the explicit registrations can be dropped as they won't be needed any more. Since OwnCloud's autoloader isn't going to handle non-OC classes any more, we no longer need to test to make sure it does it right. drop unneeded registerPrefix() and registerClass() from autoloader Now we're not handling anything but OC's own classes, these are unnecessary. error out if composer autoloader is not found (thanks bantu) We're never going to be able to work without the autoloader, if it's not there we should just throw our hands up and surrender.
* Merge pull request #11786 from owncloud/MakeSupportedDBsConfigurableLukas Reschke2014-10-271-1/+1
|\ | | | | Make supported DBs configurable within config.php
| * Make supported DBs configurable within config.phpLukas Reschke2014-10-271-1/+1
| | | | | | | | | | | | This commit will make the supported DBs for installation configurable within config.php. By default the following databases are tested: "sqlite", "mysql", "pgsql". The reason behind this is that there might be instances where we want to prevent SQLite to be used by mistake. To test this play around with the new configuration parameter "supportedDatabases".
* | Use the TempManager to handle temporary filesRobin Appelman2014-10-241-1/+2
|/
* Merge pull request #11416 from owncloud/eventloggerMorris Jobke2014-10-221-4/+13
|\ | | | | Allow apps to gather performance diagnistics
| * call initPaths() right before the server is instantiatedThomas Müller2014-10-211-1/+1
| |
| * Log some additional eventsRobin Appelman2014-10-201-0/+3
| |
| * Log some basic eventsRobin Appelman2014-10-201-4/+10
| |