]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/log
irc/unrealircd/unrealircd-webpanel.git
13 months agoFetch existing logs in Log screen. Only for git unrealircd.
Bram Matthys [Thu, 27 Apr 2023 18:37:52 +0000 (20:37 +0200)] 
Fetch existing logs in Log screen. Only for git unrealircd.
Or actually this isn't even committed yet....
Requires end users to run 'composer install' as well...

13 months agoFix UnrealIRCd 6.0.7 not working. End-users need to 'composer install'
Bram Matthys [Thu, 27 Apr 2023 18:05:59 +0000 (20:05 +0200)] 
Fix UnrealIRCd 6.0.7 not working. End-users need to 'composer install'

13 months agoStart on "Logs" (log viewer). This only shows live logs at the moment.
Bram Matthys [Thu, 27 Apr 2023 17:22:07 +0000 (19:22 +0200)] 
Start on "Logs" (log viewer). This only shows live logs at the moment.
Still to do:
* Click = all details
* Fetch past XYZ log entries (requires new unrealircd api call)

Since 'responsive' datatables were not working, i made it non-responsive
and did the responsiveness myself based on resolutions etc.
I kinda hate the manual fiddling but now it works great on mobile both
in landscape and portrait mode, and on various desktop resolutions.

13 months agoSet "issuer" already in connection call. This to speed up connection
Bram Matthys [Thu, 27 Apr 2023 14:37:17 +0000 (16:37 +0200)] 
Set "issuer" already in connection call. This to speed up connection
a bit as this causes unrealircd-rpc-php to skip a ping-pong and also
makes it not wait for the rpc.set_issuer call reply (since we don't
care that much).

13 months agoUpdate composer dependencies. End users need to run 'composer install'.
Bram Matthys [Thu, 27 Apr 2023 14:36:50 +0000 (16:36 +0200)] 
Update composer dependencies. End users need to run 'composer install'.
This so 02da13a9d49686e9a6c6254c7318e3e145debbf3 actually works
(set "issuer" in UnrealIRCd\Connection options to save 1 round trip).

Note: if end-user forgets to call 'composer install' then this means
set by is not logged now.

13 months agoserver-bans: switch title and button value to default
Valerie Pond [Thu, 27 Apr 2023 00:02:42 +0000 (01:02 +0100)] 
server-bans: switch title and button value to default

This fixes an issue where the header and button text for the modal for "Add Ban" was still "Edit Ban" after having previously clicked a ban to edit and now clicked "Add Ban" again.

13 months agoOverview: Make the "Live stats" only show if we have a live connection.
Bram Matthys [Wed, 26 Apr 2023 18:20:27 +0000 (20:20 +0200)] 
Overview: Make the "Live stats" only show if we have a live connection.
The "Live stats" will also automatically disappear if stats have not
been received past 10 seconds (we should receive it every 1sec).

TODO: Consider removing all values in such a scenario

TODO2: Consider showing a connection lost icon or something else..

13 months agoOverview: use the live feed only, don't initially set anything.
Bram Matthys [Wed, 26 Apr 2023 18:03:06 +0000 (20:03 +0200)] 
Overview: use the live feed only, don't initially set anything.
This avoids duplicate code and also makes the page load faster
on high latency connections.

13 months agoFor api_timer_loop() also execute the command immediately.
Bram Matthys [Wed, 26 Apr 2023 18:02:32 +0000 (20:02 +0200)] 
For api_timer_loop() also execute the command immediately.
This so you don't have to wait eg 1000ms for the first update.

13 months agoChannel list: Run StripControlCharacters() on the topic
Bram Matthys [Wed, 26 Apr 2023 17:52:25 +0000 (19:52 +0200)] 
Channel list: Run StripControlCharacters() on the topic

The alternative would be irc2html() from
https://github.com/unrealircd/unrealircd-webpanel/pull/24
but not so sure about that... it makes colors and other markup
done by random users show quite prominently on an admin panel.

13 months agoChannels: convert to use datatables
Bram Matthys [Wed, 26 Apr 2023 17:18:01 +0000 (19:18 +0200)] 
Channels: convert to use datatables

