From 284a72fc588ac1b4689c9ac73573683a457949f5 Mon Sep 17 00:00:00 2001 From: Dieter Gobbers Date: Wed, 8 Jun 2016 13:54:36 +0200 Subject: [PATCH] Create teamspeak3.php added missing file --- inc/tasks/teamspeak3.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 inc/tasks/teamspeak3.php diff --git a/inc/tasks/teamspeak3.php b/inc/tasks/teamspeak3.php new file mode 100644 index 0000000..696fcb4 --- /dev/null +++ b/inc/tasks/teamspeak3.php @@ -0,0 +1,40 @@ +. +*/ + +// Disallow direct access to this file for security reasons +if(!defined("IN_MYBB")) +{ + die("Direct initialization of this file is not allowed.

Please make sure IN_MYBB is defined."); +} +function task_teamspeak3($task) +{ + global $db, $mybb, $lang; + + teamspeak3_log("----------------------------"); + $vserver=teamspeak3_connect(); + if ($vserver) + { + teamspeak3_mass_set_permissions($vserver); + teamspeak3_cleanup_teamspeak_groups($vserver); + } + + add_task_log($task, "updated all managed TS3 permissions"); +} +?>