Commit Graph

109 Commits

Author SHA1 Message Date
Andreas Gohr cad4fbf6e2 added logging configuration
Log facitlities can now be disabled. By default only debug is disabled.
It might make sense to by default disable deprecated as well?

Debug logging is now independend of the allowdebug method. allowdebug
was often used in two ways: for displaying errors directly to the user
and for logging to the debug log. Now it only controls the former.
2020-08-13 20:28:52 +02:00
Aurélien Martin 7b299f22af
Add option rss_show_deleted 2020-03-09 17:17:09 -04:00
Michael Große fc6b11d22a
Add feature flag for deferred javascript
This adds a feature flag for the jQuery and main-js requests added in
 #2786 and #2958. This adds only a single feature flag since deferring
jQuery without deferring the main javascript request is likely to cause
errors and confusion.

The feature flag defaults to "on" as this should be unproblematic except
for a few plugins. Also, with this flag being on by default, it should
see more usage and is more likely to uncover existing issues.

This feature flag should be removed once this feature is deemed safe.
2020-01-26 19:47:16 +01:00
Henry Pan 1b0271152b
clarified trustedproxy - empty = trust no proxy 2019-10-27 18:15:15 -04:00
Andreas Gohr 57d571a22c clarified trustedproxy setting 2019-10-21 20:59:13 +02:00
Phy 925105e82b clientIP: add trustedproxy, return first untrusted IP instead of the last one
This fixes #2828, where malicious clients passed in customized HTTP header to keep its IP address off records.

This is inspired by Sympony's Request::setTrustedProxies, but I don't want to implement everything including IP CIDR matching (IPv4 + IPv6), so I decided to reuse the local IP checker in place powered by regexp. Now admins can customize this "local" (trusted) proxy list using $conf['trustedproxy'], and by default it will allow any local IPs.

If in the future there is a need to implement array-based CIDR matching, $conf['trustedproxies'] can be used for the new config name.
2019-10-20 20:31:40 -04:00
Andreas Gohr c0c77cd20b Merge branch 'master' into psr2
changes from commit b15f23f673 may have
been lost, because the code changed to much.

changes from commit df81ca99ee need to be
verified. we might need to do some more adjustments.

* master: (49 commits)
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  Update config.class.php
  translation update
  translation update
  Update lang.php
  Add ugc hint to nofollow
  add UGC hint
  translation update
  translation update
  use a script to fetch the correct phpunit
  Revert "output travis php version for easier debugging"
  setup databases for unit tests in travis
  output travis php version for easier debugging
  translation update
  ...
2019-10-10 09:22:24 +02:00
Wes from StarArmy.com e50efeb7aa
Update lang.php 2019-09-13 08:56:37 -04:00
Andreas Gohr 277113f107 Merge branch 'master' into psr2
* master:
  upgraded JSON class to latest (2006) version
  continue is break in switch
  translation update
  reference existing proper progress gif. fixes #2441
  Fix missing ui-bg_glass_95_fef1ec_1x400.png and be/jquery.ui.datepicker.js for jquery
  removed accidental merges of outdated translations
  Change `const` use to `var` for Safari 9 (on iOS)
  Fix .htaccess files for Apache 2.4 (and 2.2)
  add logic if the server uses unlimited memory settings in is_mem_available()
  removed safemode hack
2018-07-27 15:04:27 +02:00
Andreas Gohr fe227084a6 removed safemode hack
Safemode has been removed in PHP 5.4.0. We finally no longer need to
deal with this insanity.
2018-06-07 17:24:43 +02:00
Andreas Gohr 7a0ee5388d show other errors in undefined settings again
This reestablishes the mechanism of adding errors as Sepcial classes to the
undefined list.
2018-06-01 09:01:12 +02:00
Andreas Gohr 13ce475d48 shortened new search configs
shorter names are more in line with what we already use, makes less
layout problems in the documentation and is easier to type when telling
people about it.
2018-04-11 14:39:04 +02:00
Michael Große d09b5b6441
feat(search): add config options to adjust default behavior
This adds two new config options:

`search_limit_to_first_ns`:
Limit the search to the current X namespaces. When a search is executed
from a page within a deeper namespace, the first X namespaces will be
added as filter.
Possible use case could be with language namespaces to ensure that the
default search is initially within the current language.