13 months agoServer-Bans: underline on hover at mask (even though clicking actually works
Bram Matthys [Wed, 26 Apr 2023 16:49:21 +0000 (18:49 +0200)] 
Server-Bans: underline on hover at mask (even though clicking actually works
in all rows... hm...)

13 months agoServer Bans: don't do "edit ban" popup when selecting bans for deletion.
Bram Matthys [Wed, 26 Apr 2023 16:39:08 +0000 (18:39 +0200)] 
Server Bans: don't do "edit ban" popup when selecting bans for deletion.

13 months agoMake API pages return empty data / die when server is not available.
Bram Matthys [Wed, 26 Apr 2023 16:27:57 +0000 (18:27 +0200)] 
Make API pages return empty data / die when server is not available.
This fixes annoying JS popup in "Users" and "Server bans" when the
IRC server is down.

13 months agoFix issue with @ob_end_flush() still throwing an error
Bram Matthys [Wed, 26 Apr 2023 16:26:15 +0000 (18:26 +0200)] 
Fix issue with @ob_end_flush() still throwing an error
(yeah, it throws now instead of... well... PHP manual is outdated i guess)

13 months agoUpdate the page title depending on what page you are.
Bram Matthys [Wed, 26 Apr 2023 15:55:29 +0000 (17:55 +0200)] 
Update the page title depending on what page you are.
Suggested by Madriix.

13 months agoFix everyone getting "No RPC server configured" :D
Bram Matthys [Wed, 26 Apr 2023 15:16:31 +0000 (17:16 +0200)] 
Fix everyone getting "No RPC server configured" :D

13 months agoAdd simple way to deal with IRC server configuration required.
Bram Matthys [Wed, 26 Apr 2023 07:45:53 +0000 (09:45 +0200)] 
Add simple way to deal with IRC server configuration required.
This handles the "no_irc_server_required" property on $pages.

Also renames "url" property to "script" in $pages in previous commit,
since it points to the script page (eg server-bans/index.php).
It will automatically strip /index.php if possible.

13 months agoMake $pages[] not have a string value in the end but an array with ["url"=>...]
Bram Matthys [Wed, 26 Apr 2023 07:13:06 +0000 (09:13 +0200)] 
Make $pages[] not have a string value in the end but an array with ["url"=>...]
Plugins that add nav will need updating.

13 months agoNicer error dialog in connect_to_ircd()
Bram Matthys [Wed, 26 Apr 2023 07:02:19 +0000 (09:02 +0200)] 
Nicer error dialog in connect_to_ircd()

13 months agoOn assigning role, call $user->delete_meta("permissions");
Bram Matthys [Wed, 26 Apr 2023 06:57:36 +0000 (08:57 +0200)] 
On assigning role, call $user->delete_meta("permissions");

13 months agoFix del_usermeta() not working for both sql_db and file_db
Bram Matthys [Wed, 26 Apr 2023 06:56:00 +0000 (08:56 +0200)] 
Fix del_usermeta() not working for both sql_db and file_db
(We just didn't notice until now)

13 months agoFinish switching to Roles
Valerie Pond [Tue, 25 Apr 2023 19:55:07 +0000 (20:55 +0100)] 
Finish switching to Roles

13 months agoServer Bans: Softban fixes on the panel side. Requires latest UnrealIRCd git.
Bram Matthys [Tue, 25 Apr 2023 13:44:12 +0000 (15:44 +0200)] 
Server Bans: Softban fixes on the panel side. Requires latest UnrealIRCd git.
It also seems there are still bugs in this area (on the
panel side)

13 months agoServer bans: you can now click on any existing ban to edit, and changed modal.
Bram Matthys [Tue, 25 Apr 2023 12:57:20 +0000 (14:57 +0200)] 
Server bans: you can now click on any existing ban to edit, and changed modal.
Should probably make the former a bit more obvious in the UI.

13 months agoServer Bans: responsive datatables and auto truncate "Reason".
Bram Matthys [Tue, 25 Apr 2023 08:33:25 +0000 (10:33 +0200)] 
Server Bans: responsive datatables and auto truncate "Reason".

13 months agoAdd js/datatables-ellipsis.js for automatic truncating of table fields (eg: reason)
Bram Matthys [Tue, 25 Apr 2023 08:32:59 +0000 (10:32 +0200)] 
Add js/datatables-ellipsis.js for automatic truncating of table fields (eg: reason)

13 months agoUsers: code cleanup: remove old filtering code, not needed anymore.
Bram Matthys [Tue, 25 Apr 2023 06:53:06 +0000 (08:53 +0200)] 
Users: code cleanup: remove old filtering code, not needed anymore.

13 months agoUsers: make actions work again (broken when datatables were added 2d ago)
Bram Matthys [Tue, 25 Apr 2023 06:49:14 +0000 (08:49 +0200)] 
Users: make actions work again (broken when datatables were added 2d ago)

13 months agoUsers: bring back striped table (was removed while debugging render issue)
Bram Matthys [Tue, 25 Apr 2023 06:42:41 +0000 (08:42 +0200)] 
Users: bring back striped table (was removed while debugging render issue)

13 months agoUsers: get rid of "user modes" column. Similar to previous, at least for now.
Bram Matthys [Tue, 25 Apr 2023 06:39:51 +0000 (08:39 +0200)] 
Users: get rid of "user modes" column. Similar to previous, at least for now.

13 months agoUsers: Scratch the "Secure" column, as it's less useful nowadays that
Bram Matthys [Tue, 25 Apr 2023 06:33:15 +0000 (08:33 +0200)] 
Users: Scratch the "Secure" column, as it's less useful nowadays that
hopefully more and more, if not all, users are secure.

We can bring it back, that's why this commit is contained.

13 months agoFix issues with NGINX: notifications, user list, server ban list.
Bram Matthys [Tue, 25 Apr 2023 06:27:23 +0000 (08:27 +0200)] 
Fix issues with NGINX: notifications, user list, server ban list.
Basically all the API calls that used common_api.php. Reported by Nini.

13 months agoUse responsive datatables in Users view: automatic column priority etc.
Bram Matthys [Tue, 25 Apr 2023 06:12:01 +0000 (08:12 +0200)] 
Use responsive datatables in Users view: automatic column priority etc.
* Actually in mobile this seems to have a glitch, it shows one column too
  much, which corrects itself as soon as you scroll.
* On a big screen the "Oper" and "Secure" columns are still not shown
  even though they could be. Then again, those columns are not really
  important so may be scratched altogether.
* If all this turns out not to work too well, then we can always revert
  revert the changes to users/index.php, i guess.

13 months agoUsers: hide filter pane on mobile. Still not sure why the width is so fuqd.
Bram Matthys [Mon, 24 Apr 2023 19:36:50 +0000 (21:36 +0200)] 
Users: hide filter pane on mobile. Still not sure why the width is so fuqd.

13 months agoUsers Overview: fix dynamic showing/hiding of rows.
Bram Matthys [Mon, 24 Apr 2023 18:54:48 +0000 (20:54 +0200)] 
Users Overview: fix dynamic showing/hiding of rows.

13 months agoMake Users list use Datatables with a Search Pane (filter) and Search bar.
Bram Matthys [Mon, 24 Apr 2023 17:49:35 +0000 (19:49 +0200)] 
Make Users list use Datatables with a Search Pane (filter) and Search bar.

13 months agoMove datatables CSS/JS include to inc/header.php.
Bram Matthys [Mon, 24 Apr 2023 16:35:55 +0000 (18:35 +0200)] 
Move datatables CSS/JS include to inc/header.php.

13 months agoSettings - RPC Servers: fix missing quotes (javascript error)
Bram Matthys [Mon, 24 Apr 2023 14:10:43 +0000 (16:10 +0200)] 
Settings - RPC Servers: fix missing quotes (javascript error)

13 months agoDisplay SQL error during installation, if we get one.
Bram Matthys [Mon, 24 Apr 2023 13:17:39 +0000 (15:17 +0200)] 
Display SQL error during installation, if we get one.

13 months agoDeal with empty RPC servers better.
Bram Matthys [Mon, 24 Apr 2023 13:04:41 +0000 (15:04 +0200)] 
Deal with empty RPC servers better.

13 months agoTop-nav: allow switching between configured RPC servers.
Bram Matthys [Mon, 24 Apr 2023 12:03:16 +0000 (14:03 +0200)] 
Top-nav: allow switching between configured RPC servers.

NOTE: This currently switches the default RPC server for everyone.
Plan is to later make this per-user or more likely per-session.

Untested: mobile.. should probably be hidden there or tucked under nav.

13 months agoSettings - RPC Servers: confirm dialog for server deletion
Bram Matthys [Mon, 24 Apr 2023 11:00:24 +0000 (13:00 +0200)] 
Settings - RPC Servers: confirm dialog for server deletion

13 months agoSettings - RPC Servers: Don't re-order list on edit.
Bram Matthys [Mon, 24 Apr 2023 10:34:07 +0000 (12:34 +0200)] 
Settings - RPC Servers: Don't re-order list on edit.
And also fix editing wrong entry.

13 months agoSettings - RPC Servers: click item - add "Delete Server"
Bram Matthys [Mon, 24 Apr 2023 10:15:39 +0000 (12:15 +0200)] 
Settings - RPC Servers: click item - add "Delete Server"

13 months agoSome initial instructions if servers is empty.
Bram Matthys [Mon, 24 Apr 2023 09:58:06 +0000 (11:58 +0200)] 
Some initial instructions if servers is empty.

13 months agoNow that we have "RPC Servers" in settings, make installer redirect to that.
Bram Matthys [Mon, 24 Apr 2023 09:50:52 +0000 (11:50 +0200)] 
Now that we have "RPC Servers" in settings, make installer redirect to that.

So instead of redirecting to settings/install2.php we now redirect to
settings/rpc-servers.php.

That page still needs to be modified for "initial setup instructions" though.

This also renames api/installation2.php -> api/test_rpc_server.php

13 months agoAdd Settings - RPC Servers (start of multi-server work).
Bram Matthys [Mon, 24 Apr 2023 09:48:10 +0000 (11:48 +0200)] 
Add Settings - RPC Servers (start of multi-server work).
This also makes $config["unrealircd"] an array now.

13 months agoServer Bans: fetch the banlist in the background
Bram Matthys [Sun, 23 Apr 2023 19:55:31 +0000 (21:55 +0200)] 
Server Bans: fetch the banlist in the background

13 months agoUse non-slim jquery, so we have AJAX requests available
Bram Matthys [Sun, 23 Apr 2023 19:55:08 +0000 (21:55 +0200)] 
Use non-slim jquery, so we have AJAX requests available

13 months agoUse datatables in "Server Bans" view (initial work / demo)
Bram Matthys [Sun, 23 Apr 2023 19:01:07 +0000 (21:01 +0200)] 
Use datatables in "Server Bans" view (initial work / demo)

13 months agofile_auth -> file_db and sql_auth -> sql_db. Config of existing setups
Bram Matthys [Sun, 23 Apr 2023 16:49:48 +0000 (18:49 +0200)] 
file_auth -> file_db and sql_auth -> sql_db. Config of existing setups
are modified automatically by rewriting config/config.php.

13 months agoSetup: actually delete data/database.php as well (after confirmation)
Bram Matthys [Sun, 23 Apr 2023 16:00:39 +0000 (18:00 +0200)] 
Setup: actually delete data/database.php as well (after confirmation)

Similar to previous commit, but for file_auth instead of sql_auth.

13 months agoSetup: acctually delete SQL tables (after confirmation and filling in user info)
Bram Matthys [Sun, 23 Apr 2023 15:42:35 +0000 (17:42 +0200)] 
Setup: acctually delete SQL tables (after confirmation and filling in user info)

13 months agoSetup: warn if file_auth database exists too
Bram Matthys [Sun, 23 Apr 2023 15:37:09 +0000 (17:37 +0200)] 
Setup: warn if file_auth database exists too

13 months agoSetup: fix error about undefined "secrets". Reported by Nini.
Bram Matthys [Sun, 23 Apr 2023 15:36:28 +0000 (17:36 +0200)] 
Setup: fix error about undefined "secrets". Reported by Nini.

13 months agoAdd warning if there is already data in the SQL database.
Bram Matthys [Sun, 23 Apr 2023 15:17:16 +0000 (17:17 +0200)] 
Add warning if there is already data in the SQL database.

Also, jump from step 1 to step 2 if things are correct without having
to press another button.

13 months agoSetup: Use HTTP POST instead of GET when testing MySQL and RPC credentials.
Bram Matthys [Sun, 23 Apr 2023 14:43:04 +0000 (16:43 +0200)] 
Setup: Use HTTP POST instead of GET when testing MySQL and RPC credentials.
This so they don't end up in the webserver access log ;)

13 months agoSetup: fix connection check not working with passwords with & and possibly
Bram Matthys [Sun, 23 Apr 2023 14:30:14 +0000 (16:30 +0200)] 
Setup: fix connection check not working with passwords with & and possibly
other characters.

13 months agoDisable autocomplete in setup pages for user/password of SQL and RPC as these
Bram Matthys [Sun, 23 Apr 2023 14:22:19 +0000 (16:22 +0200)] 
Disable autocomplete in setup pages for user/password of SQL and RPC as these
have nothing to do with the web login so it is only confusing.
Still allow autocomplete for the "Create account" thing though, eg for devs
doing repeated setups.

13 months agoRole Editor: can now add/duplicate and delete roles.
Valerie Pond [Sat, 22 Apr 2023 23:24:15 +0000 (00:24 +0100)] 
Role Editor: can now add/duplicate and delete roles.

13 months agoSimplify a line.
Bram Matthys [Sat, 22 Apr 2023 16:31:18 +0000 (18:31 +0200)] 
Simplify a line.

13 months agoMove cfg/defines.php to inc/, to avoid confusing with user-configurable
Bram Matthys [Sat, 22 Apr 2023 16:04:00 +0000 (18:04 +0200)] 
Move cfg/defines.php to inc/, to avoid confusing with user-configurable
things, which it is not, or at least not in that file.

13 months agoMove some PHP files from ./ to ./inc: common, connection, header, footer
Bram Matthys [Sat, 22 Apr 2023 16:01:31 +0000 (18:01 +0200)] 
Move some PHP files from ./ to ./inc: common, connection, header, footer

13 months agoTry to be helpful if someone mixes wrong secrets::key with (old) DB unrealircd::rpc_p...
Bram Matthys [Sat, 22 Apr 2023 15:12:53 +0000 (17:12 +0200)] 
Try to be helpful if someone mixes wrong secrets::key with (old) DB unrealircd::rpc_password

13 months agounrealircd::rpc_password is now encrypted with secret::key (XChaCha20-Poly1305-IETF)
Bram Matthys [Sat, 22 Apr 2023 15:04:50 +0000 (17:04 +0200)] 
unrealircd::rpc_password is now encrypted with secret::key (XChaCha20-Poly1305-IETF)
Again, the purpose is so if any bad person gets a copy of your DB then the
stored RPC password is still useless since they also need your config/config.php.

Old unencrypted unrealircd::rpc_password entries are automatically
encrypted (upgraded).

Similar to previous commit 6b08fcb99e66665e7e4f345702915d7192fcd27b
this means you cannot blindly 'rm config/config.php' and then expect
your existing DB to still work with a random new (and different) key.

13 months agoThe config file now contains 'secrets' with 'pepper' that is used for
Bram Matthys [Sat, 22 Apr 2023 14:32:21 +0000 (16:32 +0200)] 
The config file now contains 'secrets' with 'pepper' that is used for
hashing passwords in the database. This means a hacker now needs to
have config.php to attack the (hashed) passwords in the database.
This may not be very meaningful if the DB backend is file_auth, but
can be useful for example if the backend is sql_auth and your database
backup (mysqldump) gets leaked.

We automatically create the secrets (like pepper) and automatically
upgrade password hashes to use pepper while each user logs in.
This does need write access to config/config.php while upgrading, though.

The hashed passwords in the database will have the prefix "peppered:"
if they have been upgraded to use pepper.

A side-effect of this is that you cannot blindly 'rm config/config.php'
and start the installation over again while keeping your old database.
This because the hashed passwords in the existing database were created
with an old pepper value and the new setup would create a random new
pepper value, making the hashes worthless (and wrong).
This mostly matters for devs though, but it is something for testers
to be aware of as well.

13 months agoMore towards the Role Editor
Valerie Pond [Sat, 22 Apr 2023 11:06:28 +0000 (12:06 +0100)] 
More towards the Role Editor

13 months agoCheck if opcache_invalidate() is available, before calling it, fixing HTTP 500
Bram Matthys [Sat, 22 Apr 2023 07:11:13 +0000 (09:11 +0200)] 
Check if opcache_invalidate() is available, before calling it, fixing HTTP 500
in setup screen.

Reported by Madriix in https://github.com/unrealircd/unrealircd-webpanel/issues/26

13 months agoFix file auth not working since about 24hrs ago
Bram Matthys [Sat, 22 Apr 2023 06:54:19 +0000 (08:54 +0200)] 
Fix file auth not working since about 24hrs ago

13 months agoAdd api/index.php config/index.php (empty) + config/index.php data/.gitignore
Bram Matthys [Fri, 21 Apr 2023 19:04:09 +0000 (21:04 +0200)] 
Add api/index.php config/index.php (empty) + config/index.php data/.gitignore

13 months agoThis plugins/sql_auth/error.php is no longer used
Bram Matthys [Fri, 21 Apr 2023 18:59:10 +0000 (20:59 +0200)] 
This plugins/sql_auth/error.php is no longer used

13 months agoSomething tells me this was just a test page ;)
Bram Matthys [Fri, 21 Apr 2023 18:57:48 +0000 (20:57 +0200)] 
Something tells me this was just a test page ;)

