/[drupal]/contributions/modules/persistent_login/persistent_login.module
ViewVC logotype

Diff of /contributions/modules/persistent_login/persistent_login.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.23.2.12, Thu Apr 30 09:10:59 2009 UTC revision 1.23.2.13, Fri May 1 08:40:26 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: persistent_login.module,v 1.23.2.11 2009/04/29 21:54:18 markuspetrux Exp $  // $Id: persistent_login.module,v 1.23.2.12 2009/04/30 09:10:59 markuspetrux Exp $
3    
4    
5  define('PERSISTENT_LOGIN_SECURE_PATHS', "user/*/*  define('PERSISTENT_LOGIN_SECURE_PATHS', "user/*/*
# Line 389  function _persistent_login_create_cookie Line 389  function _persistent_login_create_cookie
389        '%expires' => $expires,        '%expires' => $expires,
390      ), WATCHDOG_ERROR);      ), WATCHDOG_ERROR);
391    }    }
392      else {
393        // Make sure we only remember the specified number of Persistent Logins per user.
394        $maxlogins = variable_get('persistent_login_maxlogins', 10);
395        $expires = (int)db_result(db_query_range('SELECT expires FROM {persistent_login} WHERE uid = %s ORDER BY expires DESC', $acct->uid, $maxlogins, 1));
396        if ($expires > 0) {
397          _persistent_login_invalidate('too many', 'uid = %d AND expires <= %d', $acct->uid, $expires);
398        }
399      }
400  }  }
401    
402  /**  /**

Legend:
Removed from v.1.23.2.12  
changed lines
  Added in v.1.23.2.13

  ViewVC Help
Powered by ViewVC 1.1.2