X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/2b418d6e87b856aed377f7b23803069b46e605a2..8ee706e739bf51bd435a42c955f22b8970f26663:/users/index.php diff --git a/users/index.php b/users/index.php index ae34c2a..09b476c 100644 --- a/users/index.php +++ b/users/index.php @@ -1,7 +1,6 @@ user()->getAll(); ?>

Users Overview

Click on a username to view more information. -
+
- - - - - - - - - - - - - - - - - -
Filter:
name="operonly" type="checkbox" value=""> Opers Only name="servicesonly" type="checkbox" value=""> Services Only
Nick: - Host: IP: Account: Server:
- + +
- - - - - - - + + + + + + + + - - - - - foreach($users as $user) - { - - - /* Some basic filtering for NICK */ - if (isset($_POST['uf_nick']) && strlen($_POST['uf_nick']) && - strpos(strtolower($user->name), strtolower($_POST['uf_nick'])) !== 0 && - strpos(strtolower($user->name), strtolower($_POST['uf_nick'])) == false) - continue; - - /* Some basic filtering for HOST */ - if (isset($_POST['uf_host']) && strlen($_POST['uf_host']) && - strpos(strtolower($user->hostname), strtolower($_POST['uf_host'])) !== 0 && - strpos(strtolower($user->hostname), strtolower($_POST['uf_host'])) == false) - continue; - - /* Some basic filtering for IP */ - if (isset($_POST['uf_ip']) && strlen($_POST['uf_ip']) && - strpos(strtolower($user->ip), strtolower($_POST['uf_ip'])) !== 0 && - strpos(strtolower($user->ip), strtolower($_POST['uf_ip'])) == false) - continue; - - /* Some basic filtering for ACCOUNT */ - if (isset($_POST['uf_account']) && strlen($_POST['uf_account']) && - strtolower($user->user->account) !== strtolower($_POST['uf_account'])) - continue; - - /* Some basic filtering for SERVER */ - if (isset($_POST['uf_server']) && strlen($_POST['uf_server']) && - strpos(strtolower($user->user->servername), strtolower($_POST['uf_server'])) !== 0 && - strpos(strtolower($user->user->servername), strtolower($_POST['uf_server'])) == false) - continue; - - /* Some basic filtering for OPER */ - if (isset($_POST['operonly']) && - (strpos($user->user->modes, "o") == false || strpos($user->user->modes,"S") !== false)) - continue; - - /* Some basic filtering for SERVICES */ - if (isset($_POST['servicesonly']) && - (strpos($user->user->modes,"S") == false)) - continue; - - echo "\n"; - echo ""; - $isBot = (strpos($user->user->modes, "B") !== false) ? ' Bot' : ""; - echo ""; - echo ""; - $account = (isset($user->user->account)) ? "user->account."\">".htmlspecialchars($user->user->account)."" : 'None'; - echo ""; - $modes = (isset($user->user->modes)) ? "+" . $user->user->modes : ""; - echo ""; - $oper = (isset($user->user->operlogin)) ? $user->user->operlogin." ".$user->user->operclass."" : ""; - if (!strlen($oper)) - $oper = (strpos($user->user->modes, "S") !== false) ? 'Services Bot' : ""; - echo ""; - - $secure = (isset($user->tls) || $user->hostname !== "localhost") ? "Secure" : "Insecure"; - if (strpos($user->user->modes, "S") !== false) - $secure = ""; - echo ""; - echo ""; - echo ""; - echo ""; - } - ?> -
NickHost / IPAccountUsermodes ℹ️OperSecureConnected toReputation ℹ️CountryHost / IPAccountUsermodes ℹ️OperSecureConnected toRep. ℹ️
id."\">$user->name$isBot".htmlspecialchars($user->hostname)." (".htmlspecialchars($user->ip ?? "None").")".$account."".$modes."".$oper."".$secure."id, 0, 3)."\">".$user->user->servername."".$user->user->reputation."
+
@@ -272,14 +184,16 @@ Click on a username to view more information. -
-