]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - README.md
for ?redirect=xx in login, only allow local URLs
[irc/unrealircd/unrealircd-webpanel.git] / README.md
CommitLineData
60230273 1 ## UnrealIRCd Administration WebPanel
1e35660c 2
60230273
VP
3[![Version](https://img.shields.io/badge/UnrealIRCd-6.0.6_or_later-darkgreen.svg)]()
4[![Version](https://img.shields.io/badge/Version-Beta-blue.svg)]()
5[![Maintained](https://img.shields.io/badge/Maintained-yes-darkgreen.svg)]()
6[![Unreal](https://img.shields.io/badge/PHP-8.0_or_later-darkgreen.svg)](https://unrealircd.org)
7
e236ae9a
VP
8 Are you tired of managing your IRC network through a command line interface? Do you wish there was a more user-friendly way to keep track of your servers, channels, and users? Look no further than the UnrealIRCd Web Panel!
9
10This web-based tool provides a comprehensive overview of your IRC network, including all channels and users, as well as detailed information about individual servers and users. With the UnrealIRCd Web Panel, you can easily add and remove server bans and spamfilter entries, rehash your entire network, and filter lists of information based on input criteria, all from the convenience of your web browser.
11
12One of the key features of the UnrealIRCd Web Panel is its user-friendly interface. The panel is designed to be easy to navigate, with all the information you need displayed in an organized and easy-to-understand format. This makes it much easier to manage your network, especially if you have multiple servers or a large number of users.
13
14Additionally, the UnrealIRCd Web Panel is a great tool for keeping track of your network's activity. You can view detailed information about the channels and users on your network as well as manage your servers. This allows you to quickly identify and address any issues that may arise.
15
16Overall, the UnrealIRCd Web Panel is a must-have tool for any administrator managing an IRC network. Its user-friendly interface and powerful management capabilities make it easy to keep track of your network and ensure that everything is running smoothly. So why not give it a try and see how it can improve your IRC network management experience?
17
33f512fa 18## Example Overview from Desktop
5eac3f4d 19 <img src="https://i.ibb.co/7SdFZnk/Screenshot-from-2023-01-14-07-26-21.png">
80bc35b3 20 <img src="https://i.ibb.co/6vQ6wg7/spamfilter.png">
922a4534 21
33f512fa 22## Example Overview from Mobile
2bc9920e
VP
23<div class="row">
24<img src="https://i.ibb.co/KGLdB43/Screenshot-20230123-233804-Chrome.jpg" height="30%" width="30%">
25<img src="https://i.ibb.co/tB980kd/Screenshot-20230124-000204-Chrome.jpg" height="30%" width="30%">
26</div>
33f512fa 27
922a4534 28## Prerequisites ##
349ec8ff
BM
29- UnrealIRCd 6.0.6 or later
30- A webserver (e.g. apache or nginx)
0f498c3d 31- PHP 8 or later
922a4534 32
2f9ac14e
VP
33Note: PHP 8 may require special installation instructions.
34Here are some instructions for:
14d66385
BM
35- Ubuntu 22.04: `apt-get install apache2 libapache2-mod-php`
36- [Ubuntu 20.04](https://linuxhint.com/install-php-ubuntu/)
2f9ac14e
VP
37- [Debian](https://www.vultr.com/docs/how-to-install-php-8-on-debian-11/)
38- [CentOS](https://www.tecmint.com/install-php-8-on-centos/)
39
40For more installation methods for PHP 8, make a websearch for how to install PHP 8 on your operating system.
922a4534
VP
41## Installation ##
42
43Note: This instructional assumes this is going to be hosted in the webroot directory `/var/www/` (html/) directory.
922a4534
VP
44
45Please make sure you have [correctly setup UnrealIRCd for use with JSON-RPC](https://www.unrealircd.org/docs/JSON-RPC) before you continue.
46
f217c52a
BM
47- Go to your webserver root, for example `/var/www/html/`, and clone
48 this repository:
922a4534 49```
f217c52a 50cd /var/www/html
964e17d3 51git clone https://github.com/unrealircd/unrealircd-webpanel
922a4534
VP
52```
53
f217c52a
BM
54- Go into the directory and run composer to install the dependencies
55 (If you don't have composer, then [install it](https://getcomposer.org/download/) first):
7e236785 56```
f217c52a 57cd unrealircd-webpanel
7e236785
BM
58composer install
59```
7e236785 60
f217c52a 61- Edit the configuration file
922a4534 62```
e7192278 63cp config.php.sample config.php
922a4534
VP
64nano config.php
65```
922a4534
VP
66Edit the configuration file to match your UnrealIRCd's RPC credentials and save
67
66f6eec2
BM
68IMPORTANT: You will want to put the webpanel behind a login, using a
69`.htaccess` file or similar. Don't open it up to the world!
aef43f9e
BM
70
71## Updating for end-users ##
72For end-users, when you want to update to the latest version:
73```bash
74git pull
438920b3 75composer install
aef43f9e
BM
76```
77
8d6871b9 78## Authentication
66f6eec2
BM
79Right now, by default everyone being able to access the URL can use the
80webpanel. In future versions this will no longer be the case.
81There are currently two authentication methods under development:
8d6871b9
VP
82
83- SQL (available but still in development!)
84- Local File DB (not public yet)
85
86### SQL Authentication (Work In Progress)
87<img width="130" height="100" src="https://cdn.shopify.com/s/files/1/1140/2002/products/UV-10073Cautionuseatyourownrisk-01_1024x1024.png?v=1588174823">
88In order to use the SQL Authentication plugin you must first make
89sure you have an SQL database which UnrealIRCd Admin Panel can
90access.
91
92Make sure you've put your SQL details in `config.php` and that you
93have `"sql_auth",` in the plugins section of the config.
94
95You can create the first user by following the example in `config.php`.
96After you've logged in, you will have two new tabs: `Panel Access` and `Logout`.
97You will be able to add and delete users from the `Panel Access` tab.
98
99### Local File DB
100<img width="27" height="27" src="https://media2.giphy.com/media/3o7TKtnuHOHHUjR38Y/giphy.gif?cid=6c09b95281771195a917f87730a56bcdcfa5b6f418dcaf5e&rid=giphy.gif&ct=s"> This might take a while. Please wait a few days.
101
102
aef43f9e
BM
103## Developers ##
104Developers of the webpanel will naturally use the same procedure as
105above. However, sometimes you will want to update to a newer version
106of the unrealircd-rpc-php library. You then need to run:
107```bash
108# For devs only!
438920b3 109composer update
aef43f9e
BM
110git commit composer.lock
111```
112Commiting the composer.lock file updates the dependency for all
113other users, that way a `composer update` by end-users will update
114to exactly the version that `composer install` just installed.