[geeklog-cvs] geeklog-1.3/system lib-sessions.php,1.21,1.22

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sun Jun 22 11:47:15 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system
In directory internal.geeklog.net:/tmp/cvs-serv14318/system

Modified Files:
	lib-sessions.php 
Log Message:
Added tracking of users lastlogin timestamp to the userinfo table. New $_CONF['lastlogin'] added to config.php - SESSION SETTINGS, and lastlogin field to the userinfo table

Index: lib-sessions.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/lib-sessions.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** lib-sessions.php	7 Jun 2003 15:25:03 -0000	1.21
--- lib-sessions.php	22 Jun 2003 15:47:13 -0000	1.22
***************
*** 264,268 ****
      $result = DB_query($sql);
      if ($result) {
!     	if ($_SESS_VERBOSE) COM_errorLog("Assigned the following session id: $sessid",1);
      	if ($_SESS_VERBOSE) COM_errorLog("*************leaving SESS_newSession*****************",1);
          if ($md5_based == 1) {
--- 264,272 ----
      $result = DB_query($sql);
      if ($result) {
!         if ($_CONF['lastlogin'] == true) {
! 	        // Update userinfo record to record the date and time as lastlogin
!             DB_query("UPDATE {$_TABLES['userinfo']} SET lastlogin = UNIX_TIMESTAMP() WHERE uid=$userid");
! 	    }
! 		if ($_SESS_VERBOSE) COM_errorLog("Assigned the following session id: $sessid",1);
      	if ($_SESS_VERBOSE) COM_errorLog("*************leaving SESS_newSession*****************",1);
          if ($md5_based == 1) {





More information about the geeklog-cvs mailing list