1. 10 Feb, 2012 1 commit
  2. 10 Jan, 2012 1 commit
    • Richard Mansfield's avatar
      Expire users when they've been inactive for too long (bug #890929) · 81f26254
      Richard Mansfield authored
      
      
      The "Default account inactivity time" setting allows the admin to
      specify a time period after which users who have not used the site
      will be unable to login, but this is not currently enforced.
      
      This change modifies the inactivity cron job to set the expiry date to
      the current date for any user who has been inactive for longer than
      the 'defaultaccountinactiveexpire' period.  It also now considers the
      lastaccess and ctime fields as well as the lastlogin field.
      
      This allows the admin to reactivate inactive users by resetting their
      expiry dates in account settings.
      
      The active column on the user table is currently only used to decide
      whether users should be displayed in search results, and users are set
      to inactive whenever they are deleted, suspended, or expire.
      
      Change-Id: Ieaf7a0b36865af726fc2526895146373efbb2741
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      81f26254
  3. 15 Nov, 2011 1 commit
  4. 24 Aug, 2011 2 commits
  5. 13 May, 2011 1 commit
  6. 23 Feb, 2011 1 commit
  7. 01 Oct, 2010 1 commit
  8. 14 Jan, 2010 1 commit
  9. 01 Dec, 2009 1 commit
  10. 22 Oct, 2009 1 commit
  11. 03 Sep, 2009 1 commit
  12. 21 Apr, 2009 1 commit
  13. 14 Apr, 2009 1 commit
  14. 22 Jan, 2009 1 commit
  15. 15 Jan, 2009 1 commit
  16. 05 Jan, 2009 1 commit
  17. 13 Oct, 2008 2 commits
  18. 30 Sep, 2008 1 commit
  19. 21 Sep, 2008 1 commit
  20. 15 Sep, 2008 1 commit
    • Penny Leach's avatar
      More work on profile views and three new blocktypes... · 8465aa3f
      Penny Leach authored
      More work on profile views and three new blocktypes (myfriends/mygroups/myviews) to emulate current profile page TODO: - write wall blocktype - change install default profile view hook to add blocks - upgrade path (xmldb & migration) - blocktype and category and singleblockperview implementation
      
          - TESTING
      8465aa3f
  21. 18 Jun, 2008 1 commit
  22. 18 Mar, 2008 1 commit
    • Nigel McNie's avatar
      Make db_format_timestamp return null for any value that is 'empty'. · d6596676
      Nigel McNie authored
      Otherwise, $db->BindTimestamp() will return the string 'null' for 0 and '0', which no code in Mahara is expecting.
      
      Noticed as part of the previous commit, where $user->lastlogin defaulted to 0 (which was incorrect), and which db_format_timestamp was converting to 'null'.
      d6596676
  23. 20 Feb, 2008 1 commit
    • Nigel McNie's avatar
      Work around a bug in insert_record, where the table columns were cached for a... · e1c17aea
      Nigel McNie authored
      Work around a bug in insert_record, where the table columns were cached for a table the first time the table was inserted into, making it impossible to do inserts into the table in the same request if the table is changed.
      
      Added a global variable, $INSERTRECORD_NOCACHE, that can be set in order to force re-looking up the table columns.
      
      Use this feature to fix the installation of the forum interaction activity type "new post" when upgrading.
      e1c17aea
  24. 16 Feb, 2008 1 commit
  25. 12 Feb, 2008 1 commit
  26. 07 Dec, 2007 1 commit
    • Nigel McNie's avatar
      Make admin users/staff users scripts show all users rather than just users... · b1a4173f
      Nigel McNie authored
      Make admin users/staff users scripts show all users rather than just users that would be returned by standard search. Fxies #1756.
      
      This is actually quite a large patch, which does the following:
      
       * adds a db_ilike() method, which returns the correct keyword (LIKE or ILIKE) to do case insensitive searching.
       * Switches the templates used for the admin user search for strings, rather than using files. This prevents problems when the theme is not the default and the templates are not there.
       * Implements admin_search_user in the internal search plugin for MySQL as well as postgres, without needing two separate methods since the query works on both.
       * Make the userlist element use the new json/adminusersearch.php script, which performs an admin user search.
      
      One happy upside is that the admin user search screen now works in MySQL.
      b1a4173f
  27. 04 Dec, 2007 1 commit
  28. 03 Dec, 2007 1 commit
  29. 22 Nov, 2007 1 commit
  30. 20 Nov, 2007 1 commit
  31. 19 Nov, 2007 1 commit
    • Nigel McNie's avatar
      Implement transaction level counting for db_begin() and friends. · 9578988e
      Nigel McNie authored
      This means that we can safely call db_begin() and db_commit() anywhere, and as long as the calls balance, the transaction will only be committed when the last one is committed.
      
      If a rollback is asked for at any time, the entire transaction is rolled back.
      9578988e
  32. 06 Nov, 2007 1 commit
  33. 04 Nov, 2007 1 commit
    • Nigel McNie's avatar
      Added a new function, insert_record_if_not_exists. · 14496c8c
      Nigel McNie authored
      This uses the postgres SELECT FOR UPDATE syntax to ensure we don't have a race condition when inserting a record that previously didn't exist. The other database one is a bit more race condition-ey.
      14496c8c
  34. 25 Oct, 2007 1 commit
  35. 24 Oct, 2007 1 commit
  36. 16 Oct, 2007 3 commits