Resource icon

Simple & Clean Channel Creator. [Web] 2017-06-26

No permission to download

TheSpartaPT

Member
Jul 17, 2016
10
0
36
It Gives me this error :/ i don't get it
Notice: Undefined variable: lang in C:\xampp\htdocs\channelcreator\index.php on line 46

.
I'm probably doing something wrong
 

Umar

Member
Jun 18, 2016
65
8
40
It Gives me this error :/ i don't get it
Notice: Undefined variable: lang in C:\xampp\htdocs\channelcreator\index.php on line 46

.
I'm probably doing something wrong
go to index.php and check line 46 there is something worrng there
 

TheSpartaPT

Member
Jul 17, 2016
10
0
36
i don't think so cuz i didn't even mess with it but i'll post the line 46 here :

PHP:
    if (!$FLAG){
        echo "<p><b>".$lang['f_connectts'].".</b></p><br/>";  <-- line 46
        header("refresh: 10; url = ./");
        die;
    }
 
Last edited:

TheSpartaPT

Member
Jul 17, 2016
10
0
36
yeah i was testing on localhost because i'm not going to use this web script i'm taking ideas from it so i could build one myself, is that the problem ? if it is it doesn't even matter because the server runs on linux :/
 

Magic

Member
Oct 23, 2015
59
9
40
If someone like me wants to make as last in order and as SUBCHANNEL, change this
Line 66
Code:
 "channel_order" => "$order"));
to
Code:
 "cpid" => "$order"));

and in $order in config put the id of the header they will be subbed under.
 

Sempz

Member
May 14, 2016
23
2
35
hi , i have this :
Code:
<?php
    if(!isset($_SESSION['ts3_last_query']))
    $_SESSION['ts3_last_query'] = microtime(true);

    if($_SESSION['ts3_last_query'] >= microtime(true))
    die('Tens de esperar 10 segundos para criar outro canal!');

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

    date_default_timezone_set('Portugal'); //Change Here!
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    include 'data/config.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));
    $FLAG = false;

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

    if (isset($_POST["create"])) {

        $channelname = $_POST['channelname'];
    $subchannelname = $_POST['subchannelname'];
        $password = $_POST['password'];
        $unixTime = time();
        $realTime = date('[Y-m-d]-[H:i]',$unixTime);
        $channel_admin_group = 5;

        try
        {
            $cid1 = $ts3->channelCreate(array(
            "channel_name" => "$channelname",
            "channel_password" => "$password",
            "channel_flag_permanent" => "1",
            "channel_description" => '[center][b][u]'.$channelname.'[/u][/b][/center][hr][b][list][*]Data: '.$realTime.'[*]Dono da sala: ' . $client_nickname . '[/list][/b]',
            "cpid" => $cid,
       "channel_order" => "$order"
    ));
       $sub_cid = $ts3->channelCreate(array(
       "channel_name" => "$subchannelname",
       "channel_password" => "$password",
       "channel_flag_permanent" => TRUE,
       "cpid" => $cid1,
    ));
     
            $ts3->clientGetByUid($clientuid)->setChannelGroup($cid1, $channel_admin_group);
            $ts3->clientMove($client_clid, $cid1);
     
        }
        catch(Exception $e)
        {
            echo "Error (ID " . $e->getCode() . ") <b>" . $e->getMessage() . "</b>";
        }
    }
?>
<!DOCTYPE html>
<html lang="en" class="no-js">
    <head>
        <meta charset="UTF-8" />
        <title>NEW-SENSE</title>
        <link rel="stylesheet" type="text/css" href="css/demo.css" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <link rel="stylesheet" type="text/css" href="css/animate-custom.css" />
    </head>
    <body>
        <div class="container">
            <header>
                <h1>Cria a tua sala<span> Permanente</span></h1>
            </header>
            <section>        
                <div id="container_demo" >
                    <div id="wrapper">
                        <div id="login" class="animate form">
                            <form  method="post" autocomplete="on">
                                <h1>Settings</h1>
                                <p>
                                    <label  class="uname" data-icon="u" > Ola, <?php echo $client_nickname; ?></label>
                                    <input  readonly type="text" value="<?php echo $clientuid; ?>"/>
                                </p>
                                <p>
                                    <label  class="uname" data-icon="u" > Nome do Canal </label>
                                    <input  name="channelname" required="required" type="text" placeholder="My Super Channel."/>
                                </p>
                <p>
                                    <label  class="uname" data-icon="u" > Nome do Sub-Canal </label>
                                    <input  name="subchannelname" required="required" type="text" placeholder="My sub Super Channel."/>
                                </p>
                                <p>
                                    <label class="youpasswd" data-icon="p"> Passwords dos canais</label>
                                    <input name="password" required="required" type="text" placeholder="eg. X8df!90EO" />
                                </p>
                                <p class="login button">
                                    <input type="submit" name="create" value="Criar Canais!" />
                                </p>
                            </form>
                            <?php echo $client_clid; ?></br>
                        </div>
                 
                    </div>
                </div>
            </section>
        </div>
    </body>
