Advertisement
PAR4NA

create

Aug 24th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.37 KB | None | 0 0
  1. <?php
  2. $nickdoboot = rand(0, 99);
  3. $espaco = rand(0, 99999);
  4. //error_reporting(E_ALL);
  5. //ini_set('display_errors', 1);
  6. require_once("libraries/TeamSpeak3/TeamSpeak3.php");
  7. if($_COOKIE["config90909982930461"]==""){
  8. $ts3_VirtualServer = TeamSpeak3::factory("serverquery://XXXX:XXXX@XXXX:XXXX/?server_port=9987&nickname=www.CLANPUTOS.com_Canal$nickdoboot");
  9. $grupo_do_ca = 89;
  10.  
  11. $nome_canal        = $_POST['canal'];
  12. $pass_canal        = $_POST['senha'];
  13.  
  14.  
  15.  
  16. $top_cid = $ts3_VirtualServer->channelCreate(array(
  17.     "channel_name"          => "[cspacer]$nome_canal",
  18.     "channel_topic"             => "ESSE CANAL SERÁ APAGADO SE FICAR INATIVO POR MAIS DE 10 DIAS",
  19.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  20.     "channel_codec_quality"  => 0x08,
  21.     "channel_flag_permanent" => TRUE,
  22.     "channel_password" => "$pass_canal",
  23.     "channel_flag_maxclients_unlimited" => 0,
  24.     "channel_order"          => 4400,
  25. ));
  26.  
  27. $sub_cid = $ts3_VirtualServer->channelCreate(array(
  28.     "channel_name" => "Sala 1",
  29.     "channel_topic" => "ESSE CANAL SERÁ APAGADO SE FICAR INATIVO POR MAIS DE 10 DIAS",
  30.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  31.     "channel_flag_permanent" => TRUE,
  32.     "channel_password" => "$pass_canal",
  33.     "cpid"                  => $top_cid,
  34. ));
  35.  
  36. $sub_cid = $ts3_VirtualServer->channelCreate(array(
  37.     "channel_name" => "Sala 2",
  38.     "channel_topic" => "ESSE CANAL SERÁ APAGADO SE FICAR INATIVO POR MAIS DE 10 DIAS",
  39.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  40.     "channel_flag_permanent" => TRUE,
  41.     "channel_password" => "$pass_canal",
  42.     "cpid"                  => $top_cid,
  43. ));
  44.  
  45. $sub_cid = $ts3_VirtualServer->channelCreate(array(
  46.     "channel_name" => "Sala 3",
  47.     "channel_topic" => "ESSE CANAL SERÁ APAGADO SE FICAR INATIVO POR MAIS DE 10 DIAS",
  48.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  49.     "channel_flag_permanent" => TRUE,
  50.     "channel_password" => "$pass_canal",
  51.     "cpid"                  => $top_cid,
  52. ));
  53.  
  54. $sub_cid = $ts3_VirtualServer->channelCreate(array(
  55.     "channel_name" => "Sala 4",
  56.     "channel_topic" => "ESSE CANAL SERÁ APAGADO SE FICAR INATIVO POR MAIS DE 10 DIAS",
  57.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  58.     "channel_flag_permanent" => TRUE,
  59.     "channel_password"      => "$pass_canal",
  60.     "cpid"                  => $top_cid,
  61. ));
  62.  
  63. $sub_cid = $ts3_VirtualServer->channelCreate(array(
  64.     "channel_name" => "AFK",
  65.     "channel_topic" => "ESSE CANAL SERÁ APAGADO SE FICAR INATIVO POR MAIS DE 10 DIAS",
  66.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  67.     "channel_flag_permanent" => TRUE,
  68.     "cpid"                  => $top_cid,
  69. ));
  70.  
  71. setcookie('config90909982930461', '1', (time() + (3 * 24 * 3600)));
  72.  
  73. foreach($ts3_VirtualServer->clientList() as $client) {
  74.     if($_SERVER['REMOTE_ADDR'] == $client['connection_client_ip']) {
  75.         $ts3_VirtualServer->clientGetById($client['clid'])->setChannelGroup($top_cid, $grupo_do_ca);
  76.         break;
  77.     }
  78. }
  79.  
  80. $top_cid = $ts3_VirtualServer->channelCreate(array(
  81.     "channel_name"          => "[*spacer$espaco]▂",
  82.     "channel_topic"         => "DIVISAO",
  83.     "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
  84.     "channel_codec_quality"  => 0x08,
  85.     "channel_flag_permanent" => TRUE,
  86.     'channel_flag_maxclients_unlimited' => 0,
  87.     "channel_order"          => 4400,
  88. ));
  89.  
  90. header("Location: index.php?op=1");
  91. }
  92. else
  93. {
  94. header("Location: index.php?op=2");
  95. }
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement