- Jun 9, 2016
- 277
- 111
- 107
Hello, guys, today I want to share a script to the R4P3 community, I know there a many.......
But everything is good now.
Bot Made By @Special,@MahmouD
/Functions:
Automatically get the user IP.
/Requirements:
PHP 5.5 or later.
Teamspeak3 PHP Framework
/Note:
You can make more youtube channel subscribers.... Just copy & paste.
The index.php file here:
And the youtube1.php here:
And the config here:
But everything is good now.
Bot Made By @Special,@MahmouD
/Functions:
Automatically get the user IP.
/Requirements:
PHP 5.5 or later.
Teamspeak3 PHP Framework
/Note:
You can make more youtube channel subscribers.... Just copy & paste.
The index.php file here:
PHP:
<?php[/B][/B]
[B][B]require_once("libraries/TeamSpeak3/TeamSpeak3.php");
require_once("config.php");
session_start();
$result = array();
$verfied = "0";
try {
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$YATQA_username.":".$YATQA_password."@".$YATQA_ip.":".$YATQA_queryport."/?server_port=".$virtualserver_port."&nickname=".$botname."");
foreach ($ts3_VirtualServer->clientList() as $cl) {
if ($cl->getProperty('connection_client_ip') == $_SERVER['REMOTE_ADDR']) {
$result[] = $cl->client_nickname;
$client_info = $cl;
$verfied++;
$unid = $client_info["client_unique_identifier"];
$nickname = $client_info["client_nickname"];
$_SESSION['client_uid'] = $unid;
$client_uid = $unid;
$_SESSION['client_db'] = $client["client_database_id"];
}
}
}
catch (Exception $e) {
die;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A Youtuber Bot">
<meta name="author" content="Special - Ma7mouD">
<title>YouTuber Bot</title>
</head><body>
<center>
<p><a style="color: blue;"><?php echo $nickname; ?></a>Welcome</p>
[ <font color="#d22d2d"><?php echo $client_info["client_unique_identifier"];?></font> ] : Your Verification ID:</font>
<div id="formulario">
<form method="post" action="youtube1.php">
<input class="" type="text" placeholder="Your Channel ID" size="40" name="name"><br>
<input class="btn btn-default btn-lg" type="submit" name="submit" size="5" value="Redeem The Account">
</form>
( First add Your Verification Id)<br>
( Channel->About->Description->Edit-><?php echo $unid ;?> )<br>
(2) Just write the Verification Code Into the text (Your Channel Id)<br>
( Channel ID = https://www.youtube.com/channel/(Your Channel ID Here)/about )<br>
(3) Just Click The Redeem Button<br><br><br><br>
<p>Special - Ma7mouD © 2017</center>
</div></body>
<!--/.nav-collapse -->
<!-- ========== Left Sidebar Start ========== -->
<!-- some data cut -->
<!-- Lang -->
<!-- Lang -->
<!-- ============================================================== -->
<!-- End Right content here -->
<!-- ============================================================== -->
</div>
<!-- END wrapper -->
<script>
var resizefunc = [];
</script>
<!-- jQuery -->
</body>
</html>
PHP:
<?php[/B][/B]
[B][B]# ____ _ _
# / ___| _ __ ___ ___(_) __ _| |
# \___ \| '_ \ / _ \/ __| |/ _` | |
# ___) | |_) | __/ (__| | (_| | |___
# |____/| .__/ \___|\___|_|\__,_|_____|
# |_|
# __ __ _____ ____
# | \/ | __ |___ | __ ___ ___ _ _| _ \
# | |\/| |/ _` | / / '_ ` _ \ / _ \| | | | | | |
# | | | | (_| |/ /| | | | | | (_) | |_| | |_| |
# |_| |_|\__,_/_/ |_| |_| |_|\___/ \__,_|____/
#Author : Special - Ma7mouD
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
require_once("config.php");
session_start();
$IDChannel = $_POST['name'];
$resume_time = time();
$result = array();
$verfied = "0";
try {
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$YATQA_username.":".$YATQA_password."@".$YATQA_ip.":".$YATQA_queryport."/?server_port=".$virtualserver_port."&nickname=".$botname."");
foreach ($ts3_VirtualServer->clientList() as $cl) {
if ($cl->getProperty('connection_client_ip') == $_SERVER['REMOTE_ADDR']) {
$result[] = $cl->client_nickname;
$client_verified = $cl;
$verfied++;
$unid = $client_verified["client_unique_identifier"];
$dbid = $client_verified["client_database_id"];
$_SESSION['client_uid'] = $unid;
$client_uid = $unid;
$_SESSION['client_db'] = $client["client_database_id"];
}
}
}
catch (Exception $e) {
echo 'Error Contact Admin';
die;
}
if($verfied == "0"){
}
if($verfied == "1"){
$url_yt = "https://www.googleapis.com/youtube/v3/channels?part=statistics&id=$IDChannel&key=AIzaSyBz1JN0lJnFMEusCh7eHI9D6_mhl0JHz2o";
$yt_array = file_get_contents($url_yt);
$ytcount = json_decode($yt_array, true);
$ytsubscribers = $ytcount['items'][0]['statistics']['subscriberCount'];
$url_yt = "https://www.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails&id=$IDChannel&key=AIzaSyBz1JN0lJnFMEusCh7eHI9D6_mhl0JHz2o";
$yt_array = file_get_contents($url_yt);
$ytcount = json_decode($yt_array, true);
$ytsubscriberss = $ytcount['items'][0]['snippet']['description'];
}
if ($ytsubscriberss == "$client_uid"){
if($ytsubscribers <100 && $ytsubscribers>=200){
//Here the addServerGroup function Just type what do you want.
$client_verified->addServerGroup("");
//Poke them type what do you want..
$client_verified->poke("Sucess:Verify Your account");
foreach($ts3_VirtualServer->clientList() as $ts3_client) {
if($_SERVER['REMOTE_ADDR'] == $ts3_client['connection_client_ip']) {
$nicknames[] = $ts3_client["client_nickname"];
$nickname = $ts3_client["client_nickname"];
$dbid = $ts3_client["client_database_id"];
$clid = $ts3_client["clid"];
$uid = $ts3_client["client_unique_identifier"];
}
}
$cid = $ts3_VirtualServer->channelCreate(array(
"channel_name" => "$nickname",
"channel_topic" => "$ytsubscribers",
"channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
"channel_flag_permanent" => TRUE,
"cpid" => '',
));
$ts3_client->clientGetByUid($uid)->move($cid);
$ts3_client->clientGetByUid($uid)->setChannelGroup($cid , 9);
die;
}elseif($ytsubscribers <200 && $ytsubscribers>=500){
//Here the addServerGroup function Just type what do you want.
$client_verified->addServerGroup("");
//Poke them type what do you want..
$client_verified->poke("Sucess:Verify Your account");
foreach($ts3_VirtualServer->clientList() as $ts3_client) {
if($_SERVER['REMOTE_ADDR'] == $ts3_client['connection_client_ip']) {
$nicknames[] = $ts3_client["client_nickname"];
$nickname = $ts3_client["client_nickname"];
$dbid = $ts3_client["client_database_id"];
$clid = $ts3_client["clid"];
$uid = $ts3_client["client_unique_identifier"];
}
}
$cid = $ts3_VirtualServer->channelCreate(array(
"channel_name" => "$nickname",
"channel_topic" => "$ytsubscribers",
"channel_codec" => TeamSpeak3::CODEC_OPUS_VOICE,
"channel_flag_permanent" => TRUE,
"cpid" => '',
));
$ts3_client->clientGetByUid($uid)->move($cid);
$ts3_client->clientGetByUid($uid)->setChannelGroup($cid , 9);
die;
}
else{
echo "Ops: You do not have enough number of subscribers "."$client_uid";
die;
}
}else{
echo "<center>Put Your Unique ID On the description</center>";
die;
}
PHP:
<?php[/B][/B]
[B][B]# ____ __ _
# / ___|___ _ __ / _(_) __ _
# | | / _ \| '_ \| |_| |/ _` |
# | |__| (_) | | | | _| | (_| |
# \____\___/|_| |_|_| |_|\__, |
# |___/
#Info
$YATQA_username = 'serveradmin';
$YATQA_password = '';
$YATQA_ip = '';
$YATQA_queryport = '10011';
$virtualserver_port = '9987';
$botname = 'YouTuber%20System%20['. mt_rand(0, 9).']';
?>
Last edited: