]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/log
irc/unrealircd/unrealircd-webpanel.git
14 months agoMore on toast notifications
Valerie Pond [Thu, 13 Apr 2023 14:58:11 +0000 (15:58 +0100)] 
More on toast notifications

14 months agoTry getting bootstrap toasts working
Valerie Pond [Thu, 13 Apr 2023 14:06:16 +0000 (15:06 +0100)] 
Try getting bootstrap toasts working

14 months agoSQL_DEFAULT_USER => DEFAULT_USER, so we both use the same in sql_auth and file_auth
Bram Matthys [Wed, 12 Apr 2023 14:26:01 +0000 (16:26 +0200)] 
SQL_DEFAULT_USER => DEFAULT_USER, so we both use the same in sql_auth and file_auth

14 months agoAdd file_auth plugin, which offers similar functionality to sql_auth
Bram Matthys [Wed, 12 Apr 2023 14:23:15 +0000 (16:23 +0200)] 
Add file_auth plugin, which offers similar functionality to sql_auth
but then with files. Note that the webserver needs to be able to
write to the data/ directory. See config/config.php.sample

The sql auth plugin is better, but this way users have no excuse
not to use any authentication, basically ;D

14 months agoAdd data/ directory that will be used later
Bram Matthys [Wed, 12 Apr 2023 12:22:59 +0000 (14:22 +0200)] 
Add data/ directory that will be used later

14 months agoOverview: update every second: fallback to old-style on older UnrealIRCds
Bram Matthys [Wed, 12 Apr 2023 12:01:26 +0000 (14:01 +0200)] 
Overview: update every second: fallback to old-style on older UnrealIRCds

14 months agoHide the right-click menu from the users page
Valerie Pond [Wed, 12 Apr 2023 11:54:30 +0000 (12:54 +0100)] 
Hide the right-click menu from the users page

14 months agoDon't call api/timeout.php on non-sql installs
Bram Matthys [Wed, 12 Apr 2023 11:45:35 +0000 (13:45 +0200)] 
Don't call api/timeout.php on non-sql installs

14 months agoMerge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel
Valerie Pond [Wed, 12 Apr 2023 11:39:36 +0000 (12:39 +0100)] 
Merge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel

14 months agousers/index.php: add start of experimental right-click menu on
Valerie Pond [Wed, 12 Apr 2023 11:37:58 +0000 (12:37 +0100)] 
users/index.php: add start of experimental right-click menu on

14 months agoFix parse errors in config/config.php.sample
Bram Matthys [Wed, 12 Apr 2023 11:34:38 +0000 (13:34 +0200)] 
Fix parse errors in config/config.php.sample
Reported by Lord255

14 months agoDelete Stats.php
Valerie Pond [Wed, 12 Apr 2023 11:29:03 +0000 (12:29 +0100)] 
Delete Stats.php

14 months agoproperly fix broken js, move after doctype
Valerie Pond [Wed, 12 Apr 2023 10:42:05 +0000 (11:42 +0100)] 
properly fix broken js, move after doctype

14 months agoAdd api/common_api.php and use Server-Sent Events, streaming JSON
Bram Matthys [Wed, 12 Apr 2023 10:02:09 +0000 (12:02 +0200)] 
Add api/common_api.php and use Server-Sent Events, streaming JSON
data on like the overview page to update the User/Channel/.. counts
instead of doing a HTTP request every second like we had before.

The use of api/common_api.php from api/ is quite easy:
require_once('common_api.php');
which takes care of validating the session, closing the session,
disabling output buffering, etc.

And then you use either:
* api_log_loop($sources)
  like: api_log_loop(["connect"]);
Or:
* api_timer_loop((int $every_msec, string $method, array|null $params = null)
  like: api_timer_loop(1000, "stats.get");

And then all the (streaming) JSON-RPC response data from the server is
streamed back to the client via SSE.

14 months agoUpdate to latest unrealircd-rpc-php again...
Bram Matthys [Wed, 12 Apr 2023 09:41:23 +0000 (11:41 +0200)] 
Update to latest unrealircd-rpc-php again...

14 months agoFixes for BASE_URL massreplace, accidentally changes JS code too.
Bram Matthys [Wed, 12 Apr 2023 09:15:05 +0000 (11:15 +0200)] 
Fixes for BASE_URL massreplace, accidentally changes JS code too.

14 months agoConvert the stats calls from raw to $rpc->stats()->get();
Bram Matthys [Wed, 12 Apr 2023 06:38:01 +0000 (08:38 +0200)] 
Convert the stats calls from raw to $rpc->stats()->get();

-$stats = $rpc->query("stats.get", []);
+$stats = $rpc->stats()->get();

That function was added a few minutes ago in unrealircd-rpc-php,
apparently it was missing :D

14 months agoUpdate to latest unrealircd-rpc-php. End-users have to run 'composer install'
Bram Matthys [Wed, 12 Apr 2023 06:37:47 +0000 (08:37 +0200)] 
Update to latest unrealircd-rpc-php. End-users have to run 'composer install'

14 months agoClose session early in the api/overview.php so it doesn't block other pages.
Bram Matthys [Wed, 12 Apr 2023 06:17:22 +0000 (08:17 +0200)] 
Close session early in the api/overview.php so it doesn't block other pages.

This closes the session before connecting to the server and doing the stats
call, which may take a few hundred milliseconds on long distance servers.

Also writes a JSON header so i can see the result easily in my browser ;D

14 months agoWhoops ) too much :D
Bram Matthys [Tue, 11 Apr 2023 18:57:37 +0000 (20:57 +0200)] 
Whoops ) too much :D

14 months agoFix some bad mass replaces
Bram Matthys [Tue, 11 Apr 2023 18:54:26 +0000 (20:54 +0200)] 
Fix some bad mass replaces

14 months agoMerge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel
Valerie Pond [Tue, 11 Apr 2023 18:34:45 +0000 (19:34 +0100)] 
Merge branch 'main' of https://github.com/unrealircd/unrealircd-webpanel

14 months ago"fix" the users page
Valerie Pond [Tue, 11 Apr 2023 18:34:08 +0000 (19:34 +0100)] 
"fix" the users page

14 months agoFixfixfix
Bram Matthys [Tue, 11 Apr 2023 18:05:46 +0000 (20:05 +0200)] 
Fixfixfix

14 months agoAnd add security check back...
Bram Matthys [Tue, 11 Apr 2023 18:01:33 +0000 (20:01 +0200)] 
And add security check back...

14 months agoconfig_get() -> get_config() :D
Bram Matthys [Tue, 11 Apr 2023 18:00:25 +0000 (20:00 +0200)] 
config_get() -> get_config() :D

14 months agolose the security check as it seems to not work yet
Valerie Pond [Tue, 11 Apr 2023 17:57:09 +0000 (18:57 +0100)] 
lose the security check as it seems to not work yet

14 months agoNewconf: smtp / mailer
Bram Matthys [Tue, 11 Apr 2023 17:46:29 +0000 (19:46 +0200)] 
Newconf: smtp / mailer

14 months agoNewconf for DNSBL
Bram Matthys [Tue, 11 Apr 2023 17:41:07 +0000 (19:41 +0200)] 
Newconf for DNSBL

14 months agoMove to new style config, with config in config/ directory.
Bram Matthys [Tue, 11 Apr 2023 17:30:56 +0000 (19:30 +0200)] 
Move to new style config, with config in config/ directory.
There is currently a compatibility layer so existing installs
don't have to update their config.php per se... although that
won't be around forever ;)

14 months agojavascript function to generate a new toast notification
Valerie Pond [Tue, 11 Apr 2023 17:14:05 +0000 (18:14 +0100)] 
javascript function to generate a new toast notification

14 months agochannel/details Add a note in for blank Ban Type
Valerie Pond [Tue, 11 Apr 2023 17:13:29 +0000 (18:13 +0100)] 
channel/details Add a note in for blank Ban Type

14 months agoUpgrade bootstrap and fix an $active_page err
Valerie Pond [Tue, 11 Apr 2023 17:12:40 +0000 (18:12 +0100)] 
Upgrade bootstrap and fix an $active_page err

