Simple & Clean Server Creator [Web]

$port = rand(12000,13000); -> Perfect.

---- Automatically Merged Double Post ----

$create_array = [

"virtualserver_name" => $servername,

"virtualserver_maxclients" => $slots,

"virtualserver_name_phonetic" => $realTime,

"virtualserver_hostbutton_tooltip" => "My Company",

"virtualserver_hostbutton_url" => "http://www.example.com",

"virtualserver_hostbutton_gfx_url" => "http://www.example.com/buttons/button01_24x24.jpg",
];

Dont put PORT VALUE and TS3 automatic do RANDOM port.


if($port){
$create_array = [

"virtualserver_name" => $servername,

"virtualserver_maxclients" => $slots,

"virtualserver_name_phonetic" => $realTime,

"virtualserver_port" => $port,

"virtualserver_hostbutton_tooltip" => "My Company",

"virtualserver_hostbutton_url" => "http://www.example.com",

"virtualserver_hostbutton_gfx_url" => "http://www.example.com/buttons/button01_24x24.jpg",
]; }
else{
$create_array = [

"virtualserver_name" => $servername,

"virtualserver_maxclients" => $slots,

"virtualserver_name_phonetic" => $realTime,

"virtualserver_hostbutton_tooltip" => "My Company",

"virtualserver_hostbutton_url" => "http://www.example.com",

"virtualserver_hostbutton_gfx_url" => "http://www.example.com/buttons/button01_24x24.jpg",
];
}
 
Last edited:
Thanks you! you both! :D @kalle & @EscuderoKevin

One question about the ts3server connect (of link)

---- Automatically Merged Double Post ----

for this.

ts3server://127.0.0.1?port=".$port."&token=".$token."

EX:
PHP:
        $port= $nsv['virtualserver_port'];
        $token = $nsv['token'];
        $link = "ts3server://127.0.0.1?port=".$port."&token=".$token."";

Then in button you need do that

<a href="<?php echo $link ?>" style="text-decoration: none;"><div style="width:200px; height:30px; border-radius:10px; background-color:#a00;"><font color="#fff" style="font-size:15px;" face="ShikFont">connect</font></div></a>
-- Where can this be placed?
I did try this:
Code:
<?php
        $port= $nsv['virtualserver_port'];
        $token = $nsv['token'];
        $link = "ts3server://127.0.0.1?port=".$port."&token=".$token."";
<?
But seems wrongly.
 
Last edited:
Hi guys!

I have a short question, about PHP, when I try to load in the site, it says "<my ip> is currently unable to handle this request.HTTP ERROR 500"

What can I do? :)
 

Top Bottom