mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-14 15:21:01 +00:00
refactor: online users in Admin sorted by 1) access, 2) lastupdate
This commit is contained in:
@@ -271,7 +271,7 @@ class adm_DB {
|
|||||||
|
|
||||||
function getUserActive() {
|
function getUserActive() {
|
||||||
$time = time() - (60*5);
|
$time = time() - (60*5);
|
||||||
$q = "SELECT * FROM ".TB_PREFIX."users where timestamp > $time and username != 'support'";
|
$q = "SELECT * FROM ".TB_PREFIX."users where timestamp > $time and username != 'support' ORDER BY access DESC, lastupdate DESC";
|
||||||
$result = mysqli_query($this->connection, $q);
|
$result = mysqli_query($this->connection, $q);
|
||||||
return $this->mysqli_fetch_all($result);
|
return $this->mysqli_fetch_all($result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user