Commit 612f045936521bb0ee5b8fe74edb5996f2097d21

Authored by Megan Watson
1 parent 8d956289

KTS-3210

"last_login field in users table not updated for WebDAV access"
Fixed. Added an update to the last login field.

Committed By: Megan Watson
Reviewed By: Jonathan Byrne

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8357 c91229c3-7414-0410-bfa2-8a42b809f60b
ktwebdav/lib/KTWebDAVServer.inc.php
... ... @@ -420,6 +420,10 @@ class KTWebDAVServer extends HTTP_WebDAV_Server
420 420 return false;
421 421 }
422 422  
  423 + $oUser->setLastLogin(date('Y-m-d H:i:s'));
  424 + $oUser->update();
  425 +
  426 + $this->ktwebdavLog('Session ID is: '.$sessionID, 'info', true);
423 427 $this->ktwebdavLog('UserID is: ' . $oUser->getId(), 'info', true );
424 428 $this->_setUserID($oUser->getId());
425 429 $_SESSION['userID'] = $this->_getUserID();
... ... @@ -2482,7 +2486,7 @@ class KTWebDAVServer extends HTTP_WebDAV_Server
2482 2486 // Check/Set the WebDAV Client
2483 2487 $userAgentValue = $_SERVER['HTTP_USER_AGENT'];
2484 2488 // KT Explorer
2485   - if (stristr($userAgentValue,"Microsoft Data Access Internet Publishing Provider DAV")) {
  2489 + if (stristr($userAgentValue,"Microsoft Data Access Internet Publishing Provider")) {
2486 2490 $this->dav_client = "MS";
2487 2491 $this->ktwebdavLog("WebDAV Client : " . $userAgentValue, 'info', true);
2488 2492 }
... ...