mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-31 02:21:36 +00:00
Empty commit
This commit is contained in:
parent
e601761312
commit
cbc1680acf
@ -1511,6 +1511,7 @@ CREATE TABLE `users_sessions` (
|
||||
`IP` varchar(15) NOT NULL,
|
||||
`LastUpdate` datetime NOT NULL,
|
||||
`Active` tinyint(4) NOT NULL DEFAULT '1',
|
||||
`FullUA` text,
|
||||
PRIMARY KEY (`UserID`,`SessionID`),
|
||||
KEY `UserID` (`UserID`),
|
||||
KEY `LastUpdate` (`LastUpdate`),
|
||||
|
@ -271,8 +271,8 @@ function log_attempt($UserID) {
|
||||
|
||||
|
||||
$DB->query("INSERT INTO users_sessions
|
||||
(UserID, SessionID, KeepLogged, Browser, OperatingSystem, IP, LastUpdate)
|
||||
VALUES ('$UserID', '".db_string($SessionID)."', '$KeepLogged', '$Browser','$OperatingSystem', '".db_string($_SERVER['REMOTE_ADDR'])."', '".sqltime()."')");
|
||||
(UserID, SessionID, KeepLogged, Browser, OperatingSystem, IP, LastUpdate, FullUA)
|
||||
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->insert_front($SessionID,array(
|
||||
|
Loading…
Reference in New Issue
Block a user