Skip to content
Snippets Groups Projects
  1. Feb 05, 2017
    • Andreas Gohr's avatar
      support autoloading for templates · f83f0fd0
      Andreas Gohr authored
      similar to what is possible for plugins, templates can now autoload
      namespaced classes, too. the namespace is
      dokuwiki\template\<templatename>
      f83f0fd0
  2. Oct 01, 2016
  3. Sep 06, 2016
    • Andreas Gohr's avatar
      Use composer installed phpseclib · 59419fd0
      Andreas Gohr authored
      We used to ship only parts of phpseclib in inc/phpseclib which made it a
      little tricky to update. This replaces the library with a composer
      installed version, making the rest of the library available to plugin
      authors. It might fix a problem with PHP 7.1 as reported in #1682
      (unconfirmed)
      59419fd0
  4. Apr 20, 2016
  5. Apr 18, 2016
    • Andreas Gohr's avatar
      vendor prefix plugin namespace · b89dfc20
      Andreas Gohr authored
      As suggested by @micgro42 the plugin namespace should use a vendor
      prefix to avoid name clashes when DokuWiki is integrated with other
      software.
      b89dfc20
  6. Apr 14, 2016
    • Andreas Gohr's avatar
      autoload plugin namespace · 600fb65e
      Andreas Gohr authored
      This introduces an autoloader for namespaces starting with plugin\*
      
      This way, plugins can easily have additional classes auto loaded without
      needing to register their own loader. A plugin\*\test\* namespace will
      automatically be mapped to the _test directory of the plugin.
      600fb65e
  7. Nov 27, 2015
  8. Oct 17, 2015
    • David Stone's avatar
      fix error · b20eed15
      David Stone authored
      b20eed15
    • David Stone's avatar
      Optimizations to autoloader · 8a58013e
      David Stone authored
      Autoloader should return true if it can handle the class so other registered autoloader don't execute.
      require is faster than require_once and should be safe to use since the autoloader won't run if the class already exists
      8a58013e
  9. Jul 31, 2015
  10. May 15, 2015
  11. May 08, 2015
  12. Jan 07, 2015
    • Andreas Gohr's avatar
      Remove error supression for file_exists() · 79e79377
      Andreas Gohr authored
      In an older version of PHP a file_exists() call would issue a warning
      when the file did not exist. This was fixed in later PHP releases. Since
      we require PHP 5.3 now, there's no need to supress any error here
      anymore. This might even give a minor performance boost.
      79e79377
  13. Mar 17, 2014
    • Andreas Gohr's avatar
      completely new base for CLI scripts · 496e3a6f
      Andreas Gohr authored
      This introduces an abstract base class that command line tools need to
      inherit from. It provides a simple framework for registering accepted
      command line options and provides commonly needed things like help
      output and colored text.
      
      Existing CLI scripts still need to be converted.
      496e3a6f
  14. Feb 25, 2014
  15. Jan 22, 2014
  16. Oct 30, 2013
  17. Aug 01, 2013
  18. Jul 30, 2013
  19. Jul 29, 2013
  20. Nov 09, 2012
  21. Nov 06, 2012
  22. Nov 03, 2012
  23. Sep 10, 2012
  24. Sep 09, 2012
    • Michael Hamann's avatar
      Load plugins using include_once instead of include · 92faea0e
      Michael Hamann authored
      The problem with using include is that when the file that is loaded
      does not contain the plugin class (e.g. because the directory name is
      wrong), the file could be loaded again when the plugin class is
      requested a second time which will lead to a fatal error because of
      class redeclaration.
      92faea0e
    • Michael Hamann's avatar
      Less restrictive plugin name checking · baf1d9a0
      Michael Hamann authored
      This partially reverts de50cad6 as the
      strict check breaks existing plugins and this shouldn't be changed
      without prior discussion and a warning for plugin authors with some time
      to adjust their plugins. Now all characters that are valid in PHP class
      names except "_" are allowed.
      baf1d9a0
  25. Sep 08, 2012
  26. Aug 12, 2012
    • Andreas Gohr's avatar
      first start at refactoring the subscription system BROKEN · 2240ea1f
      Andreas Gohr authored
      This introduces a class for nicer wrapping and easier testing. Some
      functions were changed to provide nicer APIs (no throwing around of
      unescaped regexps) and to simplify things (hopefully).
      
      The refactoring isn't completed yet, so this will break the subscription
      system.
      
      The goal is to move as much subscription related stuff to this class as
      possible. Currently there is some code in lib/exe/indexer.php and maybe
      elsewhere (common.php?). Additionally everything should be covered by
      tests. A few tests are included here already.
      2240ea1f
  27. Jun 24, 2012
    • Andreas Gohr's avatar
      Introducing a $_REQUEST/POST/GET wrapper · 89177306
      Andreas Gohr authored
      This new wrapper ensures types are correct and accessed parameters are
      actually set (with custom default fallbacks).
      
      The wrapper is available in the global $INPUT variable. It accesses
      $_REQUEST by default. If POST or GET is required, the post and get
      members can be used:
      
      $INPUT->int('foo',false); // access $_REQUEST['foo'], default false
      $INPUT->post->int('foo'); // access $_POST['foo'], default 0
      $INPUT->get->int('foo'); // access $_GET['foo'], default 0
      
      The codebase still needs to be updated to make use of this.
      89177306
  28. May 20, 2012
  29. Apr 26, 2012
  30. Mar 22, 2012
  31. Jan 02, 2012
  32. Nov 23, 2011
  33. Nov 19, 2011
  34. Nov 12, 2011
  35. Jun 06, 2011
  36. Jan 22, 2011
    • Andreas Gohr's avatar
      refactored passowrd hashing functions to a class · 3a0a2d05
      Andreas Gohr authored
      this splits the long auth_cryptPassword() function into many member
      functions of a new class PassHash which should make it more
      maintainable and reusable for other projects.
      
      This also adds two new methods djangomd5 and djangosha1 as used by the
      popular python framework Django.
      
      Maybe the auth_cryptPassword() and auth_verifyPassword() functions
      should be deprecated in favor of using the class directly?
      3a0a2d05
Loading