1. 07 Aug, 2009 1 commit
  2. 27 May, 2009 1 commit
  3. 13 Jul, 2008 1 commit
  4. 30 Mar, 2008 1 commit
  5. 24 Mar, 2008 1 commit
  6. 12 Oct, 2007 1 commit
    • nyloth's avatar
      [MOD] prefs and user prefs: $prefs array deployement in php + some small fixes · 86185302
      nyloth authored
      (Preliminary note : This is a deep modification in tikiwiki's prefs code. Please test first and send feedback if you can)
      
       * Now use the $prefs array everywhere (in php files also) instead of global vars. This will :
      
      	- allow to use prefs the same way in smarty and php ($prefs array),
      
      	- simplify all code parts that modifiy a preference, because when a pref is modified in php's $prefs array, it is also up-to-date in smarty $prefs array (everything is passed by reference now). So, no more need to reassign values in smarty each time,
      
      	- avoid duplication of values in memory,
      
      	- reduce risks of errors (e.g. collision in variables names, forget to add one of the "global $prefname", ...)
      
      
       * All user prefs are now retrieved in one query at tiki-setup stage (as site prefs) and also in session vars (when sessions are used). This will :
      
      	- reduce overhead and database queries after the first page
      
      
       * User prefs are now overriding $prefs. This will :
      
      	- simplify the whole usage of $prefs, because only one array is used (no more need, in general, to use tikilib's functions to get user prefs),
      
      	- set some $prefs['site_*'] (listed in the $user_overrider_prefs array of lib/setup/user_prefs.php) for some specific site prefs that needs to be accessed in php (for example when sending mails) and that could have been overrided with the corresponding user pref
      86185302
  7. 07 Oct, 2007 1 commit
    • nyloth's avatar
      [MOD] prefs : some cleaning / factorizing · 9e8d826e
      nyloth authored
        - set the $prefs array in order to use it in php files
        - move tiki-setup_base.php's session code in order to execute it as soon as possible and benefit from prefs already in session vars,
        - remove some useless smarty assignations and calls to tikilib's get_preference() method,
        - group some preferences queries,
        - rewrite tikilib's get_preferences() method to also handle "exact names" (not filters), in order to ask for more than one pref in one query (same as the get_user_preferences() method),
        - new tikilib method _get_values() on which is based get_preferences() and get_user_preferences(). It is used to get values from db, global vars, or defaults depending on where it finds the first value,
        - remove an debug call to print_r related to contributors
      9e8d826e
  8. 18 May, 2007 1 commit
  9. 06 Mar, 2007 1 commit
  10. 18 May, 2005 1 commit
  11. 01 Jan, 2005 1 commit
  12. 28 Mar, 2004 1 commit
  13. 09 Nov, 2003 1 commit
  14. 07 Aug, 2003 1 commit
  15. 19 Jun, 2003 1 commit
  16. 21 Mar, 2003 2 commits