13 months agoShow git short hash as version for now (ok.. not ideal.. but it fits :D)
Bram Matthys [Fri, 21 Apr 2023 18:07:01 +0000 (20:07 +0200)] 
Show git short hash as version for now (ok.. not ideal.. but it fits :D)

Whoops.. webpanel_version was not actually set so we were re-running the
create_tables / upgrade code all the time.

13 months agoIt is now mandatory to load an auth provider: either sql_auth or file_auth.
Bram Matthys [Fri, 21 Apr 2023 17:57:31 +0000 (19:57 +0200)] 
It is now mandatory to load an auth provider: either sql_auth or file_auth.

13 months agoQuick fix within 1m. Duh :)
Bram Matthys [Fri, 21 Apr 2023 17:52:00 +0000 (19:52 +0200)] 
Quick fix within 1m. Duh :)

13 months agoMove all the rest of session management outside sqlauth/fileauth as well.
Bram Matthys [Fri, 21 Apr 2023 17:50:09 +0000 (19:50 +0200)] 
Move all the rest of session management outside sqlauth/fileauth as well.
This may also mean we now require either module loaded, have not checked,
but that is the plan anyway ;)

If there is a special page that should be accessed without being logged
in, add it to page_requires_no_login(). Similar to page_requires_no_config().

