Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. ini_set('display_errors',1);
  4. require_once("src/ts3admin.class.php");
  5. /*-------SETTINGS-------*/
  6. $ts3_ip = '137.74.6.215';
  7. $ts3_queryport = 10011;
  8. $ts3_user = 'serveradmin';
  9. $ts3_pass = '';
  10. $ts3_port = 9987;
  11. $ts3_botname = 'Strona';
  12. $ts3_defaultchannel = 0;
  13. /*----------------------*/
  14.  
  15. #build a new ts3admin object
  16. $tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
  17.  
  18. if($tsAdmin->getElement('success', $tsAdmin->connect())) {
  19.  
  20. $tsAdmin->login($ts3_user, $ts3_pass);
  21.  
  22. $tsAdmin->selectServer($ts3_port);
  23.  
  24. $tsAdmin->setName($ts3_botname);
  25.  
  26. $whoAmI = $tsAdmin->whoAmI();
  27.  
  28. $whoAmI_ID = $whoAmI['data']['client_id'];
  29.  
  30. $tsAdmin->clientMove($whoAmI_ID, $ts3_defaultchannel);
  31.  
  32. $serverInfo = $tsAdmin->serverList();
  33.  
  34. echo "Tu coś będzie";
  35. ?>
  36.  
  37. Error:
  38. Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\strona ts\index.php on line 35
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement