- Languages (lang.de.php) (Needs a Translate in other Languages)-

Add: $lang["navbar"]["groupassigner"], $lang["grouppage"]["title"], $lang["grouppage"]["tsuid"], $lang["grouppage"]["tsgroup"], $lang["grouppage"]["send"],
$lang["grouppage"]["error"]["offline"], $lang["grouppage"]["error"]["notallowed"], $lang["grouppage"]["error"]["duplicate"], $lang["grouppage"]["success"]["success"]

- Config (config.template.php) (Needs a Change in your Config) -
Add:
$config["groupassigner"], $config["groups"]["allowgroups"]

- Header (header.php) -
When the Groupassigner is active, then "Server Viewer" is a Dropdown Menu with the Link for the Groupassigner, when is inactive then is only a Link to the "Server Viewer"

- Groupassigner (groupassigner.php)
When the Groupassigner is active, then shows a Form with the UID and the ServerGroups was in the Config ($config["groups"]["allowgroups"]).
If the form is manipulated, and the server group is not in $config["groups"]["allowgroups"] then it will also output an error if the server is offline, or the login data for Server Query is incorrect.
This commit is contained in:
derrobin154
2018-04-04 22:08:05 +02:00
parent df13723f60
commit a47a07b093
4 changed files with 142 additions and 1 deletions

View File

@ -75,3 +75,12 @@ $config['contact']['items'][] = ["TeamSpeak", "Support channel", "ts3server://te
$config['contact']['items'][] = ["Email", "contact@email.com", "mailto:contact@email.com"];
$config['contact']['items'][] = ["Telegram", "@Telegram", "https://t.me/Telegram"];
$config['contact']['items'][] = ["Twitter", "@Twitter", "https://twitter.com/Twitter"];
/************* Groupassigner configuration *************/
// Enable / Disable the GroupAssigner
$config["groupassigner"] = 1;
// Server groups to be assigned
$config["groups"]["allowgroups"] = array("41","42");