I Make this for r4p3 -.-
Good Luck.
1. Upload Files to Webhosting.
2. Edit Config.php in data folder
3. Edit in index.php
Line 38: Id Of Channel Admin
Line 58: Channel order. (put the id here so that they are created under) -- Now ITs Edit in config.php
And Go
You need Conected to Teamspeak 3 Server to Work.
0/67 Virustotal
To Do List:
Code:
Good Luck.
1. Upload Files to Webhosting.
2. Edit Config.php in data folder
3. Edit in index.php
Line 38: Id Of Channel Admin
Line 58: Channel order. (put the id here so that they are created under) -- Now ITs Edit in config.php
And Go
You need Conected to Teamspeak 3 Server to Work.
0/67 Virustotal
To Do List:
- Add reCAPTCHA Verification
Channel Description:
Channel Created, Channel Admin + Automove.
Channel Created, Channel Admin + Automove.
index.php
Config.php
PHP:
<?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 To Create Channel Again');
$_SESSION['ts3_last_query'] = microtime(true)+10.0;
date_default_timezone_set('America/Argentina/Buenos_Aires'); //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'];
$password = $_POST['password'];
$unixTime = time();
$realTime = date('[Y-m-d]-[H:i]',$unixTime);
$channel_admin_group = 323;
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][*]Date: '.$realTime.'[*]Owner: ' . $client_nickname . '[/list][/b]',
"channel_order" => "$order"));
$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>Simple Channel Create</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>Simple Channel<span> Creator</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" > Hola, <?php echo $client_nickname; ?></label>
<input readonly type="text" value="<?php echo $clientuid; ?>"/>
</p>
<p>
<label class="uname" data-icon="u" > Channel Name </label>
<input name="channelname" required="required" type="text" placeholder="My Super Channel."/>
</p>
<p>
<label class="youpasswd" data-icon="p"> Channel Password</label>
<input name="password" required="required" type="text" placeholder="eg. X8df!90EO" />
</p>
<p class="login button">
<input type="submit" name="create" value="Create!" />
</p>
</form>
<?php echo $client_clid; ?></br>
</div>
</div>
</div>
</section>
</div>
</body>
</html>
Config.php
PHP:
<?php
$HOST_QUERY = "xxxxxt";
$PORT_QUERY = "10011";
$USER_QUERY = "xxxxxxx";
$PASS_QUERY = "xxxxxx";
$SERVER_PORT = "xxxxx";
$NICK_QUERY = "xxxxxxx";
$order = "6927";
?>