- 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:
@ -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");
|
||||
|
||||
|
@ -22,6 +22,8 @@ $lang["navbar"]["rules"] = "Server Regeln";
|
||||
$lang["navbar"]["connect"] = "Mit Server verbinden";
|
||||
$lang["navbar"]["connecttooltip"] = "Klicken um mit {0} zu verbinden";
|
||||
|
||||
$lang["navbar"]["groupassigner"] = "Gruppenzuweiser";
|
||||
|
||||
|
||||
/************* Footer *************/
|
||||
|
||||
@ -102,3 +104,16 @@ $lang["banlist"]["table"]["expires"] = "Läuft ab am";
|
||||
$lang["rules"]["title"] = "Server Regeln";
|
||||
$lang["rules"]["filenotfound"] = "Fehler: Die Datei <code>config/rules.md</code> wurde nicht gefunden!";
|
||||
$lang["rules"]["readerror"] = "Fehler: Nicht genügend Rechte um auf <code>config/rules.md</code> zuzugreifen!";
|
||||
|
||||
/************* Groupassigner - groupassigner.php *************/
|
||||
$lang["grouppage"]["title"] = "Gruppenzuweiser";
|
||||
$lang["grouppage"]["tsuid"] = "Teamspeak-UID";
|
||||
$lang["grouppage"]["tsgroup"] = "Teamspeak Gruppe";
|
||||
$lang["grouppage"]["send"] = "Absenden";
|
||||
|
||||
$lang["grouppage"]["error"]["offline"] = "Du musst online sein zur Vergabe einer Gruppe";
|
||||
$lang["grouppage"]["error"]["notallowed"] = "Diese Servergruppe darf nicht vergeben werden.";
|
||||
$lang["grouppage"]["error"]["duplicate"] = "Du besitzt die Servergruppe bereits.";
|
||||
|
||||
$lang["grouppage"]["success"]["success"] = "Dir wurde die Servergruppe zugewiesen";
|
||||
|
||||
|
Reference in New Issue
Block a user