13 months agoAdd per-user session timeout setting (under Settings 'Accounts' -> select acc).
Bram Matthys [Fri, 21 Apr 2023 17:20:07 +0000 (19:20 +0200)] 
Add per-user session timeout setting (under Settings 'Accounts' -> select acc).
There's a small catch-22 with sessions in the sense that we must set the cookie
timeout before we start the session, and thus before we know which user it is,
and thus before we know the preferred maximum session time.
So we set the cookie with a timeout of 86400 (1 day), since we don't really use
the cookie anyway, we use the /api/timeout.php script and the
$_SESSION['last-activity'] and $_SESSION['session_timeout'] variables

This also moves all the session_start() stuff to a single function that is
called only called at two places (in upper layer, not like by sql or file auth)

Settings - Accounts - acc: horizontally align the settings fields.

13 months agoshift the circle slightly
Valerie Pond [Fri, 21 Apr 2023 16:30:07 +0000 (17:30 +0100)] 
shift the circle slightly

13 months agoFor table user_meta: ADD CONSTRAINT meta_key_user_id UNIQUE(meta_key,user_id)
Bram Matthys [Fri, 21 Apr 2023 16:25:05 +0000 (18:25 +0200)] 
For table user_meta: ADD CONSTRAINT meta_key_user_id UNIQUE(meta_key,user_id)
So we can use INSERT INTO ... ON DUPLICATE KEY UPDATE ....
at a later stage.

