Commit Graph

139 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
Phy 9ec1015a9e
change default of passcrypt to bcrypt #2936 2019-12-11 11:05:51 -05: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
StarArmy aa8728f884
add UGC hint 2019-09-12 15:05:51 -04:00
Elan Ruusamäe 160b2db839
conf: remoteuser doc inprovement 2019-01-02 16:45:48 +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 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
Lukas Rademacher 5f43dcf497 Support for configurable e-mail return path 2017-10-28 22:24:54 +02: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
Andreas Gohr 7a96431840 inline small images into the CSS by default
Since we no longer support old IE 8 and below we can enable data uris
by default now. The picked size here is open for discussion.

A typical HTTP header for a static image ressource is about 200 to 250
bytes at dokuwiki.org. I picked twice of that as the cutoff for inlining
images.
2016-04-18 21:12:32 +02:00
Martijn Ras e4729a0500 Fixed typo and added check 2014-06-30 13:32:35 +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 3094e817f9 changed default auth to authplain
We need to decide how to handle the renaming of the auth classes. Should
this be done automatically somehow? Or is an admin expected to fix this
manually when updating?
2012-10-06 11:11:50 +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 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
Anika Henke b7c3da9b00 Merge pull request #82 from splitbrain/new-template
The new default template "dokuwiki", a new era has begun

Thanks to Clarence Lee for the initial design, Anika Henke and Andreas Gohr for the hard work, Michael Hamann and Håkan Sandell for testing and many others for valuable feedback.
2012-04-07 14:31:39 -07: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 1cbac89c95 make new template the default 2012-03-10 17:27:35 +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
Kate Arzamastseva e5d185e17e issue #9 config option to disable media revisions, auth 2011-08-02 20:25:17 +03: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
Andreas Gohr 809d3ba53b Use data uris for small image files in CSS
This patch adds a new config option 'cssdatauri'. When enabled, the CSS
patcher will automatically convert all occurances of small (<600 byte)
PNG and GIF images in the CSS to embedded, base64 encoded data uris.

This reduces the number of needed HTTP requests and avoids the HTTP header
overhead.
2011-06-17 01:41:51 +02:00
Guy Brand 8dbd31e5a7 Fix broken link to config help page 2011-04-16 10:07:11 +02:00
Adrian Lang 731ae6527a Merge branch 'master' of github.com:splitbrain/dokuwiki 2011-01-14 21:45:52 +01:00
Guy Brand 5526795c71 Allow a prefix for subject of sent mails (Close FS#2021) 2010-12-31 15:46:43 +01:00
Adrian Lang b5a0be432b Various changes to feed.php’s parameter handling
* Do not emit E_NOTICEs
  * Introduce explicit feed mode default value »recent« instead of handling
    every unknown feed mode as recent changes mode. This means:
    - FEED_MODE_UNKNOWN is only executed if the given feed mode is indeed
      unknown. This is specifically not the case if no feed mode request param
      has been specified or the requested feed mode is »recent«.
    - FEED_MODE_UNKNOWN dies with an error as default behaviour
  * opt[items] is forced to be a non-negative integer
  * opt[show_minor] is forced to be a boolean and thus has a default value of
    false instead of null
2010-12-08 17:43:22 +01: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
YoBoY 229529655f Limiting use of readdir in the idx_indexLengths function (v2).
Each searches on the wiki use this function. Scanning the index directory eachtime is time consuming with a constant series of disk access.
Switching a normal search to use file_exists 1 or more times, and not readdir all the directory.
Switching a wildcard search to use a lengths.idx file containing all the word lengths used in the wiki, file generated if a new configuration parameter $conf[readdircache] is not 0 and fixed to a time in second. Creation of a new function idx_listIndexLengths to do this part.
2010-03-24 21:27:23 +01:00
Adrian Lang 6c1f778cae Fix section editing killing next section 2010-02-08 10:16:35 +01:00
Adrian Lang b965ba797e Fix digest time default value 2010-02-08 10:16:12 +01:00
Adrian Lang 25fabd1de0 Fix documentation for subscribe_time 2010-02-08 10:16:12 +01:00
Adrian Lang 5b75cd1f5c New mail subscription with digest 2010-01-20 10:53:18 +01:00
Adrian Lang 5dae719c20 Correct documentation of $conf['rss_update']
darcs-hash:20091124105337-e4919-28ba5139872cbb7a4fd82d2e6e58e20058e31a01.gz
2009-11-24 11:53:37 +01:00
furun 47583ff042 Whitespace cleanup FS#1709
Ignore-this: 27ea52110bce929b2c61ed8faba67cfc

darcs-hash:20091016205526-c0bf4-35eba4e65d37980a667ba982f7f1ea5b7b07f01c.gz
2009-10-16 22:55:26 +02:00
Anika Henke 59869a4bb5 removed purple numbers
darcs-hash:20090525194435-f7d6d-2def694a053f7e661f88f1636903283bad7c1fa8.gz
2009-05-25 21:44:35 +02:00
Andreas Gohr 3ee5b583c4 restrict XMLRPC to configurable groups and users
Ignore-this: 1370cee84d44bb35ae7c0c988ed8f1ff

This patch adds a config option to define users or groups that may access
the XMLRPC API. ACLs are still checked on top of this intial access control.

darcs-hash:20090516114351-7ad00-155fb6c74c29f5f84e79544a534369eec0403ff0.gz
2009-05-16 13:43:51 +02:00
Anika Henke 91459163e4 Purple Numbers (granular hierarchical IDs) - set $conf['purplenumbers'] and adjust your CSS
darcs-hash:20090504222544-f7d6d-fd9e4c771c5aef32dc2927a1da4dfa4fc4f8b4f1.gz
2009-05-05 00:25:44 +02:00
Anika Henke 851f2e8900 makes minimum amount of headlines configurable that determines if the TOC is built (FS#1226)
darcs-hash:20090116233507-f7d6d-aaff15652d2e698a4403b3386b5b1eb6c0fa38f3.gz
2009-01-17 00:35:07 +01:00
Michael Klier 17f89d7e69 FS#564 FS#1270 new option to disable the rememberme checkbox
darcs-hash:20081012144253-23886-c904f82c559c3ad5477bf921e93cb439a212134d.gz
2008-10-12 16:42:53 +02:00
Andreas Gohr 066fee3089 Make license selectable from config FS#312
darcs-hash:20081012113150-7ad00-6408da058bdb6c923159d445e03b76f54b579362.gz
2008-10-12 13:31:50 +02:00