Skip to content
Snippets Groups Projects
  1. Jul 30, 2013
  2. Nov 09, 2012
  3. Nov 06, 2012
  4. Nov 03, 2012
  5. Sep 10, 2012
  6. 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
  7. Sep 08, 2012
  8. 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
  9. 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
  10. May 20, 2012
  11. Apr 26, 2012
  12. Mar 22, 2012
  13. Jan 02, 2012
  14. Nov 23, 2011
  15. Nov 19, 2011
  16. Nov 12, 2011
  17. Jun 06, 2011
  18. 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
  19. Sep 22, 2010
  20. Apr 04, 2010
    • Andreas Gohr's avatar
      new fnencode option FS#1649 · f03fd957
      Andreas Gohr authored
      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).
      f03fd957
  21. Mar 16, 2010
  22. Mar 15, 2010
  23. Mar 12, 2010
  24. Feb 01, 2010
  25. Jan 31, 2010
    • Andreas Gohr's avatar
      first attempt to centralize all include loading · 16905344
      Andreas Gohr authored
      Classes are loaded throug PHP5's class autoloader, all other
      includes are just loaded by default. This skips a lot of
      require_once calls.
      
      Parser and Plugin stuff isn't handled by the class loader yet.
      16905344
Loading