13 months agoAdd HOOKTYPE_UPGRADE which is called on upgrades. Also fix some
Bram Matthys [Fri, 21 Apr 2023 16:03:44 +0000 (18:03 +0200)] 
Add HOOKTYPE_UPGRADE which is called on upgrades. Also fix some
bug... i already forget which, but in the code of today ;D

And, remove old unused plugins/sql_auth/setup.php

13 months agoMove RPC config to DB instead of in config.php.
Bram Matthys [Fri, 21 Apr 2023 10:55:46 +0000 (12:55 +0200)] 
Move RPC config to DB instead of in config.php.
This so later we can easily manage multiple servers etc. and also
simply because it technically is not required to be in config.php ;).

13 months agoRedirect from main page to install2.php if not ready yet
Bram Matthys [Fri, 21 Apr 2023 10:36:41 +0000 (12:36 +0200)] 
Redirect from main page to install2.php if not ready yet
(this should probably be moved elsewhere but whatever)

13 months agoMake setting_key UNIQUE so we can useINSERT INTO ... ON DUPLICATE KEY UPDATE ....
Bram Matthys [Fri, 21 Apr 2023 10:30:37 +0000 (12:30 +0200)] 
Make setting_key UNIQUE so we can useINSERT INTO ... ON DUPLICATE KEY UPDATE ....
at a later stage (too lazy right now).

