Adds a Web Server with Control Panel to halfMod
Copy the repo into your halfMod installation then run the following commands from the terminal:
cd src/extensions/webgui
chmod +x build.sh
./build.sh
cd ../../plugins/
./compile.sh --install webgui_console.cpp
The web server files are hosted in ./halfMod/plugins/webgui/www/
. This is the default index directory of the web server.
The web server has support for most protocols, including websockets. Check out the webgui_console plugin source for an example.
Before you can login to the Admin Panel, you need to edit the halfMod/plugins/webgui/accounts.conf
file. There are directions and an example in the file.
BTML is a file format that aims to replace PHP, any file with this extension is treated as a bash script. It is executed and whatever the script outputs is what is served to the requesting client.
Special thanks to MulverineX for developing the Panel frontend.