Commit 94a731811e86a4011ee0e33220c3658977c96c9e
1 parent
b824d8ff
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
Showing
1 changed file
with
5 additions
and
1 deletions
ktwebdav/lib/KTWebDAVServer.inc.php
| @@ -420,6 +420,10 @@ class KTWebDAVServer extends HTTP_WebDAV_Server | @@ -420,6 +420,10 @@ class KTWebDAVServer extends HTTP_WebDAV_Server | ||
| 420 | return false; | 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 | $this->ktwebdavLog('UserID is: ' . $oUser->getId(), 'info', true ); | 427 | $this->ktwebdavLog('UserID is: ' . $oUser->getId(), 'info', true ); |
| 424 | $this->_setUserID($oUser->getId()); | 428 | $this->_setUserID($oUser->getId()); |
| 425 | $_SESSION['userID'] = $this->_getUserID(); | 429 | $_SESSION['userID'] = $this->_getUserID(); |
| @@ -2482,7 +2486,7 @@ class KTWebDAVServer extends HTTP_WebDAV_Server | @@ -2482,7 +2486,7 @@ class KTWebDAVServer extends HTTP_WebDAV_Server | ||
| 2482 | // Check/Set the WebDAV Client | 2486 | // Check/Set the WebDAV Client |
| 2483 | $userAgentValue = $_SERVER['HTTP_USER_AGENT']; | 2487 | $userAgentValue = $_SERVER['HTTP_USER_AGENT']; |
| 2484 | // KT Explorer | 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 | $this->dav_client = "MS"; | 2490 | $this->dav_client = "MS"; |
| 2487 | $this->ktwebdavLog("WebDAV Client : " . $userAgentValue, 'info', true); | 2491 | $this->ktwebdavLog("WebDAV Client : " . $userAgentValue, 'info', true); |
| 2488 | } | 2492 | } |