HTTP_X_REAL_IP => REMOTE_ADDR
This commit is contained in:
+1
-1
@@ -444,7 +444,7 @@ HTML;
|
||||
function addActions($time, $vars, $vls, $uid)
|
||||
{
|
||||
db::c()->query('LOCK TABLES `actions` WRITE');
|
||||
$ins = db::c()->query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`,`vals`) VALUES (?i, ?i, "?s", ?i, "?s", "?s", "?s")', $uid, $time, "capitalcity", 0, $vars, $_SERVER['HTTP_X_REAL_IP'], $vls);
|
||||
$ins = db::c()->query('INSERT INTO `actions` (`uid`,`time`,`city`,`room`,`vars`,`ip`,`vals`) VALUES (?i, ?i, "?s", ?i, "?s", "?s", "?s")', $uid, $time, "capitalcity", 0, $vars, $_SERVER['REMOTE_ADDR'], $vls);
|
||||
db::c()->query('UNLOCK TABLES');
|
||||
return $ins;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user