Skip to content
Snippets Groups Projects
  1. Jan 15, 2011
  2. Jan 09, 2011
  3. Jan 03, 2011
  4. Dec 21, 2010
  5. Dec 08, 2010
    • Andreas Gohr's avatar
      added auth_isMember() · d6dc956f
      Andreas Gohr authored
      This function abstracts checking a given user and her groups against a
      given member list (as used in the superuser and manager options).
      
      It is also used in auth_isManager() and auth_isAdmin(), unlike the
      previous function, this one skips the nameencode step as it should be
      unnessary here (all input is given decoded).
      
      The test cases where extended by some non-ID user and group names.
      
      People with non-plain auth backends should check that their
      administrator and manager setups still work as expected
      d6dc956f
  6. Nov 29, 2010
  7. Oct 26, 2010
    • Adrian Lang's avatar
      Fix SafeFN-encoded file names · 8bddd94e
      Adrian Lang authored
      SafeFN encoding now always end the encoding block by appending a dot at the end of the file name. This is necessary since the file name may get an extension which is not encoded.
      8bddd94e
  8. Oct 11, 2010
  9. Oct 03, 2010
  10. Sep 23, 2010
  11. Sep 20, 2010
    • Adrian Lang's avatar
      Remove odd .htaccess · e383b004
      Adrian Lang authored
      Neither I nor Andi has any idea what this file is for and why it explicitly //grants// permission and why its documentation is wrong.
      e383b004
  12. Aug 31, 2010
  13. Jul 01, 2010
  14. Jun 09, 2010
  15. Apr 04, 2010
  16. Mar 30, 2010
    • Michael Klier's avatar
      added support for plugin unittests · 08d7babf
      Michael Klier authored
      	This patch adds support to include plugin tests in the
      	DokuWiki testsuite. Plugin tests are located in a dedicated
      	directory _test/within a plugin directory. The naming
      	convention of the test files follows the one used in
      	DokuWikis testsuite.
      
      		<plugin>/_test/*.test.php 	-> single test
      		<plugin>/_test/*.group.php  -> group test
      
      	The plugin tests are accessible via the web interface
      	of the test suite and via the cli interface. It is recommend
      	to bundle plugin test in a plugin group test. The webinterface
      	also allows to run all plugin tests at once.
      
      	Test files must include:
      
      		<dokuwiki>/_test/lib/unittest.php
      
      	Example Test:
      
      	require_once(DOKU_INC.'_test/lib/unittest.php');
      	class plugin_test extends Doku_UnitTestCase {
      		function test() {
      			$this->assertEqual(1,1);
      		}
      	}
      
      	Example Group Test:
      
      	require_once(DOKU_INC.'_test/lib/unittest.php');
      	class plugin_group_test extends Doku_GroupTest {
      		function group_test() {
      			$dir = dirname(__FILE__).'/';
      			$this->GroupTest('plugin_grouptest');
      			$this->addTestFile($dir . 'plugin.test1.php');
      			$this->addTestFile($dir . 'plugin.test2.php');
      			$this->addTestFile($dir . 'plugin.test3.php');
      		}
      	}
      
      	At the moment unittest.php contains only two
      	meta classes so plugins tests don't have to inherit
      	from the simpletest classes.
      
      	This patch should be treated as intermediate step to
      	allow for plugin tests. The testsuite wasn't designed
      	to include plugin tests. It should probably be refactored
      	at a later point.
      08d7babf
  17. Mar 24, 2010
    • YoBoY's avatar
      Limiting use of readdir in the idx_indexLengths function (v2). · 22952965
      YoBoY authored
      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.
      22952965
  18. Mar 23, 2010
  19. Mar 02, 2010
  20. Feb 28, 2010
  21. Feb 04, 2010
  22. Feb 01, 2010
  23. Jan 29, 2010
  24. Dec 01, 2009
  25. Nov 05, 2009
  26. Nov 03, 2009
  27. Oct 22, 2009
    • Adrian Lang's avatar
      Make Doku_Form constructor more flexible · e351c80d
      Adrian Lang authored
      The Doku_Form constructor used to take up to four arguments setting specific
      parameters of the resulting form HTML element. Instead, a generic array is
      passed to the constructor specifying HTML parameters.
      
      darcs-hash:20091022120138-e4919-3a42baf8c12b15e6df20e1f28152a992e347859d.gz
      e351c80d
  28. Oct 04, 2009
  29. May 15, 2009
  30. May 14, 2009
  31. Apr 19, 2009
  32. Mar 08, 2009
Loading