- Feb 05, 2017
-
-
Andreas Gohr authored
similar to what is possible for plugins, templates can now autoload namespaced classes, too. the namespace is dokuwiki\template\<templatename>
-
- Oct 01, 2016
-
-
Florian Rathgeber authored
-
- Sep 06, 2016
-
-
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)
-
- Apr 20, 2016
-
- Apr 18, 2016
-
-
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.
-
- Apr 14, 2016
-
-
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.
-
- Nov 27, 2015
-
-
Andreas Gohr authored
-
- Oct 17, 2015
-
-
David Stone authored
-
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
-
- Jul 31, 2015
-
-
Andreas Gohr authored
-
- May 15, 2015
-
-
Andreas Gohr authored
-
- May 08, 2015
-
-
Andreas Gohr authored
-
- Jan 07, 2015
-
-
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.
-
- Mar 17, 2014
-
-
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.
-
- Feb 25, 2014
-
-
Christopher Smith authored
-
- Jan 22, 2014
-
-
Andreas Gohr authored
-
- Oct 30, 2013
-
-
Andreas Gohr authored
-
- Aug 01, 2013
-
-
Michael Hamann authored
This replaces the deprecated and broken Blowfish implementation that has previously been used and should provide a lot more security.
-
- Jul 30, 2013
-
-
Michael Hamann authored
This replaces the deprecated and broken Blowfish implementation that has previously been used and should provide a lot more security.
-
- Jul 29, 2013
-
-
Andreas Gohr authored
still needs testing
-
- Nov 09, 2012
-
-
Andreas Gohr authored
-
- Nov 06, 2012
-
-
Andreas Gohr authored
-
- Nov 03, 2012
-
-
Andreas Gohr authored
-
Andreas Gohr authored
This new class is only losely based on our previous library. The whole API was changed to make it more flexible and memory saving. Some fisrt unit tests are included
-
- Sep 10, 2012
-
-
Michael Hamann authored
-
- Sep 09, 2012
-
-
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.
-
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.
-
- Sep 08, 2012
-
-
Michael Hamann authored
This checks if plugin names are valid and only loads valid plugin files, this could prevent some errors from wrong upgrades as described in FS#2464.
-
- Aug 12, 2012
-
-
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.
-
- Jun 24, 2012
-
-
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.
-
- May 20, 2012
-
-
Andreas Gohr authored
When a plugin file exists, we can assume it is the correct file and load it without error supression. This makes it much easier to detect and debug problematic plugins.
-
- Apr 26, 2012
-
-
Andreas Gohr authored
this fixes the HTTP tests which do test the base class directly instead of the DokuHTTPClient subclass
-
- Mar 22, 2012
-
-
Dominik Eckelmann authored
-
- Jan 02, 2012
-
-
Jan Schumann authored
-
Jan Schumann authored
-
- Nov 23, 2011
-
-
Dominik Eckelmann authored
-
- Nov 19, 2011
-
-
Dominik Eckelmann authored
-
- Nov 12, 2011
-
-
Andreas Gohr authored
-
- Jun 06, 2011
-
-
Adrian Lang authored
-
- Jan 22, 2011
-
-
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?
-