`search_default_fragment_behaviour`:
Option to specify the default fragment search behavior
2018-03-22 14:22:41 +01:00
Schplurtz le Déboulonné 8bc5de1fd8 add rss_media config values translations 2017-12-23 00:13:46 +01:00
Lukas Rademacher 5f43dcf497 Support for configurable e-mail return path 2017-10-28 22:24:54 +02:00
Andreas Gohr fa07866393 allow selecting the preferred CDN and add event
We now have two CDNs available. code.jquery.com which is the more
popular one and CDNjs which is the faster one. Plugin authors can use a
plugin hook to easily implement their own preferred CDN. Authors might
even use this event to conditionally load additional JavaScript files.
2016-12-21 16:14:48 +01:00
Andreas Gohr 61537d4730 split off jquery from other JS and add CDN option #1766
jQuery (and UI and Migrate) are now loaded separately from the rest of
the JavaScript. This adds at least one HTTP request more but has some
advantages:

* browsers can cache it independently
* the cache is only invalidated when versions update
* we do not apply any transformations (replacements, minimizing, etc) on
  this code anymore which makes our dispatcher faster for the other JS
* browsers seem to load (not execut) both (jquery and other) parallel,
  which might increase download speed a bit

This split allowed for the introduction of a new config: jquerycdn. When
enabled the 3 jquery files are loaded from jQueries CDN. This adds
another two HTTP requests but:

* since it's another host those files do not apply to the 4 request per
  host limit and can be loaded (not executed) in paralell which might
  increase download speeds a bit
* the CDN is distributed worldwide which means files are requested from
  the closest location, increasing the download speeds
* since these files/CDN are very popular, chances are high that people
  already have them cached in their browsers, reducing the download time
  to 0 and effectiely halving the javascript needed to download

The option currently defaults to 'off', but I would argue 'on' would be
the better default.
2016-11-26 14:29:40 +01:00
Anders Sandblad 59752844d1 Fixed broken links to php.net and redirecting pages to php.net 2016-06-14 08:48:12 +02:00
Anika Henke 8f7099909d removed very old left overs from IE7 (and even IE6) support 2016-04-18 19:45:40 +01:00
Andreas Gohr faa5129227 added config stuff for disabling RSS 2014-03-18 13:43:18 +01:00
Gerrit Uitslag 7f081821c5 Extend showuseras config with username_link
uses the user interwiki link as profile link
2014-02-15 00:42:05 +01:00
Matt Perry a44e6f809d Fix grammar in proxy_except description
Remove trailing preposition.
2013-08-23 04:37:02 -07:00
Matt Perry 919c95be77 Fix grammar for allowdebug description
Add a full stop between sentences for the allowdebug description.
2013-08-23 04:34:49 -07:00
Matt Perry 7a61cb659a Fix grammar for the hidepages description 2013-08-23 04:33:28 -07:00
Andreas Gohr 395e7d8e1e Merge branch 'pull-request-245'
* pull-request-245:
  coding corrections. correct type hint, remove unused variable assignment
  HTTPClient don't pull too much bytes when no content-length is given
  de/de-informal: localization updates (delete user function)
  unit tests for self deleting of user accounts
  FS#2751 - self deletion of user account

Conflicts:
	inc/lang/de-informal/lang.php
	inc/lang/de/lang.php
2013-08-02 21:52:50 +02:00
Andreas Gohr 836a176267 Merge branch 'FS#2751' of git://github.com/splitbrain/dokuwiki into pull-request-245
* 'FS#2751' of git://github.com/splitbrain/dokuwiki:
  coding corrections. correct type hint, remove unused variable assignment
  de/de-informal: localization updates (delete user function)
  unit tests for self deleting of user accounts
  FS#2751 - self deletion of user account
2013-08-02 21:49:24 +02:00
Matthias Schulte cd3ed83c4f de/de-informal/en: Removed redundant suffixes in TOC of configuration
manager / Synchronize terms in de and de-informal
2013-08-02 18:44:12 +02:00
Christopher Smith 2a7abf2d7f FS#2751 - self deletion of user account 2013-07-31 18:14:26 +02:00
Michael Hamann 0320882f76 Remove search_references() and the refshow configuration option
The refshow configuration option wasn't used as described anymore
already in the latest release and after the introduction of the media
usage index the parameter is also no longer relevant for internal
optimization. The only place where it was still used is the no longer
used search_references()-function which is removed here, too.
2013-07-31 18:05:43 +02:00
Andreas Gohr 22ef1e32c5 added option to disable reverse DNS lookups 2012-04-23 12:24:08 +02:00
Andreas Gohr 8aea638195 Merge branch 'master' into htmlmail
* master:
  extended some config options a bit, to make more clear what they do
  rearranged the config options

