[Script] Create Channel with Web

Mr-Malone

You risk and you will win
Sep 11, 2015
69
25
108
Nume : Create Channels with WebSite
Platform : PHP
Version : 0.4.2
Functions : = Create Channels with password
= Tutorial on finding the site with Uniq-ID
= Rules about using Platform
I modified this script and I launched in beta because majority of the members who want such a script. And I looked on many websites but nothing, and so we released a script also up .. wait any questions or if you encountered bugs.
Screenshots :
Z9MkwVY.png

7930nVc.png

Xar84Gx.png
Link Download :
Webscript site is in beta.
I need some advice, because I want to implement a system to stop spam so that a channel be allowed a uniqid. And the script to be used only if the member has a certain group on the server. Wait a little help.
Thank you . r4p3
 

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
I recommend you get directly the customer ID automatically for the IP, as they are sometimes means "Fool" xd

PHP:
    function getClientIp() {
        if (!empty($_SERVER['HTTP_CLIENT_IP']))
            return $_SERVER['HTTP_CLIENT_IP'];
        else if(!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
            return $_SERVER['HTTP_X_FORWARDED_FOR'];
        else if(!empty($_SERVER['HTTP_X_FORWARDED']))
            return $_SERVER['HTTP_X_FORWARDED'];
        else if(!empty($_SERVER['HTTP_FORWARDED_FOR']))
            return $_SERVER['HTTP_FORWARDED_FOR'];
        else if(!empty($_SERVER['HTTP_FORWARDED']))
            return $_SERVER['HTTP_FORWARDED'];
        else if(!empty($_SERVER['REMOTE_ADDR']))
            return $_SERVER['REMOTE_ADDR'];
        else
            return false;
    }
    $connect = "serverquery://".$USER_QUERY.":".$PASS_QUERY."@".$HOST_QUERY.":".$PORT_QUERY."/?server_port=".$SERVER_PORT."";
    $ts3 = TeamSpeak3::factory($connect);
    $ts3->execute("clientupdate", array("client_nickname" => $NICK_QUERY));

   
    foreach ($ts3->clientList(array('client_type' => '0', 'connection_client_ip' => getClientIp())) as $client) {
        $clientuid = $client->client_unique_identifier;
        break;
    }
    if (!$FLAG){
        echo "<p><b>".$lang['f_connectts'].".</b></p><br/>";
        header("refresh: 10; url = ./");
        die;   
    }
?>

Thanks for share bro ! ♥
 

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
PHP:
if(!isset($_SESSION['ts3_last_query']))
    $_SESSION['ts3_last_query'] = microtime(true);

if($_SESSION['ts3_last_query'] >= microtime(true))
    die('You Need Wait 10 Seconds For Create Channel Again.');

$_SESSION['ts3_last_query'] = microtime(true)+10.0;

And i use that for "Block Spam" -.-

Put that in your ".php" when exec query for create channel.
 

MahmouD

Member
Feb 11, 2016
77
5
56
PHP:
<?php
require_once ("TeamSpeak3.php");
include ('config.php');
error_reporting(0);

$ChannelName = $_POST['name'];
$SubChannelName = $_POST['subname'];
$ChannelPassword = $_POST['ChannelPass'];
$SubChannelPass = $_POST['SubChannelPass'];
$idUnica = $_POST['idts'];

if (!$ChannelName || !$idUnica) {
    echo "Introduceti ambele detalii Numele Canalului dar și UniqId-ul";
    exit();
}

$ts3_VirtualServer = TeamSpeak3::factory("serverquery://" . $UserAdmin . ":" . $PWQuery . "@" . $IP_TS . ":" . $PuertoQuery . "/?server_port=" .  $PuertoTS . "&blocking=0&nickname=" . $nickname . "");
$ListaDeChannels = $ts3_VirtualServer->request("channellist")->toString();

if (strpos($ListaDeChannels, $ChannelName)) {
    echo "Acest canal există deja!";
    exit();
}
$clID = $ts3_VirtualServer->clientGetByUid($idUnica);
$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"                   => '252',
));
$sub2_cid = $ts3_VirtualServer->channelCreate(array(
    "channel_name" => $SubChannelName,
    "channel_password" => $ChannelPassword,
    "channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
    "channel_topic" => "Canal creat via EvDBoard",
    "channel_flag_permanent" => TRUE,
    "cpid"                   => $sub_cid,
));
$clID = $ts3_VirtualServer->clientGetByUid($idUnica);
$infoCliente = $ts3_VirtualServer->execute("clientgetnamefromuid", array(
    "cluid" => $idUnica
))->toList();
$cldbid = strval($infoCliente['cldbid']);
$ts3_VirtualServer->execute("clientmove", array(
    "clid" => $clID,
    "cid" => $sub_cid
));
$ts3_VirtualServer->execute("setclientchannelgroup", array(
    "cldbid" => $cldbid,
    "cid" => $sub_cid,
    "cgid" => '252'
));
echo "Felicitări canalul tău a fost creat ! Ședere plăcută în continuare !";
?>
@AnonymousSV
 

Pain

Member
Feb 20, 2016
102
17
53
English-only
não funcionou

yXj4TDs.png


[QUOTE = "AnonymousSV, post: 12911, membro: 519"] Senha: r4p3.net
[USER = 6227] @MahmouD [/ USUÁRIO] por favor diga-me problema na PM com tela dile crear.cfg [/ QUOTE]
*REMOVED*
 
Last edited by a moderator:

Pim

Member
Sep 27, 2015
71
9
43
Finally someone shared this thing.. anw, if you dont mind will you create a captcha for this? coz i really love to protect it against bot from spam creating :).
 

panteL

Restricted
Mar 17, 2016
146
44
63
não funcionou

yXj4TDs.png


[QUOTE = "AnonymousSV, post: 12911, membro: 519"] Senha: r4p3.net
[USER = 6227] @MahmouD [/ USUÁRIO] por favor diga-me problema na PM com tela dile crear.cfg [/ QUOTE]
suporte.ts3line.net
you need to add one line in the crear.cfg
session_start();
if you add this you can use the full script :)
@AnonymousSV if u want i can upload a translated version (in german and in shitty english aswell :D)
 

panteL

Restricted
Mar 17, 2016
146
44
63
i write a message to @AnonymousSV , if he like my work you guys have a translated script (german and english) with some new features :D
Message Screen:
06674182b5.png
 

panteL

Restricted
Mar 17, 2016
146
44
63
You are conected in ts3 ?, i wil test.
Yes I am..
Test it dude :D and I don't understand, when I copy the same crear.php like u, I see only a white page but when I past ur original I see the page with some Romanian words... I don't understand..
 
Top