Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.05 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.05 KB

halfMod-WebGUI-Extension

Adds a Web Server with Control Panel to halfMod

Installation

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

Web Server

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.

Adding Login Accounts

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

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

Special thanks to MulverineX for developing the Panel frontend.