Skip to content
Snippets Groups Projects
  1. Jul 31, 2015
  2. May 15, 2015
  3. 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
  4. 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
  5. Feb 25, 2014
  6. Jan 22, 2014
  7. Oct 30, 2013
  8. Aug 01, 2013
  9. Jul 30, 2013
  10. Jul 29, 2013
  11. Nov 09, 2012
  12. Nov 06, 2012
  13. Nov 03, 2012
  14. Sep 10, 2012
  15. 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
  16. Sep 08, 2012
  17. 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
  18. 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
  19. May 20, 2012
  20. Apr 26, 2012
  21. Mar 22, 2012
  22. Jan 02, 2012
  23. Nov 23, 2011
  24. Nov 19, 2011
  25. Nov 12, 2011
  26. Jun 06, 2011
  27. 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
  28. Sep 22, 2010
  29. 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
  30. Mar 16, 2010
  31. Mar 15, 2010
  32. Mar 12, 2010
  33. Feb 01, 2010
  34. 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