Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set('display_errors',1);
- require_once("src/ts3admin.class.php");
- /*-------SETTINGS-------*/
- $ts3_ip = '137.74.6.215';
- $ts3_queryport = 10011;
- $ts3_user = 'serveradmin';
- $ts3_pass = '';
- $ts3_port = 9987;
- $ts3_botname = 'Strona';
- $ts3_defaultchannel = 0;
- /*----------------------*/
- #build a new ts3admin object
- $tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
- if($tsAdmin->getElement('success', $tsAdmin->connect())) {
- $tsAdmin->login($ts3_user, $ts3_pass);
- $tsAdmin->selectServer($ts3_port);
- $tsAdmin->setName($ts3_botname);
- $whoAmI = $tsAdmin->whoAmI();
- $whoAmI_ID = $whoAmI['data']['client_id'];
- $tsAdmin->clientMove($whoAmI_ID, $ts3_defaultchannel);
- $serverInfo = $tsAdmin->serverList();
- echo "Tu coś będzie";
- ?>
- Error:
- 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