14 months agotry to make the users table look better on mobile devices
Valerie Pond [Tue, 11 Apr 2023 17:11:58 +0000 (18:11 +0100)] 
try to make the users table look better on mobile devices

not really working well at the moment, but I'm on it

14 months agobeginnings of api/notification
Valerie Pond [Tue, 11 Apr 2023 00:12:40 +0000 (01:12 +0100)] 
beginnings of api/notification

14 months agoLogin: add basic front-end validation
Valerie Pond [Tue, 11 Apr 2023 00:10:52 +0000 (01:10 +0100)] 
Login: add basic front-end validation

14 months agoUpdate to latest unrealircd-rpc-php. End users: 'composer install'
Bram Matthys [Mon, 10 Apr 2023 17:32:00 +0000 (19:32 +0200)] 
Update to latest unrealircd-rpc-php. End users: 'composer install'

14 months agoRemove "Top countries" for now, maybe add it somewhere else later though.
Bram Matthys [Sun, 9 Apr 2023 17:21:57 +0000 (19:21 +0200)] 
Remove "Top countries" for now, maybe add it somewhere else later though.

14 months agoMerge pull request #20 from Madriix/main
Valerie Pond [Sun, 9 Apr 2023 17:16:26 +0000 (18:16 +0100)] 
Merge pull request #20 from Madriix/main

Update index.php

14 months agoadded top country
Madriix [Sun, 9 Apr 2023 17:08:53 +0000 (19:08 +0200)] 
added top country

14 months agoEdit channel settings grouping. Eg: Join restrictions, Message restrictions, ..
Bram Matthys [Sun, 9 Apr 2023 16:58:16 +0000 (18:58 +0200)] 
Edit channel settings grouping. Eg: Join restrictions, Message restrictions, ..

14 months agoLeft-nav: adjust vertical space, use Bold for main items, make it less white.
Bram Matthys [Sun, 9 Apr 2023 16:54:28 +0000 (18:54 +0200)] 
Left-nav: adjust vertical space, use Bold for main items, make it less white.

14 months agoAttempt 2.. or am i making it worse? :D
Bram Matthys [Sun, 9 Apr 2023 16:19:23 +0000 (18:19 +0200)] 
Attempt 2.. or am i making it worse? :D

14 months agoLeftnav: let's try this...
Bram Matthys [Sun, 9 Apr 2023 16:16:27 +0000 (18:16 +0200)] 
Leftnav: let's try this...

14 months agoLeftnav subitems fun
Bram Matthys [Sun, 9 Apr 2023 15:36:10 +0000 (17:36 +0200)] 
Leftnav subitems fun

14 months agoAdd the sidenav and move menu to it
Valerie Pond [Sun, 9 Apr 2023 14:17:14 +0000 (15:17 +0100)] 
Add the sidenav and move menu to it

14 months agofix the icon in footer not showing
Valerie Pond [Sun, 9 Apr 2023 14:16:19 +0000 (15:16 +0100)] 
fix the icon in footer not showing

14 months agoUpdate index.php
Madriix [Sun, 9 Apr 2023 06:53:13 +0000 (08:53 +0200)] 
Update index.php

14 months agoChange default rpc-user name, now matches the new wiki instructions
Bram Matthys [Fri, 7 Apr 2023 08:05:05 +0000 (10:05 +0200)] 
Change default rpc-user name, now matches the new wiki instructions

14 months agoMove documentation to wiki
Bram Matthys [Fri, 7 Apr 2023 07:27:32 +0000 (09:27 +0200)] 
Move documentation to wiki

14 months agoLose the header in setup.php
Valerie Pond [Fri, 7 Apr 2023 05:25:31 +0000 (06:25 +0100)] 
Lose the header in setup.php

14 months agoQuick workaround for SQL Setup page not working
Bram Matthys [Fri, 7 Apr 2023 05:22:44 +0000 (07:22 +0200)] 
Quick workaround for SQL Setup page not working

14 months agoFix number of tables check
Valerie Pond [Fri, 7 Apr 2023 05:08:36 +0000 (06:08 +0100)] 
Fix number of tables check

14 months agoautomatically go to login page on session timeout
Valerie Pond [Fri, 7 Apr 2023 03:45:46 +0000 (04:45 +0100)] 
automatically go to login page on session timeout

14 months agomaybe a bigger interval on the cpu check =]
Valerie Pond [Fri, 7 Apr 2023 01:20:07 +0000 (02:20 +0100)] 
maybe a bigger interval on the cpu check =]

14 months agoMake a cool chart for CPU usage and show live CPU&memory usage
Valerie Pond [Fri, 7 Apr 2023 01:18:05 +0000 (02:18 +0100)] 
Make a cool chart for CPU usage and show live CPU&memory usage

14 months agoMake the Services overview card live too
Valerie Pond [Fri, 7 Apr 2023 00:57:26 +0000 (01:57 +0100)] 
Make the Services overview card live too

14 months agoOverview now displays live stats
Valerie Pond [Thu, 6 Apr 2023 23:50:38 +0000 (00:50 +0100)] 
Overview now displays live stats

The overview will now display live stats updated every second, so you can be sure the numbers you're looking at are current without having to refresh the page.

This goes for everything except the Services and Panel Access cards, though I will make these live in the near future.

14 months agoFix redirect loop
Valerie Pond [Thu, 6 Apr 2023 03:19:28 +0000 (04:19 +0100)] 
Fix redirect loop

Reported by @syzop

14 months agosome minor cosmetic changes
Valerie Pond [Wed, 5 Apr 2023 04:23:11 +0000 (05:23 +0100)] 
some minor cosmetic changes

14 months agoAdd the start of "Network Health" tool
Valerie Pond [Wed, 5 Apr 2023 04:22:31 +0000 (05:22 +0100)] 
Add the start of "Network Health" tool

This tab will let you see if there are any mode mismatches or module version mismatches, and any other stuff we can think might be useful to add in.
Since we already have a hardcoded End Of Life, it sounds reasonable to add UnrealIRCd5 being EOL as a  "problem" listed on this page after July, for example.

14 months agoCouple of small fixes reported by @Lord255
Valerie Pond [Wed, 5 Apr 2023 00:28:14 +0000 (01:28 +0100)] 
Couple of small fixes reported by @Lord255

14 months agoFinish server details page
Valerie Pond [Wed, 5 Apr 2023 00:25:03 +0000 (01:25 +0100)] 
Finish server details page

14 months agoMove SQL setup to its own page
Valerie Pond [Tue, 4 Apr 2023 20:45:52 +0000 (21:45 +0100)] 
Move SQL setup to its own page

14 months agoMerge pull request #17 from PeGaSuS-Coder/patch-1
Valerie Pond [Tue, 4 Apr 2023 19:48:08 +0000 (20:48 +0100)] 
Merge pull request #17 from PeGaSuS-Coder/patch-1

Update class-cmodes.php

14 months agoMerge pull request #19 from Madriix/main - Fix
Valerie Pond [Tue, 4 Apr 2023 19:47:24 +0000 (20:47 +0100)] 
Merge pull request #19 from Madriix/main - Fix

14 months agoFix password updating a blank password
Valerie Pond [Tue, 4 Apr 2023 19:44:59 +0000 (20:44 +0100)] 
Fix password updating a blank password

14 months agoUpdate header.php
Madriix [Tue, 4 Apr 2023 06:53:24 +0000 (08:53 +0200)] 
Update header.php

By installing this project this morning on my subdomain I came across this error and I took the liberty of correcting it :
https://www.zupimages.net/up/23/14/v2rd.jpg

14 months agoDisable permission checks when no auth plugin exists
Valerie Pond [Tue, 4 Apr 2023 00:15:29 +0000 (01:15 +0100)] 
Disable permission checks when no auth plugin exists

This lets people who are not using sql_auth plugin still be able to do things and not worry about setting permissions.

Warning: Not using sql_auth will NOT let you configure user permissions. In other words, anyone you give access will have permission to do everything.

