Account actions rework on ip (Use single column for IP - VARCHAR(45))

This commit is contained in:
slawkens
2025-02-27 22:04:44 +01:00
parent 464492d826
commit 58feff50c6
7 changed files with 46 additions and 27 deletions

View File

@@ -86,8 +86,8 @@ if($email_new_time > 1)
}
$actions = array();
foreach($account_logged->getActionsLog(0, 1000) as $action) {
$actions[] = array('action' => $action['action'], 'date' => $action['date'], 'ip' => $action['ip'] != 0 ? long2ip($action['ip']) : inet_ntop($action['ipv6']));
foreach($account_logged->getActionsLog(1000) as $action) {
$actions[] = array('action' => $action['action'], 'date' => $action['date'], 'ip' => $action['ip']);
}
$players = array();