I need that the created channels were located above a spacer. Thanks.You mean to make it to a particular channel? and be bordered by spacers?
I can not write in private.Give me TeamSpeak server address in private to discuss.
I need that the created channels were located above a spacer. Thanks.
<form method="post" action="crear.php">
<div class="form-group">
<input type="text" name="name" class="form-control" placeholder="Numele canalului" required="required" pattern="[a-zA-Z]{4,22}" title="Numele trebuie sa aiba intre 4 si 22 caractere, sa nu includa simboluri sau cifre." value="">
<input type="text" name="subname" class="form-control" placeholder="Numele sub-canalului" required="required" pattern="[a-zA-Z]{4,22}" title="Trebuie să deții obligatoriu un subcanal pentru al gestiona.Numele trebuie sa aiba intre 4 si 22 caractere, sa nu includa simboluri sau cifre." value="">
<input type="text" name="ChannelPass" class="form-control" placeholder="Parola canalului" required="required" pattern="{4,22}" title="Parola canalului trebuie sa contina minimum 4 charactere." value="">
<input type="text" name="idts" class="form-control" placeholder="UniqueID-ul tau" required="required" title="UniqueID-ul trebuie sa contina un minimum de 27-28 charactere." pattern="{25,50}" value="">
</div>
<button id="signIn_1" type="submit" class="btn btn-block signin">Create your channel</button>
</form>
<select name="order">
<option value="xxx">Temp.</option>
<option value="xxx">Counter Strike 1.6</option>
</select>
<form method="post" action="crear.php">
<div class="form-group">
<input type="text" name="name" class="form-control" placeholder="Numele canalului" required="required" pattern="[a-zA-Z]{4,22}" title="Numele trebuie sa aiba intre 4 si 22 caractere, sa nu includa simboluri sau cifre." value="">
<input type="text" name="subname" class="form-control" placeholder="Numele sub-canalului" required="required" pattern="[a-zA-Z]{4,22}" title="Trebuie să deții obligatoriu un subcanal pentru al gestiona.Numele trebuie sa aiba intre 4 si 22 caractere, sa nu includa simboluri sau cifre." value="">
<input type="text" name="ChannelPass" class="form-control" placeholder="Parola canalului" required="required" pattern="{4,22}" title="Parola canalului trebuie sa contina minimum 4 charactere." value="">
<input type="text" name="idts" class="form-control" placeholder="UniqueID-ul tau" required="required" title="UniqueID-ul trebuie sa contina un minimum de 27-28 charactere." pattern="{25,50}" value="">
<select name="order" class="form-control">
<option value="">Select Your Seccion</option>
<option value="xxx">Temp.</option>
<option value="xxx">Counter Strike 1.6</option>
</select>
<button id="signIn_1" type="submit" class="btn btn-block signin">Create your channel</button>
</form>
$ChannelName = $_POST['name'];
$SubChannelName = $_POST['subname'];
$ChannelPassword = $_POST['ChannelPass'];
$SubChannelPass = $_POST['SubChannelPass'];
$idUnica = $_POST['idts'];
$ChannelName = $_POST['name'];
$SubChannelName = $_POST['subname'];
$ChannelPassword = $_POST['ChannelPass'];
$SubChannelPass = $_POST['SubChannelPass'];
$idUnica = $_POST['idts'];
$channelorder = $_POST['order'];
$sub_cid = $ts3_VirtualServer->channelCreate(array(
"channel_name" => $ChannelName,
"channel_password" => $ChannelPassword,
"channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
"channel_topic" => "Canal creat via EvDBoard",
"channel_flag_permanent" => TRUE,
"cpid" => '57',
));
$sub_cid = $ts3_VirtualServer->channelCreate(array(
"channel_name" => $ChannelName,
"channel_password" => $ChannelPassword,
"channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
"channel_topic" => "Canal creat via EvDBoard",
"channel_flag_permanent" => TRUE,
"cpid" => '57',
"channel_order" => $channelorder,
));
//////////////////////////////
$order_txt = "channel_order.txt"; //String file path
$size_txt = filesize($order_txt); // File size (how much data to read)
$heandle_txt = fopen($order_txt,"r"); // File handle
$conteude_txt = fread($heandle_txt,$tamanho_txt); // Read data from file handle
echo $conteude_txt;
fclose($heandle_txt); // Close handle
//////////////////////////////
$sub_cid = $ts3_VirtualServer->channelCreate(array(
"channel_name" => $ChannelName,
"channel_password" => $ChannelPassword,
"channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
"channel_topic" => "Canal creat via EvDBoard",
"channel_flag_permanent" => TRUE,
"cpid" => '57',
));
$sub_cid = $ts3_VirtualServer->channelCreate(array(
"channel_name" => $ChannelName,
"channel_password" => $ChannelPassword,
"channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
"channel_topic" => "Canal creat via EvDBoard",
"channel_flag_permanent" => TRUE,
"cpid" => '57',
"channel_order" => $order_txt,
));
//////////////////////////////
$order_txt = fopen("channel_order.txt", "w") or die("file channel_order.txt not exist");
fwrite($order_txt, $sub_cid);
fclose($order_txt);
//////////////////////////////
Where ?error 500
pls help dont work
Hi there, when you create a channel and its hard because the place to put password and even name of channel is wrong in caracters (4-22) but with five dont work, when you click to create it shows a white page and nothing happens , sometimes it shows error 500.Where ?
Hi escuderoKevin, it doesnt work for me, when i try to create channel it gives a white page sometimes or error 500 without doing nothing. I also put the files with 777 perms, and the camp "name channel" or "sub channel" ask for 4-22 caracteres, but if i put 5 caracteres or a name with a number it doesnt accept.
Ty for the sharing
ITs the crear yesBut the problem its in crear.php or other ?
POST IT ! xdmy crear.php dont work :/