<?php
/* Check if run is in the link so your link is like filename.php?run=ts3 */
if(isset($_GET['run']))
{
/* Check the value from run is the same as ts3 */
if($_GET['run'] == 'ts3')
{
/* Conntect user with ts server. This server is also use on your example */
header('Location: ts3server://66.150.214.9:7300');
}
/* if you have more servers */
elseif($_GET['run'] == 'server2')
{
/* Run your code */
}
/* if you have more servers */
elseif($_GET['run'] == 'server3')
{
/* Run your code */
}
/* Value from run is not the same as ts3, server2 or server3 */
else
{
/* Give error */
echo 'Server not found';
}
}
/* There is no run in the link found */
else
{
/* Give a error */
echo 'Server not found';
}
?>