isExpired()) { $cacheutils->setValue([getServerGroups(), date('d.m.Y H:i:s')], 300); } $grouplist = $cacheutils->getValue(); try { $tsAdmin = getTeamspeakConnection("#no_query_clients"); } catch (Exception $e){ if ($e->getCode() == 1281) { echo ''; } else { echo '

' . translate($lang["general"]["scripterror"], [$e->getCode(), $e->getMessage()]) . '

'; exit; } } if(isset($_POST["absenden"])){ $uid = htmlspecialchars($_POST['uid']); if(in_array(htmlspecialchars($_POST['group']), $config["groups"]["allowgroups"])){ try { $tsAdmin->clientGetByUid($uid)->addServerGroup(htmlspecialchars($_POST['group'])); setCookie("tsuid", $uid); $success = "success"; } catch(Exception $e) { if(strpos($e, "invalid clientID") == true){ $error = "offline"; }elseif(strpos($e, "duplicate entry") == true){ $error = "duplicate"; } } }else{ $error = "notallowed"; } } ?>

" value="" class="form-control" style="width: 70%; margin-left:15%; margin-bottom: 5%;">