<?php
if(isset($_POST['submit']))
{
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
$desc = $_POST['desc'];
$ch = $_POST['ch'];
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@localhost:10011/?server_port=9987");
$ts3_VirtualServer->channelGetByName($ch)->modify(array("channel_description=$desc"));
}
?>
<form method="post">
Channel Name:<br>
<input type="number" name="ch" value="">
<br>
Description:<br>
<textarea rows="5" cols="50" name="desc" value="<?php echo ?>">
<br><br>
<input type="submit" name="submit" value="Change">
</form>
You had a small mistake in codeTry this
Code:<?php if(isset($_POST['submit'])) { require_once("libraries/TeamSpeak3/TeamSpeak3.php"); $desc = $_POST['desc']; $ch = $_POST['ch']; $ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@localhost:10011/?server_port=9987"); $ts3_VirtualServer->channelGetByName($ch)->modify(array("channel_description=$desc")); } ?> <form method="post"> Channel Name:<br> <input type="number" name="ch" value=""> <br> Description:<br> <textarea rows="5" cols="50" name="desc" value="<?php echo ?>"> <br><br> <input type="submit" name="submit" value="Change"> </form>
<?php
if(isset($_POST['submit']))
{
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
$desc = $_POST['desc'];
$ch = $_POST['ch'];
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:password@localhost:10011/?server_port=9987");
$ts3_VirtualServer->channelGetByName($ch)->modify(array("channel_description=$desc"));
}
?>
<form method="post">
Channel Name:<br>
<input type="text" name="ch" value="">
<br>
Description:<br>
<textarea rows="5" cols="50" name="desc">
<br><br>
<input type="submit" name="submit" value="Change">
</form>
I need a script that game server profile in the channel description TeamSpeak ShowTitle of Topic : Change the channel description TeamSpeak
You ask: I wanted a script that will display the channel game server profile
You want edit the description, or display the descrition on channel ?