</html>
I would like to have a random [*spacerRANDOM]▃ i did the subchannel but i cant do the random spacer :( Help pls
 

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
hi , i have this :
Code:
<?php
    if(!isset($_SESSION['ts3_last_query']))
    $_SESSION['ts3_last_query'] = microtime(true);

    if($_SESSION['ts3_last_query'] >= microtime(true))
    die('Tens de esperar 10 segundos para criar outro canal!');

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

    date_default_timezone_set('Portugal'); //Change Here!
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    include 'data/config.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));
    $FLAG = false;

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

    if (isset($_POST["create"])) {

        $channelname = $_POST['channelname'];
    $subchannelname = $_POST['subchannelname'];
        $password = $_POST['password'];
        $unixTime = time();
        $realTime = date('[Y-m-d]-[H:i]',$unixTime);
        $channel_admin_group = 5;

        try
        {
            $cid1 = $ts3->channelCreate(array(
            "channel_name" => "$channelname",
            "channel_password" => "$password",
            "channel_flag_permanent" => "1",
            "channel_description" => '[center][b][u]'.$channelname.'[/u][/b][/center][hr][b][list][*]Data: '.$realTime.'[*]Dono da sala: ' . $client_nickname . '[/list][/b]',
            "cpid" => $cid,
       "channel_order" => "$order"
    ));
       $sub_cid = $ts3->channelCreate(array(
       "channel_name" => "$subchannelname",
       "channel_password" => "$password",
       "channel_flag_permanent" => TRUE,
       "cpid" => $cid1,
    ));
    
            $ts3->clientGetByUid($clientuid)->setChannelGroup($cid1, $channel_admin_group);
            $ts3->clientMove($client_clid, $cid1);
    
        }
        catch(Exception $e)
        {
            echo "Error (ID " . $e->getCode() . ") <b>" . $e->getMessage() . "</b>";
        }
    }
?>
<!DOCTYPE html>
<html lang="en" class="no-js">
    <head>
        <meta charset="UTF-8" />
        <title>NEW-SENSE</title>
        <link rel="stylesheet" type="text/css" href="css/demo.css" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <link rel="stylesheet" type="text/css" href="css/animate-custom.css" />
    </head>
    <body>
        <div class="container">
            <header>
                <h1>Cria a tua sala<span> Permanente</span></h1>
            </header>
            <section>       
                <div id="container_demo" >
                    <div id="wrapper">
                        <div id="login" class="animate form">
                            <form  method="post" autocomplete="on">
                                <h1>Settings</h1>
                                <p>
                                    <label  class="uname" data-icon="u" > Ola, <?php echo $client_nickname; ?></label>
                                    <input  readonly type="text" value="<?php echo $clientuid; ?>"/>
                                </p>
                                <p>
                                    <label  class="uname" data-icon="u" > Nome do Canal </label>
                                    <input  name="channelname" required="required" type="text" placeholder="My Super Channel."/>
                                </p>
                <p>
                                    <label  class="uname" data-icon="u" > Nome do Sub-Canal </label>
                                    <input  name="subchannelname" required="required" type="text" placeholder="My sub Super Channel."/>
                                </p>
                                <p>
                                    <label class="youpasswd" data-icon="p"> Passwords dos canais</label>
                                    <input name="password" required="required" type="text" placeholder="eg. X8df!90EO" />
                                </p>
                                <p class="login button">
                                    <input type="submit" name="create" value="Criar Canais!" />
                                </p>
                            </form>
                            <?php echo $client_clid; ?></br>
                        </div>
                
                    </div>
                </div>
            </section>
        </div>
    </body>
</html>
I would like to have a random [*spacerRANDOM]▃ i did the subchannel but i cant do the random spacer :( Help pls


Give me in Screen. What do you like...
 

Sempz

Member
May 14, 2016
23
2
35
jyGGr
http://imgur.com/a/jyGGr

I hope you understand :C
 
Last edited by a moderator:

Sempz

Member
May 14, 2016
23
2
35
Code:
try
        {
       $cid = $ts3->channelCreate(array(
            "channel_name" => "[*spacer$randomnumbers]▃",
            "channel_password" => "$password",
            "channel_flag_permanent" => "1",
       "channel_order" => "$order"
    ));
 

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
Code:
try
        {
       $cid = $ts3->channelCreate(array(
            "channel_name" => "[*spacer$randomnumbers]▃",
            "channel_password" => "$password",
            "channel_flag_permanent" => "1",
       "channel_order" => "$order"
    ));

Wat ? xd

Example:

PHP:
$cid1 = $ts3->channelCreate(array(
"channel_name" => "$channelname",
"channel_password" => "$password",
"channel_flag_permanent" => "1",
"channel_description" => '[center][b][u]'.$channelname.'[/u][/b][/center][hr][b][list][*]Data: '.$realTime.'[*]Dono da sala: ' . $client_nickname . '[/list][/b]',
"channel_order" => "$order"
));
$sub_cid = $ts3->channelCreate(array(
"channel_name" => "$subchannelname",
"channel_password" => "$password",
"channel_flag_permanent" => TRUE,
"cpid" => $cid1,
));
$random = mt_rand(0,10000)
$sub_cid = $ts3->channelCreate(array(
"channel_name" =>  [*spacer$random]*,
"channel_password" => "$password",
"channel_flag_permanent" => TRUE,
"cpid" => $cid1,
));
 

Junichirou

Member
Sep 22, 2015
4
0
56
greetings, series possible to make a counter for example from 1 to 1000 when they are created channels
 
U

User_2092

Could you make a Anti Spam so if somebody already have a Channel (ore is in a specified channelgroup id, that is gone be added after creating the channel) that he is not possible to creat a another channel. Only if he loses his channel (the specified channelgroup id).

Would be nice if you could do that!
 

KELAZEDZN

Member
Mar 23, 2016
18
3
38
Guys.. I hope its okay to say this... if u want a other PHP Version of this, i can give u these, its from Bluescream, edited: Kelaze, und re-edit from me.

There are 2, Download Options for you:

1. Download, only the php script for channel create.
Online for 90 Days, when 90 Days are over, than i reupload it!
Password: R4P3
DL-Link: https://workupload.com/file/P3schX7
- Channel_create_ts3_php_script.rar
Virustotal: https://www.virustotal.com/de/file/...63f34fa28be55abcbf060230f6d16771be6/analysis/

or

2. Download my Teamspeak 3 Plugins / lua Plugins Packet.
Online for 90 Days, when 90 Days are over, than i Reupload it!
Password: R4P3
DL-Link: http://workupload.com/file/CHJv8XV
- Teamspeak_Trolllz.rar
Virustotal: https://www.virustotal.com/de/file/...ac5c6ce80859f160d1ead11824e7d7cc50b/analysis/

"Teamspeak 3 Plugins / lua Plugins Packet": -*Content*-

- Teamspeak_Trollz:

Love Plugin (For following People into Channels, its not working if there is a Password)
- libtslove.dll - 32 Bit Version
- libtslove_x86.dll - 64 Bit Version
Linux:
- libtslove.so - 32 Bit Version
- libtslove_x86.so - 64 Bit Version
Last Channel Plugin (If u activate it, then u wont be KICKED from the Channel, (Again)
- last_channel_win32.dl - 32 Bit Version
- last_channel_win64.dll - 64 Bit Version
Linux:
- last_channel_linux-x86.so - 32 Bit Version
- last_channel_linux-amd64.so - 64 Bit Version
- liblastchannel.dylib - 32 & 64 Bit Version
Crosstalk (for some Audio Features in Teamspeak, right click on Channel, then click, "Crosstalk")
- crosstalk_win32.dl - 32 Bit Version
- crosstalk_win64.dll - 64 Bit Version
sk64.dll - (When u get poked, u can set up that u KICK or BAN him automatically) - 32 & 64Bit Bit Version

Lua Plugins:
advancedmasscontrolmodule - (for Mass Kick, Ban, Poke, Message, etc...) - 32 & 64Bit Bit Version
insulted - (Tipe: !insult <name>, then he is insulting him, in the "Normal Chat" - 32 & 64Bit Bit Version
NoX - (Anti "Channel-Ban") - 32 & 64Bit Bit Version
spam-poke - ( Cmon.. Its a Poke SPAMMER :3) - 32 & 64Bit Bit Version

Installation: Steps 1 - 3
1. After u Downloaded the .rar extract it to the Folder u want.
2. Cope the Content to /Teamspeak 3 Client/plugins/lua_plugins
3. Restart ur Teamspeak 3 Client, or go to Options - Plugins - click on Lua Plugin - click on Options - & Activate the Lua Plugin which u want to use. [x]
4. Go to your channel_create Folder and open the channel_create.php with php.exe

Windows: Right click on channel_create.php Open with... / Öffnen mit.... press / drücken.
Select the Folder where ur php.exe is, and open it.
Now its opening all .php script with the php.exe.
Dont move the Folder, or u have to do this again: "Right click on channel_create.php Open with... / Öffnen mit.... press / drücken.
Select the Folder where ur php.exe is, and open it."

- Simple - Easy - Welcome to Teamspeak Trollz :3 -
- For more Details, write me a PN :3 - greetings defraqq! -


Re-edit from KELAZE :3 xD
 
Top