14 months agomissing a word
Bram Matthys [Mon, 3 Apr 2023 07:52:58 +0000 (09:52 +0200)] 
missing a word

14 months agoAdd a helpful error screen if Apache/NGINX/.. serve a PHP < 8.0.0
Bram Matthys [Mon, 3 Apr 2023 07:48:26 +0000 (09:48 +0200)] 
Add a helpful error screen if Apache/NGINX/.. serve a PHP < 8.0.0

14 months agoMove including connection.php out of common.php so it is made explicit.
Bram Matthys [Sat, 1 Apr 2023 09:13:10 +0000 (11:13 +0200)] 
Move including connection.php out of common.php so it is made explicit.
This fixes an issue where a connection is made to the IRC server before
the user is verified to be logged in (and on the login screen too).
A few webpages now don't include connection.php, such as Login,
the IP whois tool and the Settings.

14 months agoUpdate class-cmodes.php
PeGaSuS [Fri, 31 Mar 2023 17:52:45 +0000 (19:52 +0200)] 
Update class-cmodes.php

Fixed small mix up between `+c` and `+C`

14 months agoUse user.set_issuer so currently logged in user is communicated to UnrealIRCd
Bram Matthys [Fri, 31 Mar 2023 12:26:06 +0000 (14:26 +0200)] 
Use user.set_issuer so currently logged in user is communicated to UnrealIRCd
for logging/auditing and other purposes such as unrealircd.org/issued-by mtag.

14 months agoFetch new unrealircd-rpc-php. Users will have to run 'composer install'
Bram Matthys [Fri, 31 Mar 2023 12:00:27 +0000 (14:00 +0200)] 
Fetch new unrealircd-rpc-php. Users will have to run 'composer install'

14 months agochan details: make inputboxes smaller
Valerie Pond [Fri, 31 Mar 2023 02:53:15 +0000 (03:53 +0100)] 
chan details: make inputboxes smaller

14 months agoFix some behind-the-scenes warnings
Valerie Pond [Fri, 31 Mar 2023 02:37:50 +0000 (03:37 +0100)] 
Fix some behind-the-scenes warnings

14 months agoLink to channel details from user details
Valerie Pond [Fri, 31 Mar 2023 02:29:53 +0000 (03:29 +0100)] 
Link to channel details from user details

14 months agochan details: make tables sm0l
Valerie Pond [Fri, 31 Mar 2023 02:20:08 +0000 (03:20 +0100)] 
chan details: make tables sm0l

14 months agoAdd visible params to details
Valerie Pond [Fri, 31 Mar 2023 00:39:37 +0000 (01:39 +0100)] 
Add visible params to details

Fix some buttons

14 months agoFinalize ability to edit channel modes
Valerie Pond [Fri, 31 Mar 2023 00:13:08 +0000 (01:13 +0100)] 
Finalize ability to edit channel modes

14 months agoServer Details: Fix buttons
Valerie Pond [Fri, 31 Mar 2023 00:08:39 +0000 (01:08 +0100)] 
Server Details: Fix buttons

These weren't working for some time. they are supposed to.

14 months agoRemove vendor item
Valerie Pond [Wed, 29 Mar 2023 15:01:01 +0000 (16:01 +0100)] 
Remove vendor item

14 months agoFurther on the channel details
Valerie Pond [Wed, 29 Mar 2023 14:38:15 +0000 (15:38 +0100)] 
Further on the channel details

14 months agoChannel details: re-add the Host column in "User List", but only fill
Bram Matthys [Mon, 27 Mar 2023 09:06:04 +0000 (11:06 +0200)] 
Channel details: re-add the Host column in "User List", but only fill
it when using UnrealIRCd 6.0.8+. In older versions one would have to
do 1 API call for each user in the list which is way too slow when the
webserver and IRC server are on different machines (eg: load time of
40 seconds for a 100 user channel).
In UnrealIRCd 6.0.8+ this information is included in the single
channel.get() when requested, so we only have to do 1 API call and
not 101.