Conflicts:
	conf/dokuwiki.php
	lib/plugins/config/lang/en/lang.php
	lib/plugins/config/settings/config.metadata.php
2012-04-15 15:21:04 +02:00
Andreas Gohr b5cc8f4b6b extended some config options a bit, to make more clear what they do 2012-04-15 15:11:29 +02:00
Andreas Gohr 7cd0713ea6 rearranged the config options
We had a lot of options lumped together under "Advanced Settings". I
introduced two more categories and move a few options to other existing
categories.
I also reordered the appropriate entries in the source files to make it
easier to find stuff when extending the options.
2012-04-15 14:57:20 +02:00
Andreas Gohr ae7c596cf4 Merge branch 'master' into htmlmail
* master: (382 commits)
  Romanian language update
  Marathi language update
  Arabic Language Update
  when there's not enough space for images, make sure they stay proportional (might be FS#2480)
  added minimal RTL print styles (part of FS#2185)
  moved plugins' rtl.css to their style.css counterpart (part of FS#2185)
  removed all browser-specific gradients as the recently (in 42ff6730) introduced svg makes them unnecessary
  removed comments from accidentally commented lines in tpl_includeFile()
  removed obsolete template file
  added tpl_includeFile() to core
  Make getTitle method in remote interface public
  Changed an error code in XML-RPC interface. This error hasn't anything to do with the rest of the -32600 errors.
  BG: language update
  Korean language update
  fixed performance issues with gradient in Firefox (which also added gradient support for IE9) (FS#2447)
  deleted very old (and unused) images
  added accidentally removed '<?php' back in (was in 57fc5edd)
  wrapped X-UA-Compatible meta tag with conditional comments
  added explanation to todo in _forms.css
  removed problematic 'overflow: hidden' from lists again ('unfixes' FS#1950)
  ...

Conflicts:
	inc/auth.php
	inc/load.php
2012-04-15 13:45:45 +02:00
Andreas Gohr 2398a2b541 made it possible to disable HTML mails in the config 2012-04-15 13:25:05 +02:00
Andreas Gohr f914ba96dd more verbose remote API config setting explanation 2012-03-23 10:07:03 +01:00
Dominik Eckelmann 3a6d76070b Merge branch 'master' of https://github.com/splitbrain/dokuwiki
Conflicts:
	lib/exe/xmlrpc.php
2012-03-14 12:52:36 +01:00
Andreas Gohr a7c93226bd make RSS contents (media/pages) configurable 2012-03-02 08:08:29 +01:00
Anika Henke 91e9045718 added two new config options: tagline and sidebar
Templates authors should support these to make the transition between templates easier. Templates which already have a sidebar could first check for $conf['sidebar'] and use it if it's defined, otherwise use their old own sidebar functionality to stay backwards-compatible.
2012-01-29 19:15:13 +00:00
Dominik Eckelmann eb20307ad6 removed xmlrpc and xmlrpcuser - added remote and remoteuser config option 2012-01-08 14:38:52 +01:00
Andreas Gohr 37c23632c3 added missing config metadata FS#2383
Translators need to add another string.
2011-11-27 11:37:26 +01:00
Anika Henke 34bc7405a0 paraphrased '<' character in some language files (en, de, de-informal) to avoid XML errors -- please fix other languages 2011-11-05 12:38:31 +00:00
Dominik Eckelmann b546d86400 Merge pull request #19 from gbirke/master
Make cookie path configurable
2011-08-18 03:40:04 -07:00
Andreas Gohr 28f4004c93 Made the maximum embed size for datauris configurable
The feature is now disabled by default.
Metadata for config manager was added.
2011-06-18 10:16:47 +02:00
Matthias Schulte 84ddc6debb language updates: update.dokuwiki.org is currently used for update/msg-checks 2011-04-28 13:42:19 +02:00
Guy Brand 5526795c71 Allow a prefix for subject of sent mails (Close FS#2021) 2010-12-31 15:46:43 +01:00
Gabriel Birke 2f1d4a94eb Modified config and lang files for new option 2010-12-30 17:24:38 +01:00
Andreas Gohr fd4b63511e typo fix 2010-10-02 19:14:14 +02:00
Andreas Gohr 7aeda57486 added proxy exception regexp FS#1247 2010-06-26 20:42:48 +02:00
Andreas Gohr f03fd95752 new fnencode option FS#1649
This patch adds an option to choose how filenames are encoded
when saved to the file system. You can choose between urlencoding
(url), the new SafeFn method (safe) and storing real UTF-8 (utf-8).
2010-04-04 20:28:39 +02:00