Added away message
* Update adminlist.php Added the Suggestion #44 (Issue #44) * Update adminlist.php
This commit is contained in:
parent
702dd9a7b9
commit
eb98e539c6
|
@ -66,8 +66,12 @@ function getAdminList() {
|
||||||
$offlineClients[] = '<p><span class="label label-primary iconspacer">' . htmlspecialchars($userInfo['client_nickname']) . '</span><span class="label label-danger pull-right">' . translate($lang["adminlist"]["status"]["offline"]) . '</span></p>';
|
$offlineClients[] = '<p><span class="label label-primary iconspacer">' . htmlspecialchars($userInfo['client_nickname']) . '</span><span class="label label-danger pull-right">' . translate($lang["adminlist"]["status"]["offline"]) . '</span></p>';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(!$user["client_away_message"]) {
|
||||||
$onlineClients[] = '<p><img src="lib/ts3phpframework/images/viewer/' . $user->getIcon() . '.png" alt="User status">' . '<span class="label label-primary">' . htmlspecialchars($user) . '</span>' . ($user['client_away'] ? '<span class="label label-warning pull-right">' . translate($lang["adminlist"]["status"]["away"]) . '</span>' : '<span class="label label-success pull-right">' . translate($lang["adminlist"]["status"]["online"]) . '</span>') . '</p>';
|
$userAway = translate($lang["adminlist"]["status"]["away"]);
|
||||||
|
}else{
|
||||||
|
$userAway = htmlspecialchars($user["client_away_message"]);
|
||||||
|
}
|
||||||
|
$onlineClients[] = '<p><img src="lib/ts3phpframework/images/viewer/' . $user->getIcon() . '.png" alt="User status">' . '<span class="label label-primary">' . htmlspecialchars($user) . '</span>' . ($user['client_away'] ? '<span class="label label-warning pull-right">' . $userAway . '</span>' : '<span class="label label-success pull-right">' . translate($lang["adminlist"]["status"]["online"]) . '</span>') . '</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (array_merge($onlineClients, $offlineClients) as $str)
|
foreach (array_merge($onlineClients, $offlineClients) as $str)
|
||||||
|
|
Loading…
Reference in New Issue