I know later is good :P But the release dely was im rewrite the Status server Base for the future (Im want to use the Status Server features for more then one option) like for remote administration or something :P One moment you can connect to the status server over telenet or web script base... To get the new KOSP version used the KOSP Automatic Updater ;)
The configuration option:
Code:
# Status Server (Default false)
StatusServer = false
StatusServerUser = admin
StatusServerPassword = admin
StatusServerHost = 127.0.0.1
StatusServerPort = 20001
If you want to used the Status Server for Server information on your website or something then set the option "StatusServer" to true...
Follow Status Server commands are available:
Code:
player_list show all player with name
gm_list show all gms with name
player_online show how many player are online
gm_online show how many gms are online
Here is a php example:
PHP Code:
<?php
function Send_KOSP_command($cmd)
{
$host = "127.0.0.1";
$port = 20001;
$user = "admin";
$pass = "admin";
$fp = @fsockopen($host, $port);
if($fp)
{
// Send login
fwrite($fp,"login $user $pass\r");
// Set mode
fwrite($fp,"mode web\r");
// Send command
fwrite($fp, "$cmd\r");
while(!feof($fp))
$result .= fread ($fp, 1024);
fclose($fp);
return $result;
}
return NULL;
}
$Status = Send_KOSP_command("status");
if($Status)
{
$PlayerOnline = Send_KOSP_command("player_online");
$GMOnline = Send_KOSP_command("gm_online");
$PlayerList = Send_KOSP_command("player_list");
$GMList = Send_KOSP_command("gm_list");
echo "Player Online: $PlayerOnline<br>";
echo "Player List: $PlayerList<br><br>";
echo "GM Online: $GMOnline<br>";
echo "GM List: $GMList";
}
else
{
echo "<font color=red>Offline</font>";
}
?>
Have fun :D
MFG
AyleN