X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/b8da505fbe43897fadc53a70674876b371bd5ff1..462bd7231d893710a96ac01a0b9ebdd43a4cac64:/index.php?ds=inline diff --git a/index.php b/index.php index b8d44f5..f656ab4 100644 --- a/index.php +++ b/index.php @@ -1,491 +1,263 @@ - -
Chat Overview | - |
---|---|
Users | |
Opers | |
Services | |
Most popular channel | ( users) |
Channels | |
Server bans | |
Spamfilter entries |
Name | -Created | -User count | -Topic | -Topic Set | -Modes | - - "; - echo "".$channel->name." | "; - echo "".$channel->creation_time." | "; - echo "".$channel->num_users." | "; - $topic = (isset($channel->topic)) ? $channel->topic : ""; - echo "".$topic." | "; - $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : ""; - echo "".$setby." | "; - $modes = (isset($channel->modes)) ? "+" . $channel->modes : "".$modes." | "; + /* honestly can't think of a case where there would actually be only one uline... but... well here we are, worrying over the small stuff =] */ + $user_noun = ($stats->user->ulined == 1) ? "user" : "users"; // use "users" even if 0, sounds better. + $is_are = ($stats->user->ulined == 1) ? "is" : "are"; + $server_noun = ($stats->server->ulined == 1) ? "server" : "servers"; + $tooltip = "There $is_are " . $stats->user->ulined . " U-Lined $user_noun over " . $stats->server->ulined . " U-Lined $server_noun"; } - ?>
---|