- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtool.php
More file actions
Latest commit
21 lines (21 loc) · 375 Bytes
/
Copy pathtool.php
File metadata and controls
21 lines (21 loc) · 375 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
include("api.php");
error_reporting(E_ERROR);
/*
This is a simple ClientQuery Tool
*/
$ts3query = teamspeak_socket_init();
while(1){
$cmd = trim(fgets(STDIN));
if($cmd == "close"){
break;
}
$line = teamspeak_socket_send($ts3query,$cmd);
while(get_teamspeak_status($line) == null){
echo$line;
$line = fgets($ts3query);
}
echo$line;
}
fclose($ts3query);
?>