]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commit - index.php
Rather large update, please see commit notes
authorValerie Pond <redacted>
Mon, 23 Jan 2023 23:54:48 +0000 (23:54 +0000)
committerValerie Pond <redacted>
Mon, 23 Jan 2023 23:54:48 +0000 (23:54 +0000)
commit33f512fa30c06fa488c42e68f9bc9f401300a5ab
tree6ed650c569a6d6ed2cfb292832d9a22c06803b95
parente0c259fc7c93c77aa87d52f32a8c0ec7071843c2
Rather large update, please see commit notes

With this update:
- WebPanel version shows in the footer for logged-in users (sql_auth)
- Made things look much better on mobiles; before, the navigation bar covered most of the mobile screen and was generally not visually appealing. So now when the screen is a mobile, the navigation bar will collapse into a collapsible menu.
- Separated `Name Bans` and `Server Ban Exceptions` into their own sub-menu pages. TODO: There is some weird overlap with the list background highlight.
-Started on user_meta: as in, when they last logged in, what IP they are using or used, recent actions taken, and most importantly, permissions.
- Added a few hooks which allow plugins to do more:
  - `HOOKTYPE_PRE_HEADER`
  - `HOOKTYPE_HEADER`
  - `HOOKTYPE_PRE_FOOTER`
  - `HOOKTYPE_FOOTER`

These hooks are relatively self-explanatory. There is however another hook of a different nature.

- `HOOKTYPE_NOTIFICATION`
You will need to run this from your plugin as well as catch functions from it. This won't be run many places in the source so it's up to you to send notifications. Maybe some other plugin wants to show notifications somewhere else or do something different, while still being able to load your plugin and receive notifications for it, and vice versa.
13 files changed:
Classes/class-hook.php
README.md
cfg/defines.php [new file with mode: 0644]
common.php
header.php
index.php
misc/strings.php
plugins/sql_auth/SQL/user.php
plugins/sql_auth/login.php
plugins/sql_auth/sql_auth.php
server-bans/ban-exceptions.php [new file with mode: 0644]
server-bans/index.php [moved from server_bans.php with 98% similarity]
server-bans/name-bans.php [new file with mode: 0644]