removed ts credentials from sources

This commit is contained in:
Ulf Gebhardt 2023-11-01 18:49:19 +01:00
parent 1e7837e278
commit 31faf9c721
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,7 @@
<?php
class config_ids extends \SYSTEM\CONFIG\config_ids {
const WEBCRAFT_BILLING_TOKEN = 1000;
const WEBCRAFT_BILLING_TOKEN = 1000;
const TEAMSPEAK_HOST = 1100;
const TEAMSPEAK_QUERY_USER = 1101;
const TEAMSPEAK_QUERY_PASSWORD = 1102;
}

View File

@ -2,7 +2,10 @@
class cron_players_online_ts implements \SYSTEM\CRON\cronjob{
public static function run(){
\LIB\lib_ts3::php();
$ts3 = TeamSpeak3::factory("serverquery://mojotrollztsquery:9aYllYkG@127.0.0.1:10011/");
$ts3 = TeamSpeak3::factory('serverquery://'.
\SYSTEM\CONFIG\config::get(\config_ids::TEAMSPEAK_QUERY_USER).':'.
\SYSTEM\CONFIG\config::get(\config_ids::TEAMSPEAK_QUERY_PASSWORD).'@'.
\SYSTEM\CONFIG\config::get(\config_ids::TEAMSPEAK_HOST).':10011/');
new \LOG\PLAYER_COUNT_TS($ts3->serverGetByPort(9987)->clientCount());
}
}

View File

@ -21,7 +21,10 @@ class default_start implements \SYSTEM\PAGE\Page {
$vars['content_addons'] = '';//\SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_start/tpl/content_addons.tpl'));
\LIB\lib_ts3::php();
$ts3 = TeamSpeak3::factory("serverquery://mojotrollztsquery:9aYllYkG@127.0.0.1:10011/");
$ts3 = TeamSpeak3::factory('serverquery://'.
\SYSTEM\CONFIG\config::get(\config_ids::TEAMSPEAK_QUERY_USER).':'.
\SYSTEM\CONFIG\config::get(\config_ids::TEAMSPEAK_QUERY_PASSWORD).'@'.
\SYSTEM\CONFIG\config::get(\config_ids::TEAMSPEAK_HOST).':10011/');
$vars['ts_players'] = $ts3->serverGetByPort(9987)->clientCount();
$vars['mojotrollz_downloads'] = self::downloads();