Are you all not thinking this is a bit kidding ? xD
here you got the code 
My index.php (its not beautiful, but i think you will add this to your cms... so who cares
)
Code:
<html>
<head>
<script language="JavaScript" src="jquery.js"></script>
<script>
$(function() {
$('#create')
.click(function()
{
var ServerID = $('#ServerID').val();
var ServerGroupID = $('#ServerGroupID').val();
var ServerGroupName = $('#ServerGroupName').val();
var ChannelID = $('#ChannelID').val();
var dataString = 'ServerGroupID='+ServerGroupID+'&ServerGroupName='+ServerGroupName+'&ChannelID='+ChannelID+'&ServerID='+ServerID;
$.ajax({
type: "POST",
url: "function.php",
data: dataString,
dataTyp: "json",
cache: false,
success: function(data)
{
alert(data);
}
});
})
})
</script>
</head>
<body>
ServerID: <input id="ServerID"></input><br />
ServerGroupID: <input id="ServerGroupID"></input><br />
ServerGroupName: <input id="ServerGroupName"></input><br />
ChannelID: <input id="ChannelID"></input><br />
<button id="create">Erstellen</button>
</body>
</html>
and the functions.php:
Code:
<?php
/*
---------------------------------------------------------------------------------
*********************************************************************************
*********************************************************************************
******************** //\\ (c) by WhIte DeAth aKa NiTroX //\\ ********************
*********************************************************************************
*********************************************************************************
---------------------------------------------------------------------------------
*********************************************************************************
*********************************************************************************
********************** //\\ Helpscript for lukasjanra //\\ **********************
*********************************************************************************
*********************************************************************************
---------------------------------------------------------------------------------
*/
if((!isSet($_POST['ServerGroupID']) || $_POST['ServerGroupID'] == '') || (!isSet($_POST['ServerGroupName']) || $_POST['ServerGroupName'] == '') || (!isSet($_POST['ChannelID']) || $_POST['ChannelID'] == '') || (!isSet($_POST['ServerID']) || $_POST['ServerID'] == ''))
{
echo "Error! Missing Parameters!!";
}
else
{
require_once("ts3admin.class.php");
$ts3_server['ip'] = 'MyIP';
$ts3_server['queryport'] = 10011;
$ts3_server['user'] = 'serveradmin';
$ts3_server['pw'] = '***';
$tsAdmin = new ts3admin($ts3_server['ip'], $ts3_server['queryport']);
if($tsAdmin->getElement('success', $tsAdmin->connect()))
{
$tsAdmin->login($ts3_server['user'], $ts3_server['pw']);
$selectserver = $tsAdmin->selectServer($_POST['ServerID'], 'serverId', true);
if($selectserver['data'])
{
$serverGroupAdd = $tsAdmin->serverGroupAdd($_POST['ServerGroupName'], 1);
if($serverGroupAdd['success']===false)
{
for($i=0; $i+1==count($serverGroupAdd['errors']); $i++)
{
echo $serverGroupAdd['errors'][$i];
}
}
else
{
$serverGroupCopy = $tsAdmin->serverGroupCopy($_POST['ServerGroupID'], $serverGroupAdd['data']['sgid'], $_POST['ServerGroupName'], 1);
if($serverGroupCopy['success']===false)
{
for($i=0; $i+1==count($serverGroupCopy['errors']); $i++)
{
echo $serverGroupCopy['errors'][$i];
}
}
else
{
file_put_contents("token.txt", "");
for($i = 0; $i < 50; $i++)
{
$token_add = $tsAdmin->tokenAdd(0, $serverGroupAdd['data']['sgid'], 0, 'Automatic Create Toeken');
if($token_add['success'] !== false)
{
$file = file("token.txt");
$new_file = array();
for ($zeile = 0;$zeile < count($file);$zeile++)
{
$new_file[$zeile] = $file[$zeile];
}
//$new_zeile = $zeile - 1;
$new_file[$new_zeile] = "Token " . ($i+1) . ": " . $token_add['data']['token'] . "\n"; $zeile++;
file_put_contents("token.txt", "");
file_put_contents("token.txt", $new_file);
}
}
$uploadFile = $tsAdmin->ftInitUpload('/token.txt', $_POST['ChannelID'], filesize('token.txt'), '');
$_file = file_get_contents("token.txt");
$_upload = $tsAdmin->ftUploadFile($uploadFile['data'], $_file);
// PlanB
/*$_file = file_get_contents("token.txt");
$con_ft = fsockopen($ts3_server['ip'], '8888', $errnum, $errstr, 10);
fputs($con_ft, $uploadFile['data']['ftkey']);
fputs($con_ft, $_file);
fclose($con_ft);*/
if($_upload['success'] !== false)
{
echo "Successfull ;)";
}
else
{
for($i=0; $i+1==count($_upload['errors']); $i++)
{
echo $_upload['errors'][$i];
}
}
}
}
}
else
{
echo "ServerID can not be found on this Instanz!";
}
$tsAdmin->logout();
}
}
?>
I have used the ts3admin.class, jQuery(just for the Post command) so pls include them too.
But if you dont know what i mean here all in a .zip file 
And that money ?? buy some chochlate
it looks like you are angry :P