Valerie Pond [Sat, 21 Jan 2023 23:54:12 +0000 (23:54 +0000)]
IP WHOIS: Add a built-in IP WHOIS page
This adds `ip-whois.php` and friends which provides a built-in page for doing a `WHOIS` on an IP address. No more having to go to some IP WHOIS website to view information about potentially spooky characters on your network ;)
Valerie Pond [Thu, 19 Jan 2023 23:43:20 +0000 (23:43 +0000)]
Add blacklist options
This adds a new configuration item: `DNSBL`.
This is checked against non-logged in users on every page. If they are not logged in they get blacklist checked and then redirected to the login page, providing their IP was not blacklisted.
If it was blacklisted the user will be redirected to an error screen with a cute dog on it.
I have also spent a considerable amount of time trying (and failing) to make it look good on mobile devices, so this is a small commit ;)
Valerie Pond [Wed, 18 Jan 2023 22:55:13 +0000 (22:55 +0000)]
Add ability to add and delete access to the panel
Beware, at this very commit, any user you add can delete any other user including you.
In case of this, you can always add yourself back through the config or delete their stuff in the SQL database.
Valerie Pond [Wed, 18 Jan 2023 22:53:23 +0000 (22:53 +0000)]
Convert array/splat parameter in class-message
Even though a splat operator converts the input to an array, if you pass an array instead of parameters, the first item in the splat array will be the array you need. This lets pass an array as well as a splat operator and it'll "just work"
PeGaSuS [Wed, 18 Jan 2023 14:30:30 +0000 (15:30 +0100)]
Update header.php
On my setup, I have `BASE_URL` set to `/`, using Apache as webserver.
If I click on the top left, where says `UnrealIRCd Admin Panel`, I'm sent to https://index.php/ which, obviously, doesn't exist.
Removing `/index.php` seems to solve the issue on my end. I don't know about other webservers/BASE_URL locations, but should work for all.
Valerie Pond [Mon, 16 Jan 2023 00:41:33 +0000 (00:41 +0000)]
Make some better links to filters for user
this puts links and lookups in places:
- You can now click the 'Opers' button on the overview to view the users page filtered by opers only
- Servers listed in user index and details now link to server details
Valerie Pond [Sun, 15 Jan 2023 23:49:30 +0000 (23:49 +0000)]
update overview and add record users
this converts things from a bunch of queries to the easier to use "stats.get" (thanks @syzop).
this also adds in a 'Record' label in the users card, showing the record user amount.
Valerie Pond [Sun, 15 Jan 2023 19:44:55 +0000 (19:44 +0000)]
Fix some table views
Turns out our custom css wasn't fully included in the header due to paths.
Fixed that, fixed a couple of missing ```</tr>```s and fixed 'select all' checkbox on servers tab
Bram Matthys [Fri, 13 Jan 2023 08:16:40 +0000 (09:16 +0100)]
Server bans: don't list checkmark (for deletion) for config based bans,
and this also improves on just-committed unrealircd RPC response for
TKL to detect config based bans through $tkl->set_in_config (true).
Kept the old way too though, for 6.0.5 compatibility.
Bram Matthys [Fri, 13 Jan 2023 06:59:54 +0000 (07:59 +0100)]
Remove "Secure" from server list. This because there is not really a
concept of a "secure" server so to say... as one server link to it
could be SSL/TLS (secure) and the other could be not (being plaintext).
I think it's a bit too complex for a list overview.