Does not do table upgrades atm but this whole table only exists since 24hrs
or so.. so we can get away with it ;)

13 months agoAdd sql::table_prefix to first setup screen
Bram Matthys [Fri, 21 Apr 2023 10:22:37 +0000 (12:22 +0200)] 
Add sql::table_prefix to first setup screen

13 months agoSlight miscommunication :D
Bram Matthys [Fri, 21 Apr 2023 09:55:06 +0000 (11:55 +0200)] 
Slight miscommunication :D

13 months agoMerge branch 'main' of github.com:unrealircd/unrealircd-webpanel
Bram Matthys [Fri, 21 Apr 2023 09:51:38 +0000 (11:51 +0200)] 
Merge branch 'main' of github.com:unrealircd/unrealircd-webpanel

13 months agoSetup major reshuffle: split up in pre-auth: backend & user creation, and
Bram Matthys [Fri, 21 Apr 2023 09:37:34 +0000 (11:37 +0200)] 
Setup major reshuffle: split up in pre-auth: backend & user creation, and
the rest in post-auth (after user is logged in).
This because:
1) It is safer, the process without a user configured is kept short
2) Easier for the user, so they can have the first step go well,
   even if they are stuck at the post-auth step (RPC).

This is even more important if we would later expand the setup step
with more questions/options/etc.

