summaryrefslogtreecommitdiffstats
path: root/lib/base.php
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | Move basic auth checkLukas Reschke2014-09-171-12/+4
| |/ |/| | | | | | | | | At the previous point not all apps were initialized. Now the basic auth check happens together at the same location as all others. Fixes https://github.com/owncloud/core/issues/11129
* | Merge pull request #10960 from owncloud/use-intl-module-masterLukas Reschke2014-09-151-0/+3
|\ \ | | | | | | use intl's native normalizer_normalize() in case the module is available
| * | use intl's native normalizer_normalize() in case the module is availableThomas Müller2014-09-111-0/+3
| | |
* | | Refresh if maintenance mode is overkondou2014-09-091-0/+1
|/ / | | | | | | | | | | | | Using status.php for this. I modified status.php to also show, whether we're in maintenance. Checks every 20 seconds if maintenance is over, if yes: reload.
* / Do not load extra user backends when an upgrade is dueVincent Petry2014-09-081-1/+3
|/ | | | Whenever an upgrade is due, do not load extra user backends
* Move trusted domain check to init()Lukas Reschke2014-09-051-15/+15
| | | | | | | | handleRequest() is not called from remote.php or public.php which made these files party available but all included apps in there produced errors. As the expected behaviour is anyways that a trusted domain warning is shown I moved this to init() Fixes https://github.com/owncloud/core/issues/10064
* Use proper RNG generatorLukas Reschke2014-09-031-1/+1
| | | | | OC_Util::generateRandomBytes() only returns lowercase alphanumeric values. We should use the new RNG which has a broader characterset.
* Also setup the filesystem when matching routesRobin Appelman2014-09-021-0/+1
|
* Don't automatically setup the filesystem the moment we load OC\Files\FileSystemRobin Appelman2014-09-021-0/+1
|
* Use public api for getting l10nRobin Appelman2014-08-311-3/+2
|
* be correct in deprecation documentationJörn Friedrich Dreyer2014-08-291-1/+1
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-18/+21
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* add moment.jsGeorg Ehrke2014-08-261-0/+1
|
* Add a trusted domain wizardLukas Reschke2014-08-211-4/+3
| | | | | | Adds a little button to the trusted domain warning, if an admin clicks on the warning he will be redirected to ownCloud and asked whether he want to trust this domain. By far not the cleanest code, or clean at all, but does the job and I don't see a reason to make a lot of changes for this little improvement.
* Merge pull request #10522 from owncloud/removeLoadAppScriptblizzz2014-08-211-26/+0
|\ | | | | Remove loadAppScriptFile
| * Remove loadAppScriptFileLukas Reschke2014-08-191-26/+0
| |
* | Merge pull request #10409 from owncloud/iShallNotCopyStuffWithoutThinkingLukas Reschke2014-08-191-0/+12
|\ \ | |/ |/| Add a copied_sample_config switch
| * Add a copied_sample_config switchLukas Reschke2014-08-191-0/+12
| | | | | | | | | | | | | | | | Hopefully this will stop people from copying the sample config. I'm so annoyed by all those wrong bug reports... Add some explanation about this switch Move check to init
* | Merge pull request #10442 from owncloud/move-failed-loginsLukas Reschke2014-08-151-7/+0
|\ \ | | | | | | Move authentication failed logging to checkPassword
| * | Move authentication failed logging to checkPasswordLukas Reschke2014-08-151-7/+0
| | | | | | | | | | | | Fixes https://github.com/owncloud/core/issues/10366
* | | Remove ability to trigger DEBUG mode via cookieLukas Reschke2014-08-151-7/+0
|/ / | | | | | | | | Users should not be able to enable debug mode on their own by setting a cookie. Using debug mode might leak too much information about the environment or have other unexpected behaviour. We should backport this.
* / update deprecation docsJörn Friedrich Dreyer2014-08-141-1/+1
|/
* Merge pull request #10323 from gekmihesg/masterblizzz2014-08-131-0/+3
|\ | | | | Load authentication backends before tryBasicAuth
| * Load authentication backends before tryBasicAuthgekmihesg2014-08-101-0/+3
| |
* | Fix checking of NULL or empty OC::$THIRDPARTYROOT/OC::$THIRDPARTYWEBROOTmarc0s2014-07-301-2/+2
|/ | | | Fixes #10065
* Merge pull request #10029 from owncloud/fix-thirdpartyMorris Jobke2014-07-301-11/+16
|\ | | | | Fix silent crash if 3rdparty dir is not available