Empty commit

This commit is contained in:
Git 2013-04-16 08:00:51 +00:00
parent e601761312
commit cbc1680acf
2 changed files with 3 additions and 2 deletions

View File

@ -1511,6 +1511,7 @@ CREATE TABLE `users_sessions` (
`IP` varchar(15) NOT NULL, `IP` varchar(15) NOT NULL,
`LastUpdate` datetime NOT NULL, `LastUpdate` datetime NOT NULL,
`Active` tinyint(4) NOT NULL DEFAULT '1', `Active` tinyint(4) NOT NULL DEFAULT '1',
`FullUA` text,
PRIMARY KEY (`UserID`,`SessionID`), PRIMARY KEY (`UserID`,`SessionID`),
KEY `UserID` (`UserID`), KEY `UserID` (`UserID`),
KEY `LastUpdate` (`LastUpdate`), KEY `LastUpdate` (`LastUpdate`),

View File

@ -271,8 +271,8 @@ function log_attempt($UserID) {
$DB->query("INSERT INTO users_sessions $DB->query("INSERT INTO users_sessions
(UserID, SessionID, KeepLogged, Browser, OperatingSystem, IP, LastUpdate) (UserID, SessionID, KeepLogged, Browser, OperatingSystem, IP, LastUpdate, FullUA)
VALUES ('$UserID', '".db_string($SessionID)."', '$KeepLogged', '$Browser','$OperatingSystem', '".db_string($_SERVER['REMOTE_ADDR'])."', '".sqltime()."')"); VALUES ('$UserID', '".db_string($SessionID)."', '$KeepLogged', '$Browser','$OperatingSystem', '".db_string($_SERVER['REMOTE_ADDR'])."', '".sqltime()."', '".db_string($_SERVER['HTTP_USER_AGENT'])."')");
$Cache->begin_transaction('users_sessions_'.$UserID); $Cache->begin_transaction('users_sessions_'.$UserID);
$Cache->insert_front($SessionID,array( $Cache->insert_front($SessionID,array(