|
|
|
|
|
|
|
|
|
|
|
|
Gobalopper
Mod Team
YaBB God
Posts: 993
Cookie Monster
|
|
Re:[RC1] Who's Online
« Reply #12 on: July 30, 2002, 04:00:56 AM » |
|
Turns out IIS servers don't like REQUEST_URI so I've modified it slightly. Just use this new WriteLog() function from Subs.php.
function WriteLog (){ global $REMOTE_ADDR,$PHP_SELF,$HTTP_SERVER_VARS,$username,$db_prefix; $logTime = time(); $identity = $username; if($username == 'Guest') { $identity = $REMOTE_ADDR; } $url = parse_url($PHP_SELF."?".$HTTP_SERVER_VARS["QUERY_STRING"]); $request = mysql_query ("DELETE FROM {$db_prefix}log_online WHERE (logTime < ".($logTime - 900)." || identity='$identity')"); $request = mysql_query ("INSERT INTO {$db_prefix}log_online (identity,logTime,url,ip) VALUES ('$identity',$logTime,'$url[query]','$REMOTE_ADDR')"); }
|
|
« Last Edit: July 30, 2002, 04:46:28 AM by Gobalopper »
|
Logged
|
|
|
|
|
|