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

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

* No foreach needed here
This commit is contained in:
Slawomir Boczek
2025-03-09 21:18:12 +01:00
committed by GitHub
parent 3c1210fefa
commit 7312383f73
7 changed files with 45 additions and 30 deletions

View File

@@ -85,12 +85,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']));
}
$actions = $account_logged->getActionsLog(1000);
$players = array();
/** @var OTS_Players_List $account_players */
$account_players = $account_logged->getPlayersList();
$account_players->orderBy('id');