Skip to content
Snippets Groups Projects
  1. Dec 12, 2008
  2. Oct 12, 2008
  3. Sep 29, 2008
  4. Sep 14, 2008
    • Andreas Gohr's avatar
      rewrote the fullpath function FS#1462 · 4761d30c
      Andreas Gohr authored
      The fullpath function now correctly handles windows drive letter paths and UNC
      paths making sure that those are not destroyed with upper dir .. notation.
      
      Unit tests where added.
      
      darcs-hash:20080914134744-7ad00-9abf5931d910a0b12979b1f69b090e8ecd568c71.gz
      4761d30c
  5. Sep 12, 2008
    • Andreas Gohr's avatar
      more cookie security FS#1490 · f5c6743c
      Andreas Gohr authored
      This patch adds the httponly option to the PHP session cookies and DokuWiki's
      auth cookie when supported by the PHP version.
      
      It also adds a new config option 'securecookie' which is enabled by default.
      It makes sure the browser will not sent a cookie set via HTTPS over a
      non-secured connection. This option has to be disabled for wikis that only
      protect the login with SSL but not the whole wiki.
      
      darcs-hash:20080912224922-7ad00-d5275147ba9d17a9f6defa8a51ca720da74ba8a0.gz
      f5c6743c
    • Andreas Gohr's avatar
      avoid warning on file_exists FS#1428 · de9104dd
      Andreas Gohr authored
      darcs-hash:20080912212311-7ad00-26249ceb7fb08a442888942072ef2dd8279ab3d2.gz
      de9104dd
  6. Aug 24, 2008
  7. Jun 27, 2008
    • Andreas Gohr's avatar
      support for an option inc/preload.php file · 48beefec
      Andreas Gohr authored
      This patch readds the possibilities previously gained by the DOKUWIKI_INIT event
      by adding support for including a file named inc/preload.php. When available, it
      will be included before any defines for dokuwiki are set.
      
      darcs-hash:20080627222629-7ad00-a663ded7ac08369f011e1f63e1c60fa81ec05b51.gz
      48beefec
    • Andreas Gohr's avatar
      DOKUWIKI_INIT patch rollback · a81c8802
      Andreas Gohr authored
      darcs-hash:20080627214831-7ad00-d6eee0ddd406c972455871da75d04c5f5fc8a307.gz
      a81c8802
  8. Jun 22, 2008
    • Michael Klier's avatar
      added DOKUWIKI_INIT event · 7ba41511
      Michael Klier authored
      	This patch adds a new event DOKUWIKI_INIT to the event system. The event is
      	triggered in inc/init.php right after DOKU_INC has been defined and allows
      	action plugins to interfere with DokuWiki s init process.
      
      darcs-hash:20080622144154-23886-5153094bd78c2cea7f97e24c7b41cac6c641f49f.gz
      7ba41511
  9. Apr 12, 2008
    • ilya's avatar
      fix for UNC paths · b934b851
      ilya authored
      This patch fixes use of UNC path in $conf['savedir'] and calling of /bin/ scripts.
      
      darcs-hash:20080412124628-51399-9f85214fa4d787d5ad3a3b3c1ca655a29efc07e4.gz
      b934b851
  10. Apr 18, 2008
  11. Apr 09, 2008
  12. Feb 27, 2008
  13. Feb 23, 2008
    • Andreas Gohr's avatar
      use strftime() instead of date() FS#1335 :!: · e656dcd4
      Andreas Gohr authored
      This patch replaces the use of the date() function with the strftime()
      function. The latter will respect a set locale and will use localized
      strings for things like month names.
      
      Because the format options for strftime differ from the ones used in date,
      DokuWiki will rest the value of $conf['dformat'] if it contains an old
      date format string (detected by missing % characters).
      
      Plugins or templates using the $conf['dformat'] need to be updated.
      
      darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz
      e656dcd4
  14. Jan 24, 2008
  15. Sep 30, 2007
  16. Aug 19, 2007
  17. Aug 05, 2007
    • Andreas Gohr's avatar
      separated TOC from page · b8595a66
      Andreas Gohr authored
      This patch introduces a tpl_toc() function which can be used to freely place
      the Table of Contents in a template. When used, tpl_content should be called
      with a parameter of false to supress the automatic TOC placement.
      
      Note: if tpl_toc() us run *before* tpl_content(), TOCs will not work in the
      preview. A work around is to run tpl_content() in a output buffer first.
      
      This patch also adds a getTOC() function for admin plugins which allows plugin
      authors to put create their own TOC which will be placed correctly in the
      template. A convenience function html_mktocitem() is available.
      
      The config manager was adjusted to make ue of this new feature, but some bugs
      might remain.
      
      darcs-hash:20070805132405-7ad00-77d2c3cdf66cc62b2d408cc6580f938636a109af.gz
  18. Jun 03, 2007
  19. May 14, 2007
  20. May 13, 2007
  21. Apr 24, 2007
  22. Mar 26, 2007
  23. Dec 11, 2006
    • Mike Frysinger's avatar
      make setup error a little more verbose · 3a3e1c5f
      Mike Frysinger authored
      if a subdir is not setup properly, then init_paths() in inc/init.php will use
      the pretty name ("datadir" instead of "pages"; "olddir" instead of "attic").
      attached patch simply includes the actual directory name in the output so
      people dont have to look it up in the source
      code.
      
      darcs-hash:20061211194244-5224c-2d22eeb08d770108d1d993783e95d11bef0e8855.gz
      3a3e1c5f
  24. Nov 26, 2006
    • chris's avatar
      metadata update to support both persistent and non-persistent metadata · 0a7e3bce
      chris authored
      Key changes:
      - metadata stored on disk in two arrays, 'current' & 'persistent'
      - p_set_metadata has an additional parameter, $persistent, which defaults to true
      - metadata set within the renderer defaults to non-persistent
      - new event hook, PARSER_METADATA_RENDER, which wraps around metadata rendering process. For
        full details of this event refer to the event list documentation at splitbrain.
      
      The patch includes automatic conversion of metadata in current form to the new format
      
      For more details also see http://www.freelists.org/archives/dokuwiki/11-2006/msg00221.html
      and any follow-up messages.
      
      darcs-hash:20061126152144-9b6ab-a4e40c221e0274b13da07dc2fc1d2100f5f3a50e.gz
      0a7e3bce
  25. Nov 12, 2006
    • TNHarris's avatar
      Word-Length Indexer · 579b0f7e
      TNHarris authored
      A modification to the indexer that sorts words based on length. This should make
      searching a little bit more efficient. After the patch is applied, your old index
      will be automatically converted to the new format (when you visit a page). The
      new index format is:
      
      1. Index files are stored in savedir/index
      2. Word lists are stored as wlen.idx. This used to be word.idx.
      3. Word indexes are stored as ilen.idx. This used to be index.idx.
      4. The page list, page.idx, is simply copied to the new location.
      
      Any plugins you have, such as the blog plugin, that read the index files need to
      be updated.
      
      darcs-hash:20061112194900-2b9f0-a975498ccf0a1d39c6df73b79bcd028d5e81c389.gz
      579b0f7e
  26. Oct 03, 2006
    • Andreas Gohr's avatar
      use DOKU_URL as key for sessions and auth cookie #896 #581 #884 · e71ce681
      Andreas Gohr authored
      This patch changes the DOKU_COOKIE define to be based on the DOKU_URL define.
      DOKU_COOKIE is now used as session key as well, making sessions no longer
      dependend on the title option. This should fix problems with multiple
      wikis on the same host (using the same title) and wikis accessed through
      different URLs.
      
      darcs-hash:20061003121546-7ad00-aea4c256b7752815ed422ce74a659152a601d267.gz
      e71ce681
  27. Sep 23, 2006
    • chris's avatar
      minor bugfix and boring error removal · bb4866bd
      chris authored
      darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
      bb4866bd
    • chris's avatar
      add authname memory cache · a424cd8e
      chris authored
      actions which concern multiple pages (e.g. search, backlinks, recents)
      end up repeatedly encoding the current user's name and groups. This
      change caches the results of the encoding allowing them to be reused.
      
      darcs-hash:20060923161206-9b6ab-a3ec8f1c2ec284d84b9ff85cba1e56165b2967a7.gz
      a424cd8e
  28. Sep 08, 2006
  29. Aug 30, 2006
    • Andreas Gohr's avatar
      conflict resolution for memory cache init · bc3e97be
      Andreas Gohr authored
      darcs-hash:20060830210459-7ad00-8f7a2ae826d5f893d3e48f41c8ae868987ec0dd2.gz
      bc3e97be
    • Ben Coburn's avatar
      scalable changelog redesign · 71726d78
      Ben Coburn authored
      This patch provides a rewritten changelog system that is designed to run
      efficiently on both small and large wikis. The patch includes a plugin to
      convert changelogs from the current format. The conversion is
      non-destructive and happens automatically. For more information on the new
      changelog format see "http://wiki.splitbrain.org/wiki:changelog".
      
      Structure
      In short the changelog is now stored in per-page changelog files, with a
      recent changes cache. The recent changes cache is kept in
      "/data/meta/_dokuwiki.changes" and trimmed daily. The per-page changelogs
      are kept in "/data/meta/<ns>/<page_id>.changes" files. To preserve
      revision information for revisions stored in the attic, the "*.changes"
      files are not removed when their page is deleted. This allows the full
      life-cycle of page creation, deletion, and reversion to be tracked.
      
      Format
      The changelog line format now uses a general "line type" field in place of
      the special "minor" change syntax. There is also an extra field that can
      be used to store arbitrary data associated with special line types. The
      reverted line type (R) is a good example. There the extra field holds the
      revision date used as the source for reverting the page. See the wiki for
      the complete syntax description.
      
      Code Notes
      The changelog functions have been rewritten to load the whole file only if
      it is small. For larger files, the function loads only the relevant
      chunk(s). Parsed changelog lines are cached in memory to speed future
      function calls.
      
      getRevisionInfo
      A binary search is used to locate the chunk expected to contain the
      requested revision. The whole chunk is parsed, and adjacent lines are
      optimistically cached to speed consecutive calls.
      
      getRevisions
      Reads the changelog file backwards (newest first) in chunks until the
      requested number of lines have been read. Parsed changelog lines are
      cached for subsequent calls to getRevisionInfo. Because revisions are read
      from the changelog they are no longer guaranteed to exist in the attic.
      
      (Note: Even with lines of arbitrary length getRevisionInfo and
      getRevisions never split changelog lines while reading. This is done by
      sliding the "file pointer" forward to the end of a line after each blind
      seek.)
      
      isMinor
      Removed. To detect a minor edit check the type as follows:
      $parsed_logline['type']
      
      darcs-hash:20060830182753-05dcb-1c5ea17f581197a33732a8d11da223d809c03506.gz
      71726d78
  30. Aug 29, 2006
    • chris's avatar
      further update to global memory cache arrays · 19a32233
      chris authored
      - remove initialisation of caches in inc/pageutils.php
      - add global declaration to init.php to support init.php
        being included from within a function, e.g. unit testing
      
        ;-)
      
      - minor change to utf8_substr, remove non-essential brackets
        added as part of an earlier patch
      
      darcs-hash:20060829134806-9b6ab-ab15191344a83be664c412403dc84a24fa2253a2.gz
      19a32233
  31. Aug 28, 2006
    • Ben Coburn's avatar
      init global memory cache arrays · 50602150
      Ben Coburn authored
      Update to 'add function result caching for cleanID and wikiFN'.
      Makes certain that arrays exist for the caches, without checking on each function call.
      Properly create multidimensional arrays in wikiFN().
      
      darcs-hash:20060828071205-05dcb-7c8dbdb5ea4e7b73808ec3bd9222df1b837d3a1f.gz
      50602150
  32. Aug 25, 2006
    • Andreas Gohr's avatar
      typo fix for compression check · fe893490
      Andreas Gohr authored
      darcs-hash:20060825174755-7ad00-e67f267dd1552ba22b01662de6dbb84faf33e5f8.gz
      fe893490
    • Andreas Gohr's avatar
      compression fallback · 501252a5
      Andreas Gohr authored
      This updates the availability check of the choosen compression method. If bzip2
      is configured but not available it falls back to gzip if available.
      
      darcs-hash:20060825144739-7ad00-9f7ce54fd1dbf0d7a8272393e9bc02d862b28fff.gz
      501252a5
  33. Aug 04, 2006
    • chris's avatar
      unittest fixes · 03c4aec3
      chris authored
      darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.gz
      03c4aec3
Loading