X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ad234caed0011eb855d7e0dbbe677ccb6bfb1898..d75f6d14c8e7f3cd495712e9d87fc73b8da65593:/users/index.php
diff --git a/users/index.php b/users/index.php
index 4f757e1..71cf596 100644
--- a/users/index.php
+++ b/users/index.php
@@ -133,12 +133,12 @@ Click on a username to view more information.
Nick
Country
- Host / IP
+ Host / IP
Account
Usermodes â¹ï¸
- Oper
- Secure
- Connected to
+ Oper
+ Secure
+ Connected to
Reputation â¹ï¸
@@ -201,7 +201,7 @@ Click on a username to view more information.
$isBot = (strpos($user->user->modes, "B") !== false) ? ' Bot ' : "";
echo "id."\">$user->name$isBot ";
echo "".(isset($user->geoip->country_code) ? ' '.$user->geoip->country_code : "")." ";
- echo "".htmlspecialchars($user->hostname)." (".($user->hostname == $user->ip ? 'the same' : htmlspecialchars($user->ip ?? "None")).") ";
+ echo "".htmlspecialchars($user->hostname)." (".($user->hostname == $user->ip ? 'the same' : htmlspecialchars($user->ip ?? "None")).") ";
$account = (isset($user->user->account)) ? "user->account."\">".htmlspecialchars($user->user->account)." " : 'None ';
echo "".$account." ";
$modes = (isset($user->user->modes)) ? "+" . $user->user->modes : "";
@@ -209,13 +209,13 @@ Click on a username to view more information.
$oper = (isset($user->user->operlogin)) ? $user->user->operlogin." ".$user->user->operclass." " : "";
if (!strlen($oper))
$oper = (strpos($user->user->modes, "S") !== false) ? 'Services Bot ' : "";
- echo "".$oper." ";
+ echo "".$oper." ";
$secure = (isset($user->tls) || $user->hostname !== "localhost") ? "Secure " : "Insecure ";
if (strpos($user->user->modes, "S") !== false)
$secure = "";
- echo "".$secure." ";
- echo "id, 0, 3)."\">".$user->user->servername." ";
+ echo "".$secure." ";
+ echo "id, 0, 3)."\">".$user->user->servername." ";
echo "".$user->user->reputation." ";
echo "";
$currentNumberUsers++;
@@ -316,6 +316,7 @@ Click on a username to view more information.
+
Top country
@@ -332,6 +333,7 @@ Click on a username to view more information.
?>
+
@@ -340,6 +342,23 @@ Click on a username to view more information.
$("#myModal").on('shown.bs.modal', function(){
$("#CloseButton").focus();
});
+
+ function resize_check()
+ {
+ var width = window.innerWidth;
+ var elements = document.querySelectorAll('.hostname, .opercol, .uplinkcol, .securecol');
+ var show = '';
+ if (width < 900 || alert(typeof screen.orientation) !== 'undefined')
+ show = 'none';
+
+ for (let i = 0; i < elements.length; i++)
+ elements[i].style.display = show;
+
+ }
+ resize_check();
+ window.addEventListener('resize', function() {
+ resize_check();
+ });