14 months agoDon't call channel.get() twice for simple GET requests.
Bram Matthys [Mon, 27 Mar 2023 08:56:52 +0000 (10:56 +0200)] 
Don't call channel.get() twice for simple GET requests.
$_POST always exists even for GET requests, so isset() always
returned 1 and then... yeah...

Also, prepare to fetch more details...

14 months agoGrab CHANMODES= for current server in an easier way
Bram Matthys [Mon, 27 Mar 2023 08:45:07 +0000 (10:45 +0200)] 
Grab CHANMODES= for current server in an easier way

14 months agoUpdate unrealircd-rpc-php. End users must run 'composer install'.
Bram Matthys [Mon, 27 Mar 2023 08:44:23 +0000 (10:44 +0200)] 
Update unrealircd-rpc-php. End users must run 'composer install'.

14 months agoChannel details: resize the user list / channel settings a little, tweak later
Bram Matthys [Mon, 27 Mar 2023 06:29:22 +0000 (08:29 +0200)] 
Channel details: resize the user list / channel settings a little, tweak later

14 months agoChannel details: drop the Host in User List for now, so page loads fast,
Bram Matthys [Mon, 27 Mar 2023 06:23:25 +0000 (08:23 +0200)] 
Channel details: drop the Host in User List for now, so page loads fast,
also when the web server and the IRC server are on different machines.

14 months agoMove the channel details around, make it look better
Valerie Pond [Mon, 27 Mar 2023 05:52:18 +0000 (06:52 +0100)] 
Move the channel details around, make it look better

14 months agoDisplay channel settings, userstatus in the userlist and added quick-action buttons
Valerie Pond [Sat, 25 Mar 2023 03:58:36 +0000 (03:58 +0000)] 
Display channel settings, userstatus in the userlist and added quick-action buttons

14 months agogive success/error messages on edit panel user
Valerie Pond [Tue, 21 Mar 2023 23:27:35 +0000 (23:27 +0000)] 
give success/error messages on edit panel user

14 months agoMerge pull request #16 from PeGaSuS-Coder/patch-4
Valerie Pond [Tue, 21 Mar 2023 22:19:33 +0000 (22:19 +0000)] 
Merge pull request #16 from PeGaSuS-Coder/patch-4

Update class-paneluser.php

15 months agoShorten the introduction. This is short enough and the screenshots
Bram Matthys [Wed, 15 Mar 2023 12:57:25 +0000 (13:57 +0100)] 
Shorten the introduction. This is short enough and the screenshots
that we have nowadays say plenty already.

15 months agoWarn about SQL_DEFAULT_USER being set in config.php.
Bram Matthys [Wed, 15 Mar 2023 07:54:07 +0000 (08:54 +0100)] 
Warn about SQL_DEFAULT_USER being set in config.php.
This is a plaintext user/password that is set in the config that is only
meant for during installation of the SQL plugin. It should be removed
directly after you are logged in for the first time.

15 months agoNot important but set example SQL database name to unrealircdwebpanel.
Bram Matthys [Wed, 15 Mar 2023 07:44:03 +0000 (08:44 +0100)] 
Not important but set example SQL database name to unrealircdwebpanel.
I know, it's long, but I don't think "unrealircd" is appropriate since
this is not unrealircd but the unrealircd web panel :D. Also, now
it matches my instructions in the README.md.

15 months agoDon't mention file-based auth anymore and add more info for SQL auth.
Bram Matthys [Wed, 15 Mar 2023 07:41:17 +0000 (08:41 +0100)] 
Don't mention file-based auth anymore and add more info for SQL auth.
Get rid of the "under construction" text even though it may be, after all
the entire web panel is under construction :D. And add hands-on
instructions for creating the database, user, granting permissions,
and the exact steps to go through.

15 months agofor ?redirect=xx in login, only allow local URLs
Bram Matthys [Wed, 15 Mar 2023 07:28:27 +0000 (08:28 +0100)] 
for ?redirect=xx in login, only allow local URLs

15 months agoFix incorrect order of SQL statements
Valerie Pond [Tue, 14 Mar 2023 04:10:09 +0000 (04:10 +0000)] 
Fix incorrect order of SQL statements