summaryrefslogtreecommitdiffstats
path: root/lib/base.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | move some deprecated usage of OC_Config and OC_AppConfig to \OC::serverThomas Müller2014-10-201-1/+1
|/
* Merge pull request #10934 from owncloud/datadir-write-setupVincent Petry2014-09-251-1/+1
|\ | | | | Don't complain about non-writable datadirs before we're installed
| * Inject config into checkserver and cleanup testsRobin Appelman2014-09-181-1/+1
| |
* | Show login again instead of JSON if CSRF check failsLukas Reschke2014-09-231-1/+3
| | | | | | | | | | | | | | | | Previously a JSON error page was shown to the user in-case the CSRF token was not valid. This was confusing and prevented people from login. With this at least the login page is shown again and not a JSON error message. I consider this as sufficient since adding a new error page just for this sake would uneededly make lib/base.php even more cluttered and this is a edge-case which optimally should anyways not happen that often. This can be tested by opening the login page, then clearing the cookies, and trying to login.
* | send browsers timezone back tp the server on loginThomas Müller2014-09-221-8/+8
| |
* | Merge pull request #10939 from owncloud/add-port-to-trusted-domain-wizardThomas Müller2014-09-221-2/+10
|\ \ | | | | | | Append port to trusted domain in case it's not 80 or 443
| * | Append port to trusted domain in case it's not 80 or 443Lukas Reschke2014-09-081-2/+10
| | | | | | | | | | | | Ref https://github.com/owncloud/core/pull/10584#issuecomment-54677059
* | | Move BasicAuth check to "isLoggedIn()"Lukas Reschke2014-09-181-31/+2
| | | | | | | | | | | | Ensures that Basic Auth works properly for APIs and removes the need for some even uglier lines of code.