This ALSO mutilates Valware's magnificient on both JS and the dialogs ;P

13 months agoFix SQL table name settings => auth_settings
Valerie Pond [Fri, 21 Apr 2023 09:36:39 +0000 (10:36 +0100)] 
Fix SQL table name settings => auth_settings

13 months agoMake new settings-in-config work for file-based db as well.
Bram Matthys [Fri, 21 Apr 2023 08:32:23 +0000 (10:32 +0200)] 
Make new settings-in-config work for file-based db as well.

13 months agoAnd some more fixes for recent work.
Bram Matthys [Fri, 21 Apr 2023 08:04:47 +0000 (10:04 +0200)] 
And some more fixes for recent work.

13 months agoWriting and reading settings from DB file now work (for SQL).
Bram Matthys [Fri, 21 Apr 2023 08:01:06 +0000 (10:01 +0200)] 
Writing and reading settings from DB file now work (for SQL).

13 months agoMinimize config/config.php and put settings in DB. This is work in progress.
Bram Matthys [Fri, 21 Apr 2023 07:39:44 +0000 (09:39 +0200)] 
Minimize config/config.php and put settings in DB. This is work in progress.

config/config.php is no longer meant to be edited by hand and will
only contain the bare minimum of config that needs to be in a file.
All the rest will be in the DB (either SQL or db file).

Various todo items and actual db-based settings read/write untested.

13 months agosome SQL for settings
Valerie Pond [Fri, 21 Apr 2023 00:56:10 +0000 (01:56 +0100)] 
some SQL for settings

13 months agoadd a cute lil "live" card to the overview ;d
Valerie Pond [Fri, 21 Apr 2023 00:54:51 +0000 (01:54 +0100)] 
add a cute lil "live" card to the overview ;d

13 months agoAdd the beginning of user roles
Valerie Pond [Fri, 21 Apr 2023 00:54:04 +0000 (01:54 +0100)] 
Add the beginning of user roles

13 months agoFix the left navbar gap between the topbar
Valerie Pond [Thu, 20 Apr 2023 13:48:42 +0000 (14:48 +0100)] 
Fix the left navbar gap between the topbar

13 months agoAdd feet to pages without footers
Valerie Pond [Wed, 19 Apr 2023 21:27:44 +0000 (22:27 +0100)] 
Add feet to pages without footers

13 months agoMerge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel
Valerie Pond [Wed, 19 Apr 2023 18:55:27 +0000 (19:55 +0100)] 
Merge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel

13 months agoGive permission to edit users heh...
Valerie Pond [Wed, 19 Apr 2023 18:53:27 +0000 (19:53 +0100)] 
Give permission to edit users heh...