release 1.3.12

This commit is contained in:
Newcomer1989
2020-09-22 18:56:47 +02:00
parent 3ab200784d
commit 3a333716a2
54 changed files with 845 additions and 1195 deletions

View File

@@ -1,6 +1,6 @@
<?PHP
require_once('other/config.php');
$rsversion = '1.3.11';
$rsversion = '1.3.12';
?>
<!DOCTYPE html>
<html>
@@ -293,7 +293,7 @@ if(isset($_POST['confweb'])) {
$nextupinfomsg3 = $mysqlcon->quote("You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server.");
$servernews = $mysqlcon->quote("<strong>Message</strong><br>This is an example Message.<br>Change this Message inside the webinterface.");
$rankupmsg = $mysqlcon->quote('Hey, you reached a higher rank, since you already connected for %1$s days, %2$s hours and %3$s minutes to our TS3 server.[B]Keep it up![/B] ;-) ');
if($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('default_date_format', $dateformat), ('default_language', 'en'), ('logs_path', '{$logpath}'), ('logs_timezone', 'Europe/Berlin'), ('logs_debug_level', '5'), ('logs_rotation_size', '5'), ('rankup_boost_definition', ''), ('rankup_clean_clients_period', '86400'), ('rankup_clean_clients_switch', '1'), ('rankup_client_database_id_change_switch', '0'), ('rankup_definition', '31536000=>7'), ('rankup_excepted_channel_id_list', ''), ('rankup_excepted_group_id_list', ''), ('rankup_excepted_mode', '0'), ('rankup_excepted_unique_client_id_list', ''), ('rankup_hash_ip_addresses_mode', '2'), ('rankup_ignore_idle_time', '600'), ('rankup_message_to_user', $rankupmsg), ('rankup_message_to_user_switch', '1'), ('rankup_next_message_1', $nextupinfomsg1), ('rankup_next_message_2', $nextupinfomsg2), ('rankup_next_message_3', $nextupinfomsg3), ('rankup_next_message_mode', '1'), ('rankup_time_assess_mode', '0'), ('stats_api_keys', ''), ('stats_column_active_time_switch', '0'), ('stats_column_current_group_since_switch', '1'), ('stats_column_current_server_group_switch', '1'), ('stats_column_client_db_id_switch', '0'), ('stats_column_client_name_switch', '1'), ('stats_column_idle_time_switch', '1'), ('stats_column_last_seen_switch', '1'), ('stats_column_next_rankup_switch', '1'), ('stats_column_next_server_group_switch', '1'), ('stats_column_online_time_switch', '1'), ('stats_column_rank_switch', '1'), ('stats_column_unique_id_switch', '0'), ('stats_column_default_sort', 'rank'), ('stats_column_default_order', 'asc'), ('stats_server_news', $servernews), ('stats_show_clients_in_highest_rank_switch', '1'), ('stats_show_excepted_clients_switch', '1'), ('stats_show_maxclientsline_switch', 0), ('stats_show_site_navigation_switch', '1'), ('stats_time_bronze','50'), ('stats_time_silver','100'), ('stats_time_gold','250'), ('stats_time_legend','500'), ('stats_connects_bronze','50'), ('stats_connects_silver','100'), ('stats_connects_gold','250'), ('stats_connects_legend','500'), ('teamspeak_avatar_download_delay', '0'), ('teamspeak_default_channel_id', '0'), ('teamspeak_host_address', '127.0.0.1'), ('teamspeak_query_command_delay', '0'), ('teamspeak_query_encrypt_switch', '0'), ('teamspeak_query_nickname', 'Ranksystem'), ('teamspeak_query_pass', ''), ('teamspeak_query_port', '10011'), ('teamspeak_query_user', 'serveradmin'), ('teamspeak_verification_channel_id', '0'), ('teamspeak_voice_port', '9987'), ('version_current_using', '{$rsversion}'), ('version_latest_available', '{$rsversion}'), ('version_update_channel', 'stable'), ('webinterface_access_count', '0'), ('webinterface_access_last', '0'), ('webinterface_admin_client_unique_id_list', ''), ('webinterface_advanced_mode', '0'), ('webinterface_fresh_installation', '1'), ('webinterface_pass', '{$pass}'), ('webinterface_user', '{$user}');") === false) {
if($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('default_date_format', $dateformat), ('default_language', 'en'), ('logs_path', '{$logpath}'), ('logs_timezone', 'Europe/Berlin'), ('logs_debug_level', '5'), ('logs_rotation_size', '5'), ('rankup_boost_definition', ''), ('rankup_clean_clients_period', '86400'), ('rankup_clean_clients_switch', '1'), ('rankup_client_database_id_change_switch', '0'), ('rankup_definition', '31536000=>7'), ('rankup_excepted_channel_id_list', ''), ('rankup_excepted_group_id_list', ''), ('rankup_excepted_mode', '0'), ('rankup_excepted_unique_client_id_list', ''), ('rankup_hash_ip_addresses_mode', '2'), ('rankup_ignore_idle_time', '600'), ('rankup_message_to_user', $rankupmsg), ('rankup_message_to_user_switch', '1'), ('rankup_next_message_1', $nextupinfomsg1), ('rankup_next_message_2', $nextupinfomsg2), ('rankup_next_message_3', $nextupinfomsg3), ('rankup_next_message_mode', '1'), ('rankup_time_assess_mode', '0'), ('stats_api_keys', ''), ('stats_column_active_time_switch', '0'), ('stats_column_current_group_since_switch', '1'), ('stats_column_current_server_group_switch', '1'), ('stats_column_client_db_id_switch', '0'), ('stats_column_client_name_switch', '1'), ('stats_column_idle_time_switch', '1'), ('stats_column_last_seen_switch', '1'), ('stats_column_next_rankup_switch', '1'), ('stats_column_next_server_group_switch', '1'), ('stats_column_online_time_switch', '1'), ('stats_column_rank_switch', '1'), ('stats_column_unique_id_switch', '0'), ('stats_column_default_sort', 'rank'), ('stats_column_default_order', 'asc'), ('stats_imprint_switch', '0'), ('stats_imprint_address', 'Max Mustermann<br>Musterstraße 13<br>05172 Musterhausen<br>Germany'), ('stats_imprint_address_url', 'https://site.url/imprint/'), ('stats_imprint_email', 'info@example.com'), ('stats_imprint_notes', NULL), ('stats_imprint_phone', '+49 171 1234567'), ('stats_imprint_privacypolicy', 'Add your own privacy policy here. (editable in the webinterface)'), ('stats_imprint_privacypolicy_url', 'https://site.url/privacy/'), ('stats_server_news', $servernews), ('stats_show_clients_in_highest_rank_switch', '1'), ('stats_show_excepted_clients_switch', '1'), ('stats_show_maxclientsline_switch', 0), ('stats_show_site_navigation_switch', '1'), ('stats_time_bronze','50'), ('stats_time_silver','100'), ('stats_time_gold','250'), ('stats_time_legend','500'), ('stats_connects_bronze','50'), ('stats_connects_silver','100'), ('stats_connects_gold','250'), ('stats_connects_legend','500'), ('teamspeak_avatar_download_delay', '0'), ('teamspeak_default_channel_id', '0'), ('teamspeak_host_address', '127.0.0.1'), ('teamspeak_query_command_delay', '0'), ('teamspeak_query_encrypt_switch', '0'), ('teamspeak_query_nickname', 'Ranksystem'), ('teamspeak_query_pass', ''), ('teamspeak_query_port', '10011'), ('teamspeak_query_user', 'serveradmin'), ('teamspeak_verification_channel_id', '0'), ('teamspeak_voice_port', '9987'), ('version_current_using', '{$rsversion}'), ('version_latest_available', '{$rsversion}'), ('version_update_channel', 'stable'), ('webinterface_access_count', '0'), ('webinterface_access_last', '0'), ('webinterface_admin_client_unique_id_list', ''), ('webinterface_advanced_mode', '0'), ('webinterface_fresh_installation', '1'), ('webinterface_pass', '{$pass}'), ('webinterface_user', '{$user}');") === false) {
$err_msg = $lang['isntwidbmsg'].$mysqlcon->errorCode()." ".print_r($mysqlcon->errorInfo(), true); $err_lvl = 2;
} else {
$err_msg = $lang['isntwiusr'].'<br><br>';

View File

@@ -133,32 +133,51 @@ if($addons_config['assign_groups_active']['value'] == '1') {
}
enter_logfile($cfg,4,"Loading addons [done]");
function sendmessage($ts3, $cfg, $uuid, $msg, $erromsg=NULL, $errcode=NULL, $successmsg=NULL, $nolog=NULL) {
function sendmessage($ts3, $cfg, $uuid, $targetmode, $targetid=NULL, $msg, $erromsg=NULL, $loglevel=NULL, $successmsg=NULL, $nolog=NULL) {
try {
if(strlen($msg) > 1024) {
$fragarr = explode("##*##", wordwrap($msg, 1022, "##*##", TRUE), 1022);
foreach($fragarr as $frag) {
usleep($cfg['teamspeak_query_command_delay']);
if ($targetmode==2 && $targetid!=NULL) {
$ts3->serverGetSelected()->channelGetById($targetid)->message("\n".$frag);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage fragment to channel (ID: $targetid): ".$frag);
} elseif ($targetmode==3) {
$ts3->serverGetSelected()->message("\n".$frag);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage fragment to server: ".$frag);
} elseif ($targetmode==1 && $targetid!=NULL) {
$ts3->serverGetSelected()->clientGetById($targetid)->message("\n".$frag);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage fragment to connectionID $targetid (uuid $uuid): ".$frag);
} else {
$ts3->serverGetSelected()->clientGetByUid($uuid)->message("\n".$frag);
if($nolog==NULL) {
enter_logfile($cfg,6,"sendmessage to uuid $uuid (fragment): ".$frag);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage fragment to uuid $uuid (connectionID $targetid): ".$frag);
}
}
} else {
usleep($cfg['teamspeak_query_command_delay']);
if ($targetmode==2 && $targetid!=NULL) {
$ts3->serverGetSelected()->channelGetById($targetid)->message($msg);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage to channel (ID: $targetid): ".$msg);
} elseif ($targetmode==3) {
$ts3->serverGetSelected()->message($msg);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage to server: ".$msg);
} elseif ($targetmode==1 && $targetid!=NULL) {
$ts3->serverGetSelected()->clientGetById($targetid)->message($msg);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage to connectionID $targetid (uuid $uuid): ".$msg);
} else {
$ts3->serverGetSelected()->clientGetByUid($uuid)->message($msg);
if($nolog==NULL) {
enter_logfile($cfg,6,"sendmessage to uuid $uuid: ".$msg);
if($nolog==NULL) enter_logfile($cfg,6,"sendmessage to uuid $uuid (connectionID $targetid): ".$msg);
}
}
if($successmsg!=NULL) {
enter_logfile($cfg,5,$successmsg);
}
} catch (Exception $e) {
if($errcode!=NULL) {
enter_logfile($cfg,$errcode,$erromsg." TS3: ".$e->getCode().': '.$e->getMessage());
if($loglevel!=NULL) {
enter_logfile($cfg,$loglevel,$erromsg." TS3: ".$e->getCode().': '.$e->getMessage());
} else {
enter_logfile($cfg,3,"sendmessage: ".$e->getCode().': '.$e->getMessage());
enter_logfile($cfg,3,"sendmessage: ".$e->getCode().': '.$e->getMessage().", targetmode: $targetmode, targetid: $targetid");
}
}
}
@@ -297,7 +316,6 @@ function run_bot() {
enter_logfile($cfg,9," Log Level: ".$loglevel);
enter_logfile($cfg,6," Serverside config 'max_execution_time' (PHP.ini): ".$max_execution_time." sec.");
enter_logfile($cfg,6," Serverside config 'memory_limit' (PHP.ini): ".$memory_limit);
$cfg['rankup_definition_flipped'] = array_flip($cfg['rankup_definition']);
krsort($cfg['rankup_definition']);
if(($groupslist = $mysqlcon->query("SELECT * FROM `$dbname`.`groups`")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC)) === false) {
@@ -307,8 +325,8 @@ function run_bot() {
$checkgroups = 0;
if(isset($groupslist) && $groupslist != NULL) {
if(isset($cfg['rankup_definition']) && $cfg['rankup_definition'] != NULL) {
foreach($cfg['rankup_definition'] as $time => $groupid) {
if(!isset($groupslist[$groupid]) && $groupid != NULL) {
foreach($cfg['rankup_definition'] as $rank) {
if(!isset($groupslist[$rank['group']]) && $rank['group'] != NULL) {
$checkgroups++;
}
}
@@ -351,9 +369,9 @@ function run_bot() {
if(isset($groupslist) && $groupslist != NULL) {
if(isset($cfg['rankup_definition']) && $cfg['rankup_definition'] != NULL) {
foreach($cfg['rankup_definition'] as $time => $groupid) {
if(!isset($groupslist[$groupid]) && $groupid != NULL) {
enter_logfile($cfg,1,' '.sprintf($lang['upgrp0001'], $groupid, $lang['wigrptime']));
foreach($cfg['rankup_definition'] as $rank) {
if(!isset($groupslist[$rank['group']]) && $rank['group'] != NULL) {
enter_logfile($cfg,1,' '.sprintf($lang['upgrp0001'], $rank['group'], $lang['wigrptime']));
$errcnf++;
}
}
@@ -385,8 +403,8 @@ function run_bot() {
} else {
if($lastupdate['timestamp'] != 0 && ($lastupdate['timestamp'] + 10) > time()) {
if(isset($cfg['webinterface_admin_client_unique_id_list']) && $cfg['webinterface_admin_client_unique_id_list'] != NULL) {
foreach(array_flip($cfg['webinterface_admin_client_unique_id_list']) as $clientid) {
sendmessage($ts3server, $cfg, $clientid, sprintf($lang['upmsg2'], $cfg['version_current_using'], 'https://ts-ranksystem.com/#changelog'), sprintf($lang['upusrerr'], $clientid), 6, sprintf($lang['upusrinf'], $clientid));
foreach(array_flip($cfg['webinterface_admin_client_unique_id_list']) as $clientuuid) {
sendmessage($ts3server, $cfg, $clientuuid, NULL, sprintf($lang['upmsg2'], $cfg['version_current_using'], 'https://ts-ranksystem.com/#changelog'), sprintf($lang['upusrerr'], $clientuuid), 6, sprintf($lang['upusrinf'], $clientuuid));
}
}
}
@@ -541,8 +559,8 @@ function run_bot() {
if($looptime < 1) {
$loopsleep = (1 - $looptime);
if($cfg['teamspeak_query_encrypt_switch'] == 1) {
// no wait for data to become available on the stream on SSH due issues with non-blocking mode
if($cfg['teamspeak_query_encrypt_switch'] == 1 || version_compare($ts3version['version'],'1.4.0','>=') && version_compare($ts3version['version'],'2.9.9','<=')) {
// no wait for data to become available on the stream on SSH due issues with non-blocking mode or TeaSpeak
usleep(round($loopsleep * 1000000));
} else {
$ts3server->getAdapter()->waittsn($loopsleep, 50000); // 50ms delay for CPU reason

View File

@@ -377,6 +377,7 @@ function calc_serverstats($ts3,$mysqlcon,&$cfg,$dbname,$dbtype,$serverinfo,&$db_
if ($db_cache['job_check']['get_version']['timestamp'] < ($nowtime - 43199)) {
$db_cache['job_check']['get_version']['timestamp'] = $nowtime;
enter_logfile($cfg,6,"Get the latest Ranksystem Version.");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://ts-n.net/ranksystem/'.$cfg['version_update_channel']);
curl_setopt($ch, CURLOPT_REFERER, 'TSN Ranksystem');

View File

@@ -172,13 +172,15 @@ function calc_user($ts3,$mysqlcon,$lang,$cfg,$dbname,$allclients,$phpcommand,&$d
$dtT = new DateTime("@".round($activetime));
foreach($sgroups as $clientgroup => $dummy) {
if(isset($cfg['rankup_definition_flipped'][$clientgroup])) {
foreach($cfg['rankup_definition'] as $rank) {
if($rank['group'] == $clientgroup && $rank['keep'] == 0) {
$client_groups_rankup[$clientgroup] = 0;
}
}
}
$grpcount=0;
foreach ($cfg['rankup_definition'] as $time => $groupid) {
foreach ($cfg['rankup_definition'] as $rank) {
$grpcount++;
if(isset($cfg['rankup_excepted_channel_id_list'][$client['cid']]) || (($db_cache['all_user'][$uid]['except'] == 3 || $db_cache['all_user'][$uid]['except'] == 2) && $cfg['rankup_excepted_mode'] == 1)) {
$count = $db_cache['all_user'][$uid]['count'];
@@ -186,9 +188,16 @@ function calc_user($ts3,$mysqlcon,$lang,$cfg,$dbname,$allclients,$phpcommand,&$d
if($except != 2 && $except != 3) {
$except = 1;
}
} elseif ($activetime > $time && !isset($cfg['rankup_excepted_unique_client_id_list'][$uid]) && ($cfg['rankup_excepted_group_id_list'] == NULL || !array_intersect_key($sgroups, $cfg['rankup_excepted_group_id_list']))) {
if (!isset($sgroups[$groupid])) {
} elseif ($activetime > $rank['time'] && !isset($cfg['rankup_excepted_unique_client_id_list'][$uid]) && ($cfg['rankup_excepted_group_id_list'] == NULL || !array_intersect_key($sgroups, $cfg['rankup_excepted_group_id_list']))) {
if (!isset($sgroups[$rank['group']])) {
if ($db_cache['all_user'][$uid]['grpid'] != NULL && $db_cache['all_user'][$uid]['grpid'] != 0 && isset($sgroups[$db_cache['all_user'][$uid]['grpid']])) {
$donotremove = 0;
foreach($cfg['rankup_definition'] as $rank2) {
if($rank2['group'] == $db_cache['all_user'][$uid]['grpid'] && $rank2['keep'] == 1 && $activetime > $rank2['time']) {
$donotremove = 1; break;
}
}
if($donotremove == 0) {
usleep($cfg['teamspeak_query_command_delay']);
try {
$ts3->serverGroupClientDel($db_cache['all_user'][$uid]['grpid'], $client['client_database_id']);
@@ -198,29 +207,30 @@ function calc_user($ts3,$mysqlcon,$lang,$cfg,$dbname,$allclients,$phpcommand,&$d
enter_logfile($cfg,2,"TS3 error: ".$e->getCode().': '.$e->getMessage()." ; ".sprintf($lang['sgrprerr'], $name, $uid, $client['client_database_id'], $db_cache['groups'][$db_cache['all_user'][$uid]['grpid']]['sgidname'], $db_cache['all_user'][$uid]['grpid']));
}
}
}
usleep($cfg['teamspeak_query_command_delay']);
try {
$ts3->serverGroupClientAdd($groupid, $client['client_database_id']);
$ts3->serverGroupClientAdd($rank['group'], $client['client_database_id']);
$db_cache['all_user'][$uid]['grpsince'] = $nowtime;
enter_logfile($cfg,5,sprintf($lang['sgrpadd'], $db_cache['groups'][$groupid]['sgidname'], $groupid, $name, $uid, $client['client_database_id']));
enter_logfile($cfg,5,sprintf($lang['sgrpadd'], $db_cache['groups'][$rank['group']]['sgidname'], $rank['group'], $name, $uid, $client['client_database_id']));
if ($cfg['rankup_message_to_user_switch'] == 1) {
$days = $dtF->diff($dtT)->format('%a');
$hours = $dtF->diff($dtT)->format('%h');
$mins = $dtF->diff($dtT)->format('%i');
$secs = $dtF->diff($dtT)->format('%s');
sendmessage($ts3, $cfg, $uid, sprintf($cfg['rankup_message_to_user'],$days,$hours,$mins,$secs,$db_cache['groups'][$groupid]['sgidname'],$client['client_nickname']), sprintf($lang['sgrprerr'], $name, $uid, $client['client_database_id'], $db_cache['groups'][$groupid]['sgidname'],$groupid), 2);
sendmessage($ts3, $cfg, $uid, 1, NULL, sprintf($cfg['rankup_message_to_user'],$days,$hours,$mins,$secs,$db_cache['groups'][$rank['group']]['sgidname'],$client['client_nickname']), sprintf($lang['sgrprerr'], $name, $uid, $client['client_database_id'], $db_cache['groups'][$rank['group']]['sgidname'],$rank['group']), 2);
}
} catch (Exception $e) {
enter_logfile($cfg,2,"TS3 error: ".$e->getCode().': '.$e->getMessage()." ; ".sprintf($lang['sgrprerr'], $name, $uid, $client['client_database_id'], $db_cache['groups'][$groupid]['sgidname'], $groupid));
enter_logfile($cfg,2,"TS3 error: ".$e->getCode().': '.$e->getMessage()." ; ".sprintf($lang['sgrprerr'], $name, $uid, $client['client_database_id'], $db_cache['groups'][$rank['group']]['sgidname'], $rank['group']));
}
$db_cache['all_user'][$uid]['grpid'] = $groupid;
}
if($grpcount == 1) {
$db_cache['all_user'][$uid]['nextup'] = 0;
}
$db_cache['all_user'][$uid]['grpid'] = $rank['group'];
break;
} else {
$db_cache['all_user'][$uid]['nextup'] = $time - $activetime;
$db_cache['all_user'][$uid]['nextup'] = $rank['time'] - $activetime;
}
}
@@ -260,20 +270,20 @@ function calc_user($ts3,$mysqlcon,$lang,$cfg,$dbname,$allclients,$phpcommand,&$d
$db_cache['all_user'][$uid]['except'] = $except;
} else {
$db_cache['all_user'][$uid]['grpid'] = 0;
foreach ($cfg['rankup_definition'] as $time => $groupid) {
if (isset($sgroups[$groupid])) {
$db_cache['all_user'][$uid]['grpid'] = $groupid;
foreach ($cfg['rankup_definition'] as $rank) {
if (isset($sgroups[$rank['group']])) {
$db_cache['all_user'][$uid]['grpid'] = $rank['group'];
break;
}
}
$insertdata[] = array(
"uuid" => $mysqlcon->quote($client['client_unique_identifier'], ENT_QUOTES),
"cldbid" => $client['client_database_id'],
"count" => 0,
"count" => $addtime,
"name" => $name,
"lastseen" => $nowtime,
"grpid" => $db_cache['all_user'][$uid]['grpid'],
"nextup" => (key($cfg['rankup_definition']) - 1),
"nextup" => (key($cfg['rankup_definition']) - $addtime),
"idle" => 0,
"cldgroup" => $client['client_servergroups'],
"boosttime" => 0,
@@ -286,9 +296,9 @@ function calc_user($ts3,$mysqlcon,$lang,$cfg,$dbname,$allclients,$phpcommand,&$d
"cid" => $client['cid']
);
$db_cache['all_user'][$uid]['cldbid'] = $client['client_database_id'];
$db_cache['all_user'][$uid]['count'] = 0;
$db_cache['all_user'][$uid]['count'] = $addtime;
$db_cache['all_user'][$uid]['idle'] = 0;
$db_cache['all_user'][$uid]['nextup'] = (key($cfg['rankup_definition']) - 1);
$db_cache['all_user'][$uid]['nextup'] = (key($cfg['rankup_definition']) - $addtime);
$db_cache['all_user'][$uid]['firstcon'] = $nowtime;
$db_cache['all_user'][$uid]['boosttime'] = 0;
$db_cache['all_user'][$uid]['grpsince'] = 0;

View File

@@ -79,11 +79,11 @@ function calc_userstats($ts3,$mysqlcon,$cfg,$dbname,&$db_cache) {
$sqlexec .= "UPDATE `$dbname`.`user` SET `cldbid`={$getcldbid[0]} WHERE `uuid`='$uuid';\n";
// select current user_snapshot entries and insert this with the new database-ID
foreach($userdata[$userstats['cldbid']] as $id => $data) {
$allinsert .= "('{$getcldbid[0]}',$id,{$data['count']},{$data['idle']}),";
$allinsert .= "($id,'{$getcldbid[0]}',{$data['count']},{$data['idle']}),";
}
if ($allinsert != '') {
$allinsert = substr($allinsert, 0, -1);
$sqlexec .= "INSERT INTO `$dbname`.`user_snapshot` (`cldbid`,`id`,`count`,`idle`) VALUES $allinsert ON DUPLICATE KEY UPDATE `count_week`=VALUES(`count_week`),`count_month`=VALUES(`count_month`),`idle_week`=VALUES(`idle_week`);\nDELETE FROM `$dbname`.`user_snapshot` WHERE `cldbid`='{$userstats['cldbid']}';\n";
$sqlexec .= "INSERT INTO `$dbname`.`user_snapshot` (`id`,`cldbid`,`count`,`idle`) VALUES $allinsert ON DUPLICATE KEY UPDATE `count`=VALUES(`count`),`idle`=VALUES(`idle`);\nDELETE FROM `$dbname`.`user_snapshot` WHERE `cldbid`='{$userstats['cldbid']}';\n";
}
unset($allinsert);
enter_logfile($cfg,4," Store new cldbid ".$getcldbid[0]." for client (uuid: ".$uuid." old cldbid: ".$userstats['cldbid'].")");

View File

@@ -1,6 +1,6 @@
<?PHP
function check_db($mysqlcon,$lang,$cfg,$dbname) {
$cfg['version_latest_available'] = '1.3.11';
$cfg['version_latest_available'] = '1.3.12';
enter_logfile($cfg,5,"Check Ranksystem database for updates...");
function check_double_cldbid($mysqlcon,$cfg,$dbname) {
@@ -40,7 +40,7 @@ function check_db($mysqlcon,$lang,$cfg,$dbname) {
function old_files($cfg) {
$del_folder = array('icons/','libs/ts3_lib/Adapter/Blacklist/','libs/ts3_lib/Adapter/TSDNS/','libs/ts3_lib/Adapter/Update/','libs/fonts/');
$del_files = array('install.php','libs/combined_stats.css','libs/combined_stats.js','webinterface/admin.php','libs/ts3_lib/Adapter/Blacklist/Exception.php','libs/ts3_lib/Adapter/TSDNS/Exception.php','libs/ts3_lib/Adapter/Update/Exception.php','libs/ts3_lib/Adapter/Blacklist.php','libs/ts3_lib/Adapter/TSDNS.php','libs/ts3_lib/Adapter/Update.php','languages/core_ar.php','languages/core_cz.php','languages/core_de.php','languages/core_en.php','languages/core_es.php','languages/core_fr.php','languages/core_it.php','languages/core_nl.php','languages/core_pl.php','languages/core_pt.php','languages/core_ro.php','languages/core_ru.php','webinterface/nav.php');
$del_files = array('install.php','libs/combined_stats.css','libs/combined_stats.js','webinterface/admin.php','libs/ts3_lib/Adapter/Blacklist/Exception.php','libs/ts3_lib/Adapter/TSDNS/Exception.php','libs/ts3_lib/Adapter/Update/Exception.php','libs/ts3_lib/Adapter/Blacklist.php','libs/ts3_lib/Adapter/TSDNS.php','libs/ts3_lib/Adapter/Update.php','languages/core_ar.php','languages/core_cz.php','languages/core_de.php','languages/core_en.php','languages/core_es.php','languages/core_fr.php','languages/core_it.php','languages/core_nl.php','languages/core_pl.php','languages/core_pt.php','languages/core_ro.php','languages/core_ru.php','webinterface/nav.php','stats/nav.php');
function rmdir_recursive($folder,$cfg) {
foreach(scandir($folder) as $file) {
if ('.' === $file || '..' === $file) continue;
@@ -345,9 +345,6 @@ function check_db($mysqlcon,$lang,$cfg,$dbname) {
}
if(version_compare($cfg['version_current_using'], '1.3.11', '<')) {
if($mysqlcon->exec("DELETE FROM `$dbname`.`admin_addtime`;") === false) { }
if($mysqlcon->exec("DELETE FROM `$dbname`.`addon_assign_groups`;") === false) { }
if($mysqlcon->exec("INSERT INTO `$dbname`.`addons_config` (`param`,`value`) VALUES ('assign_groups_excepted_groupids','');") === false) { } else {
enter_logfile($cfg,4," [1.3.11] Adjusted table addons_config successfully.");
}
@@ -360,10 +357,20 @@ function check_db($mysqlcon,$lang,$cfg,$dbname) {
if($mysqlcon->exec("CREATE INDEX `user_online` ON `$dbname`.`user` (`online`,`lastseen`)") === false) { }
}
if(version_compare($cfg['version_current_using'], '1.3.11', '<')) {
if($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('imprint_enabled', '0'),('imprint_address', 'Max Mustermann<br>Musterstraße 13<br>05172 Musterhausen<br>Germany'),('imprint_email', 'info@example.com'),('imprint_phone', '+49 171 1234567'),('imprint_notes', NULL),('imprint_privacy-policy', 'Add your own privacy policy here. (editable in the webinterface)');") === false) { } else {
enter_logfile($cfg,4," [1.3.11] Added new imprint values.");
if(version_compare($cfg['version_current_using'], '1.3.12', '<')) {
if($mysqlcon->exec("DELETE FROM `$dbname`.`admin_addtime`;") === false) { }
if($mysqlcon->exec("DELETE FROM `$dbname`.`addon_assign_groups`;") === false) { }
if($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('stats_imprint_switch', '0'),('stats_imprint_address', 'Max Mustermann<br>Musterstraße 13<br>05172 Musterhausen<br>Germany'),('stats_imprint_address_url', 'https://site.url/imprint/'), ('stats_imprint_email', 'info@example.com'),('stats_imprint_phone', '+49 171 1234567'),('stats_imprint_notes', NULL),('stats_imprint_privacypolicy', 'Add your own privacy policy here. (editable in the webinterface)'),('stats_imprint_privacypolicy_url', 'https://site.url/privacy/');") === false) { } else {
enter_logfile($cfg,4," [1.3.12] Added new imprint values.");
}
if($mysqlcon->exec("CREATE INDEX `snapshot_id` ON `$dbname`.`user_snapshot` (`id`)") === false) { }
if($mysqlcon->exec("CREATE INDEX `snapshot_cldbid` ON `$dbname`.`user_snapshot` (`cldbid`)") === false) { }
if($mysqlcon->exec("CREATE INDEX `serverusage_timestamp` ON `$dbname`.`server_usage` (`timestamp`)") === false) { }
if($mysqlcon->exec("CREATE INDEX `user_version` ON `$dbname`.`user` (`version`)") === false) { }
if($mysqlcon->exec("CREATE INDEX `user_cldbid` ON `$dbname`.`user` (`cldbid` ASC,`uuid`,`rank`)") === false) { }
if($mysqlcon->exec("CREATE INDEX `user_online` ON `$dbname`.`user` (`online`,`lastseen`)") === false) { }
}
$cfg = set_new_version($mysqlcon,$cfg,$dbname);
}

View File

@@ -2,8 +2,18 @@
function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3_Node_Host $host) {
global $lang,$cfg,$mysqlcon,$dbname,$phpcommand,$ts3,$whoami;
enter_logfile($cfg,6,"whoami: ".print_r($host->whoami(),true));
if($event["targetmode"] == 1) {
$targetid = $event["invokerid"];
} elseif($event["targetmode"] == 2) {
$targetid = $host->whoami()["client_channel_id"];
} else {
$targetid = NULL;
}
if($host->whoami()["client_unique_identifier"] != $event["invokeruid"] && substr($event["msg"],0,1) === "!") {
enter_logfile($cfg,6,"event: ".print_r($event,true));
if($host->whoami()["client_id"] != $event["invokerid"] && substr($event["msg"],0,1) === "!") {
$uuid = $event["invokeruid"];
$admin = 0;
foreach(array_flip($cfg['webinterface_admin_client_unique_id_list']) as $auuid) {
@@ -26,11 +36,12 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
ksort($cfg['rankup_definition']);
$countgrp = count($cfg['rankup_definition']);
$grpcount = 0;
foreach ($cfg['rankup_definition'] as $time => $groupid) {
foreach ($cfg['rankup_definition'] as $rank) {
if ($cfg['rankup_time_assess_mode'] == 1) {
$nextup = $time - $user['count'] + $user['idle'];
$nextup = $rank['time'] - $user['count'] + $user['idle'];
} else {
$nextup = $time - $user['count'];
$nextup = $rank['time'] - $user['count'];
}
$dtF = new DateTime("@0");
$dtT = new DateTime("@".round($nextup));
@@ -40,15 +51,16 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
$secs = $dtF->diff($dtT)->format('%s');
$name = $user['name'];
$grpcount++;
if ($nextup > 0 && $nextup < $time || $grpcount == $countgrp && $nextup <= 0) {
if ($nextup > 0 && $nextup < $rank['time'] || $grpcount == $countgrp && $nextup <= 0) {
if ($grpcount == $countgrp && $nextup <= 0) {
$msg = sprintf($cfg['rankup_next_message_2'], $days, $hours, $mins, $secs, $sqlhisgroup[$groupid]['sgidname'], $name, $user['rank'], $sqlhisgroup[$user['grpid']]['sgidname'], date('Y-m-d H:i:s', $user['grpsince']));
$msg = sprintf($cfg['rankup_next_message_2'], $days, $hours, $mins, $secs, $sqlhisgroup[$rank['group']]['sgidname'], $name, $user['rank'], $sqlhisgroup[$user['grpid']]['sgidname'], date('Y-m-d H:i:s', $user['grpsince']));
} elseif ($user['except'] == 2 || $user['except'] == 3) {
$msg = sprintf($cfg['rankup_next_message_3'], $days, $hours, $mins, $secs, $sqlhisgroup[$groupid]['sgidname'], $name, $user['rank'], $sqlhisgroup[$user['grpid']]['sgidname'], date('Y-m-d H:i:s', $user['grpsince']));
$msg = sprintf($cfg['rankup_next_message_3'], $days, $hours, $mins, $secs, $sqlhisgroup[$rank['group']]['sgidname'], $name, $user['rank'], $sqlhisgroup[$user['grpid']]['sgidname'], date('Y-m-d H:i:s', $user['grpsince']));
} else {
$msg = sprintf($cfg['rankup_next_message_1'], $days, $hours, $mins, $secs, $sqlhisgroup[$groupid]['sgidname'], $name, $user['rank'], $sqlhisgroup[$user['grpid']]['sgidname'], date('Y-m-d H:i:s', $user['grpsince']));
$msg = sprintf($cfg['rankup_next_message_1'], $days, $hours, $mins, $secs, $sqlhisgroup[$rank['group']]['sgidname'], $name, $user['rank'], $sqlhisgroup[$user['grpid']]['sgidname'], date('Y-m-d H:i:s', $user['grpsince']));
}
sendmessage($host,$cfg,$event["invokeruid"],$msg);
$targetid = $event["invokerid"];
sendmessage($host, $cfg, $event["invokeruid"], 1, $targetid, $msg);
if($cfg['rankup_next_message_mode'] == 1) {
break;
}
@@ -60,22 +72,22 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
if(strstr($event["msg"], '!version')) {
if(version_compare($cfg['version_latest_available'], $cfg['version_current_using'], '>') && $cfg['version_latest_available'] != '') {
sendmessage($host,$cfg,$event["invokeruid"],sprintf($lang['upmsg'], $cfg['version_current_using'], $cfg['version_latest_available'], 'https://ts-ranksystem.com/#changelog'));
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, sprintf($lang['upmsg'], $cfg['version_current_using'], $cfg['version_latest_available'], 'https://ts-ranksystem.com/#changelog'));
} else {
sendmessage($host,$cfg,$event["invokeruid"],sprintf($lang['msg0001'], $cfg['version_current_using']));
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, sprintf($lang['msg0001'], $cfg['version_current_using']));
}
return;
}
if(strstr($event["msg"], '!help') || strstr($event["msg"], '!info') || strstr($event["msg"], '!commands') || strstr($event["msg"], '!cmd')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0002']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0002']);
return;
}
if((strstr($event["msg"], '!shutdown') || strstr($event["msg"], '!quit') || strstr($event["msg"], '!stop')) && $admin == 1) {
enter_logfile($cfg,5,sprintf($lang['msg0004'], $event["invokername"], $event["invokeruid"]));
$path = substr(__DIR__, 0, -4);
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0005']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0005']);
if (substr(php_uname(), 0, 7) == "Windows") {
exec("start ".$phpcommand." ".$path."worker.php stop");
file_put_contents(substr(__DIR__,0,-4).'logs\autostart_deactivated',"");
@@ -85,14 +97,14 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
}
shutdown($mysql,$cfg,4,"Stop command received!");
} elseif (strstr($event["msg"], '!shutdown') || strstr($event["msg"], '!quit') || strstr($event["msg"], '!stop')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0003']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0003']);
return;
}
if((strstr($event["msg"], '!restart') || strstr($event["msg"], '!reboot')) && $admin == 1) {
enter_logfile($cfg,5,sprintf($lang['msg0007'], $event["invokername"], $event["invokeruid"], "restart"));
$path = substr(__DIR__, 0, -4);
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0006']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0006']);
if (substr(php_uname(), 0, 7) == "Windows") {
exec("start ".$phpcommand." ".$path."worker.php restart");
} else {
@@ -100,7 +112,7 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
}
return;
} elseif (strstr($event["msg"], '!restart') || strstr($event["msg"], '!reboot')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0003']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0003']);
return;
}
@@ -108,10 +120,10 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
if($mysqlcon->exec("UPDATE `$dbname`.`job_check` SET `timestamp`='0' WHERE `job_name` IN ('check_update','get_version','calc_server_stats')") === false) {
enter_logfile($cfg,4,"handle_messages 13:".print_r($mysqlcon->errorInfo(), true));
}
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0008']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0008']);
return;
} elseif(strstr($event["msg"], '!checkupdate') || strstr($event["msg"], '!update')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0003']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0003']);
return;
}
@@ -120,10 +132,10 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
if($mysqlcon->exec("UPDATE `$dbname`.`job_check` SET `timestamp`='0' WHERE `job_name` IN ('clean_db','clean_clients')") === false) {
enter_logfile($cfg,4,"handle_messages 13:".print_r($mysqlcon->errorInfo(), true));
}
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0009'] ." ". $lang['msg0010']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0009'] ." ". $lang['msg0010']);
return;
} elseif(strstr($event["msg"], '!clean')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0003']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0003']);
return;
}
@@ -135,25 +147,25 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
enter_logfile($cfg,4,"handle_messages 15:".print_r($mysqlcon->errorInfo(), true));
}
}
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0011'] ." ". $lang['msg0010']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0011'] ." ". $lang['msg0010']);
return;
} elseif(strstr($event["msg"], '!reloadgroups')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0003']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0003']);
return;
}
if(strstr($event["msg"], '!online') || strstr($event["msg"], '!uptime')) {
sendmessage($host, $cfg, $event["invokeruid"], sprintf("Bot is online since %s, now %s.", (DateTime::createFromFormat('U', $cfg['temp_last_botstart'])->setTimeZone(new DateTimeZone($cfg['logs_timezone']))->format("Y-m-d H:i:s")), (new DateTime("@0"))->diff(new DateTime("@".(time()-$cfg['temp_last_botstart'])))->format($cfg['default_date_format'])));
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, sprintf("Bot is online since %s, now %s.", (DateTime::createFromFormat('U', $cfg['temp_last_botstart'])->setTimeZone(new DateTimeZone($cfg['logs_timezone']))->format("Y-m-d H:i:s")), (new DateTime("@0"))->diff(new DateTime("@".(time()-$cfg['temp_last_botstart'])))->format($cfg['default_date_format'])));
return;
}
if(strstr($event["msg"], '!runtime') || strstr($event["msg"], '!runtimes')) {
sendmessage($host, $cfg, $event["invokeruid"], sprintf("Last 10 runtimes (in seconds):\n%s\n\nØ %s sec. (Σ %s)", str_replace(";","\n",$cfg['temp_last_laptime']), round(($cfg['temp_whole_laptime'] / $cfg['temp_count_laptime']),5), $cfg['temp_count_laptime']));
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, sprintf("Last 10 runtimes (in seconds):\n%s\n\nØ %s sec. (Σ %s)", str_replace(";","\n",$cfg['temp_last_laptime']), round(($cfg['temp_whole_laptime'] / $cfg['temp_count_laptime']),5), $cfg['temp_count_laptime']));
return;
}
if(strstr($event["msg"], '!memory')) {
sendmessage($host, $cfg, $event["invokeruid"], sprintf("Allocated memory of PHP for the Ranksystem Bot..\ncurrent using: %s KiB\npeak using: %s KiB", round((memory_get_usage()/1024),2), round((memory_get_peak_usage()/1024),2)));
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, sprintf("Allocated memory of PHP for the Ranksystem Bot..\ncurrent using: %s KiB\npeak using: %s KiB", round((memory_get_usage()/1024),2), round((memory_get_peak_usage()/1024),2)));
return;
}
@@ -199,7 +211,7 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
}
}
} else {
$lines[] = "Perhaps the logfile got rotated or something goes wrong due opening file!\n";
$lines[] = "Perhaps the logfile got rotated or something goes wrong due opening the file!\n";
$lines[] = "No log entry found...\n";
}
$lines = array_reverse($lines);
@@ -207,12 +219,13 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
foreach ($lines as $line) {
$message .= $line;
}
sendmessage($host, $cfg, $event["invokeruid"], $message, NULL, NULL, NULL, $nolog=1);
$targetid = $event["invokerid"];
sendmessage($host, $cfg, $event["invokeruid"], 1, $targetid, $message, NULL, NULL, NULL, $nolog=1);
} elseif(strstr($event["msg"], '!logs') || strstr($event["msg"], '!log')) {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0003']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0003']);
}
} elseif($host->whoami()["client_unique_identifier"] != $event["invokeruid"] && $event["targetmode"] == "1") {
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0002']);
sendmessage($host, $cfg, $event["invokeruid"], $event["targetmode"], $targetid, $lang['msg0002']);
}
}
?>

View File

@@ -22,20 +22,20 @@ function reset_rs($ts3,$mysqlcon,$lang,$cfg,$dbname,&$db_cache) {
shutdown($mysqlcon,$cfg,1,"Select on DB failed: ".print_r($mysqlcon->errorInfo(), true));
}
foreach ($cfg['rankup_definition'] as $time => $groupid) {
enter_logfile($cfg,5," Getting TS3 servergrouplist for ".$db_cache['groups'][$groupid]['sgidname']." (ID: ".$groupid.")");
foreach ($cfg['rankup_definition'] as $rank) {
enter_logfile($cfg,5," Getting TS3 servergrouplist for ".$db_cache['groups'][$rank['group']]['sgidname']." (ID: ".$rank['group'].")");
try {
usleep($cfg['teamspeak_query_command_delay']);
$tsclientlist = $ts3->servergroupclientlist($groupid);
$tsclientlist = $ts3->servergroupclientlist($rank['group']);
foreach ($tsclientlist as $tsclient) {
if (isset($all_clients[$tsclient['cldbid']])) {
try {
usleep($cfg['teamspeak_query_command_delay']);
$ts3->serverGroupClientDel($groupid, $tsclient['cldbid']);
enter_logfile($cfg,5," ".sprintf($lang['sgrprm'], $db_cache['groups'][$groupid]['sgidname'], $groupid, $all_clients[$tsclient['cldbid']]['name'], $all_clients[$tsclient['cldbid']]['uuid'], $tsclient['cldbid']));
$ts3->serverGroupClientDel($rank['group'], $tsclient['cldbid']);
enter_logfile($cfg,5," ".sprintf($lang['sgrprm'], $db_cache['groups'][$rank['group']]['sgidname'], $rank['group'], $all_clients[$tsclient['cldbid']]['name'], $all_clients[$tsclient['cldbid']]['uuid'], $tsclient['cldbid']));
} catch (Exception $e) {
enter_logfile($cfg,2," TS3 error: ".$e->getCode().': '.$e->getMessage()." ; ".sprintf($lang['sgrprerr'], $all_clients[$tsclient['cldbid']]['name'], $all_clients[$tsclient['cldbid']]['uuid'], $tsclient['cldbid'], $db_cache['groups'][$groupid]['sgidname'], $groupid));
enter_logfile($cfg,2," TS3 error: ".$e->getCode().': '.$e->getMessage()." ; ".sprintf($lang['sgrprerr'], $all_clients[$tsclient['cldbid']]['name'], $all_clients[$tsclient['cldbid']]['uuid'], $tsclient['cldbid'], $db_cache['groups'][$rank['group']]['sgidname'], $rank['group']));
$err_cnt++;
}
}

View File

@@ -29,7 +29,7 @@ function server_usage($mysqlcon,$cfg,$dbname,$serverinfo,&$db_cache) {
$dtT = new DateTime("@".round($count));
}
$grpcount=0;
foreach ($cfg['rankup_definition'] as $time => $groupid) {
foreach ($cfg['rankup_definition'] as $time => $dummy) {
$grpcount++;
if ($activetime > $time) {
if($grpcount == 1) {

View File

@@ -170,6 +170,8 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
if(!isset($tsgroupids[$sgid]) && $sgid != 0 && $sgid != NULL) {
$delsgroupids .= $sgid . ",";
unset($db_cache['groups'][$sgid]);
foreach($cfg['rankup_definition'] as $rank) {
if(in_array($sgid, $rank)) {
if(in_array($sgid, $cfg['rankup_definition'])) {
enter_logfile($cfg,2,sprintf($lang['upgrp0001'], $sgid, $lang['wigrptime']));
if(isset($cfg['webinterface_admin_client_unique_id_list']) && $cfg['webinterface_admin_client_unique_id_list'] != NULL) {
@@ -183,6 +185,8 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
}
}
}
}
}
if(isset($cfg['rankup_boost_definition'][$sgid])) {
enter_logfile($cfg,2,sprintf($lang['upgrp0001'], $sgid, $lang['wiboost']));
if(isset($cfg['webinterface_admin_client_unique_id_list']) && $cfg['webinterface_admin_client_unique_id_list'] != NULL) {

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "حدث خلل غير معروف!";
$lang['factor'] = "Factor";
$lang['highest'] = "تم الوصول الى اعلى رتبة";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Installation";
$lang['instdb'] = "تنصيب قاعدة البيانات";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Change password";
$lang['pass3'] = "old password";
$lang['pass4'] = "new password";
$lang['pass5'] = "Forgot Password?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "repeat";
$lang['resettime'] = "Reset the online and idle time of user %s (unique Client-ID: %s; Client-database-ID %s) to zero, cause user got removed out of exception.";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "A comma seperated list of unique Client-IDs, which shou
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "ترفيع رتبة";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds)=>servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9,120=>10,180=>11</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds) => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "List Rankup (Admin-Mode)";
$lang['wihladm0'] = "Function description (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "إعدادات";
$lang['wiignidle'] = "Ignoriere Idle";
$lang['wiignidledesc'] = "Define a period, up to which the idle time of a user will be ignored.<br><br>When a client does not do anything on the server (=idle), this time is noted by the Ranksystem. With this feature the idle time of an user will not be counted until the defined limit. Only when the defined limit is exceeded, it counts from that point for the Ranksystem as idle time.<br><br>This function matters only in conjunction with the mode 'active time'.<br><br>Meaning the function is e.g. to evaluate the time of listening in conversations as activity.<br><br>0 Sec. = disable this function<br><br>Example:<br>Ignore idle = 600 (seconds)<br>A client has an idle of 8 minuntes.<br>└ 8 minutes idle are ignored and he therefore receives this time as active time. If the idle time now increased to 12 minutes, the time is over 10 minutes and in this case 2 minutes would be counted as idle time, the first 10 minutes as active time.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Logpath";
$lang['wilogdesc'] = "Path of the log file of the Ranksystem.<br><br>Example:<br>/var/logs/ranksystem/<br><br>Be sure, the webuser has the write-permissions to the logpath.";
$lang['wilogout'] = "تسجيل الخروج";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to ensure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection.";
$lang['winav11'] = "Please define a Bot-Admin, which should be the administrator of the Ranksystem (TeamSpeak -> Bot-Admin). This is very important in case you lost your login credentials for the webinterface.";
$lang['winav12'] = "Addons";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Database";
$lang['winav3'] = "Core";
$lang['winav4'] = "Other";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Naməlum xəta baş verib!";
$lang['factor'] = "Factor";
$lang['highest'] = "ən yüksək dərəcəyə çatdı";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Quraşdırma";
$lang['instdb'] = "Verilənlər bazasını quraşdırın";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Şifrə dəyiş";
$lang['pass3'] = "köhnə şifrə";
$lang['pass4'] = "yeni şifrə";
$lang['pass5'] = "Şifrənizi unutmusunuz?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "təkrar";
$lang['resettime'] = "Istifadəçi %s (unikal Müştəri-ID: %s; Client-database-ID: %s) onlayn və boş vaxtını sıfırla bərpa et, bir istisna (server və ya müştəri istisnası) həyata çıxardı.";
$lang['sccupcount'] = "Unikal Müştərilər üçün ID (%s) üçün %s saniyəlik aktiv vaxt bir neçə saniyə əlavə olunacaq (Ranksystem jurnalına baxın).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Virgülle ayrılmış unikal Müştəri ID siyahısı,
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "sıralama tərifi";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Burada müəyyən olunduqdan sonra istifadəçi avtomatik olaraq əvvəlcədən təyin edilmiş server qrupunu almalıdır.<br><br><pre>vaxt (saniyə)=>server qrup ID</pre><br>Maks. dəyər 999.999.999 saniyə (31 ildən çoxdur)<br><br>Bunun üçün mühüm rejimdən asılı olaraq istifadəçinin 'onlayn vaxt' və ya 'aktiv vaxt' olması vacibdir.<br><br>Hər bir giriş vergüllə bir-birindən ayrı olmalıdır.<br><br>Vaxt kumulyativ şəkildə təqdim edilməlidir<br><br>Məsələn:<br><pre>60=>9,120=>10,180=>11</pre>Bu nümunədə bir istifadəçi 60 saniyə sonra server qrup 9, server qrup 10 digər 60 saniyə sonra, server qrup 11 digər 60 saniyə sonra alır.";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Burada müəyyən olunduqdan sonra istifadəçi avtomatik olaraq əvvəlcədən təyin edilmiş server qrupunu almalıdır.<br><br><pre>vaxt (saniyə) => server qrup ID => permanent flag</pre><br>Maks. dəyər 999.999.999 saniyə (31 ildən çoxdur)<br><br>Bunun üçün mühüm rejimdən asılı olaraq istifadəçinin 'onlayn vaxt' və ya 'aktiv vaxt' olması vacibdir.<br><br>Hər bir giriş vergüllə bir-birindən ayrı olmalıdır.<br><br>Vaxt kumulyativ şəkildə təqdim edilməlidir<br><br>Məsələn:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>Bu nümunədə bir istifadəçi 60 saniyə sonra server qrup 9, server qrup 10 digər 60 saniyə sonra, server qrup 11 digər 60 saniyə sonra alır.";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Siyahı sıralaması (Admin-Mod)";
$lang['wihladm0'] = "Təsvirin açıqlaması (klikləyin)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "ayarlar";
$lang['wiignidle'] = "Boş vaxt";
$lang['wiignidledesc'] = "Bir istifadəçinin boş vaxtını nəzərə almadan bir müddət müəyyənləşdirin.<br><br>Bir müştəri serverdə heç bir şey etməzsə (=idle), bu dəfə Ranksystem tərəfindən müəyyən edilir. Bu funksiya ilə müəyyən bir limitə qədər istifadəçinin boş vaxtları onlayn kimi qiymətləndirilmir, əksinə, aktiv vaxt hesab olunur. Yalnız müəyyən edilmiş həddən artıq olduqda, bu nöqtədən Ranks System üçün boş vaxt kimi sayılır.<br><br>Bu funksiya yalnız rejimi ilə əlaqəli məsələdir 'active time'.<br><br>Bu funksiyanın mənası, məs. söhbətlərdə dinləmə müddətini bir fəaliyyət kimi qiymətləndirir<br><br>0 saniyə = funksiyanı dayandırır<br><br>Məsələn:<br>Boş vaxt = 600 (saniyə)<br>Müştəri 8 dəqiqə dayanır.<br>└ 8 dəqiqəlik boşluqlar göz ardı olunacaq və istifadəçi buna görə də bu vaxtı aktiv olaraq alır. Kəsintilər artıq 12 dəqiqə artıb, onda vaxt 10 dəqiqə və bu halda 2 dəqiqə boş vaxt kimi hesablanır olunacaq, ilk 10 dəqiqə hələ də fəal vaxt kimi qəbul olunacaqdır.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Jurnal yolları";
$lang['wilogdesc'] = "Sıralama sistemi log fayl yolu.<br><br>Məsələn:<br>/var/logs/Ranksystem/<br><br>Əmin olun ki, Webuser (= veb sahəsi istifadəçisi) günlük faylına yazma icazəsi var.";
$lang['wilogout'] = "Çıxış";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Xahiş edirik web saytını yalnız %sHTTPS%s istifadə edin. Şifrələmə gizlilik və təhlükəsizliyinizə əmin olmaq üçün vacibdir.%sTelefonunuzun HTTPS istifadə edə bilməsi üçün SSL bağlantısını dəstəkləmək lazımdır.";
$lang['winav11'] = "Xahiş edirik, Ranksystem (TeamSpeak -> Bot-Admin) administratorunun unikal Müştəri ID daxil edin. Veb interfeys üçün giriş məlumatlarınızı unutmusunuzsa (sıfırlamaq üçün) çox vacibdir.";
$lang['winav12'] = "Əlavələr";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Verilənlər bazası";
$lang['winav3'] = "Əsas Parametr";
$lang['winav4'] = "Başqa";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Došlo k neznámé chybě!";
$lang['factor'] = "Factor";
$lang['highest'] = "Nejvyšší rank byl již dosažen!";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Adresa";
$lang['imprint_email'] = "E-Mailová adresa";
$lang['imprint_notes'] = "Dodatečné informace";
$lang['imprint_phone'] = "Telefon";
$lang['insec'] = "v Sekundách";
$lang['install'] = "Instalace";
$lang['instdb'] = "Nainstalovat databázi";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Změnit heslo";
$lang['pass3'] = "Staré heslo";
$lang['pass4'] = "Nové heslo";
$lang['pass5'] = "Zapomenuté heslo?";
$lang['privacy-policy'] = "Zásady ochrany osobních údajů";
$lang['privacy'] = "Zásady ochrany osobních údajů";
$lang['repeat'] = "Opakovat (obnovit)";
$lang['resettime'] = "Obnovení času online a nečinnosti uživatele% s (jedinečné ID klienta:% s; klientské databáze-ID% s) na nulu, což způsobilo, že uživatel byl odstraněn z výjimky.";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -155,7 +151,7 @@ $lang['stag0010'] = "Zvolte prosím alespoň jednu novou skupinu.";
$lang['stag0011'] = "Maximální počet ikonek: ";
$lang['stag0012'] = "nastavit skupiny";
$lang['stag0013'] = "Modul ON/OFF";
$lang['stag0014'] = "Zapněte doplněk ON (zapnuto) nebo OFF (vypnuto).<br><br>Při deaktivaci doplňku se možná část na statistiku / webu skryje.";
$lang['stag0014'] = "Zapněte doplněk ON (enabled) nebo OFF (disabled).<br><br>Při deaktivaci doplňku se možná část na statistiku / webu skryje.";
$lang['stag0015'] = "Nemohl jsem tě najít na TeamSpeak serveru. %sKlikni zde%s pro ověření své identity.";
$lang['stag0016'] = "Je třeba ověření!";
$lang['stag0017'] = "Ověření zde..";
@@ -432,9 +428,12 @@ $lang['wiexuiddesc'] = "Čárka odděluje seznam jedinečných identifikátorů
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Čas v sekundách";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "definice pořadí";
$lang['wigrptime2desc'] = "Definujte čas, po kterém by měl uživatel automaticky získat předdefinovanou serverovou skupinu.<br><br><pre>čas v sekundách => ID serverové skupiny</pre><br>Max. hodnota je 999.999.999 sekund (přes 31 let).<br><br>Zadané sekundy budou hodnoceny jako 'online čas' nebo 'aktivní čas', v závislosti na zvoleném „časovém režimu“.<br><br><br>Čas v sekundách je potřeba zadávat <b>kumulativně</b>!<br><br><u>špatně:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>správně:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Definujte zde a po uplynutí této doby by měl uživatel automaticky získat předdefinovanou serverovou skupinu.<br><br>Max. value are 999.999.999 seconds (over 31 years)<br><br><pre>čas (sekund)=>ID skupiny serverů</pre><br>Důležité pro toto je 'online čas' nebo 'aktivní čas' uživatel v závislosti na nastavení režimu.<br><br>Každý záznam se oddělí od dalšího čárkou.<br><br>Čas musí být zadán kumulativní<br><br>Příklad:<br><pre>60=>9,120=>10,180=>11</pre>Na tomto uživatelé dostanou po 60 sekundách servergroup 9, poté po 60 sekundách servergroup 10 a tak dále ...";
$lang['wigrptime2desc'] = "
Definujte čas, po kterém by měl uživatel automaticky získat předdefinovanou serverovou skupinu.<br><br><pre>čas v sekundách => ID serverové skupiny => permanent flag</pre><br>Max. hodnota je 999.999.999 sekund (přes 31 let).<br><br>Zadané sekundy budou hodnoceny jako 'online čas' nebo 'aktivní čas', v závislosti na zvoleném „časovém režimu.<br><br><br>Čas v sekundách je potřeba zadávat <b>kumulativně</b>!<br><br><u>špatně:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>správně:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Definujte zde a po uplynutí této doby by měl uživatel automaticky získat předdefinovanou serverovou skupinu.<br><br>Max. value are 999.999.999 seconds (over 31 years)<br><br><pre>čas (sekund) => ID skupiny serverů => permanent flag</pre><br>Důležité pro toto je 'online čas' nebo 'aktivní čas' uživatel v závislosti na nastavení režimu.<br><br>Každý záznam se oddělí od dalšího čárkou.<br><br>Čas musí být zadán kumulativní<br><br>Příklad:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>Na tomto uživatelé dostanou po 60 sekundách servergroup 9, poté po 60 sekundách servergroup 10 a tak dále ...";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Seznam hodnocení (režim administrátora)";
$lang['wihladm0'] = "Popis funkce (klikni)";
@@ -476,26 +475,35 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "nastavení";
$lang['wiignidle'] = "Ignorování nečinnosti";
$lang['wiignidledesc'] = "Definujte dobu, po kterou bude ignorována doba nečinnosti uživatele.<br><br>Když klient na serveru nečiní nic (= nečinný), tento čas je zaznamenán systémem Ranks. S touto funkcí nebude doba pohotovosti uživatele započítána, dokud nedojde k definovanému limitu. Pouze při překročení definovaného limitu se počítá od tohoto data pro systém Ranks jako nečinný čas.<br><br>Tato funkce se přehrává pouze ve spojení s rolí 'aktivní čas'. funkce je např vyhodnotit čas poslechu v konverzacích jako aktivita.<br><br>0 = vypnout funkci<br><br>Příklad:<br>Ignorovat nečinnost = 600 (vteřin)<br>Klient má nečinnost 8 minuntes<br>důsledky:<br>8 minut nečinnosti jsou ignorovány, a proto přijímá tento čas jako aktivní čas. Pokud se doba volnoběhu nyní zvýší na více než 12 minut, takže je čas delší než 10 minut, v tomto případě by se 2 minuty považovaly za nečinné.";
$lang['wiimpaddr'] = "Adresa";
$lang['wiimpaddrdesc'] = "Sem zadejte své jméno a adresu.<br>Například:<br><pre>Max Mustermann&lt;br&gt;<br>Musterstrasse 13&lt;br&gt;<br>05172 Musterhausen&lt;br&gt;<br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mailová adresa";
$lang['wiimpemaildesc'] = "Sem zadejte svou emailovou adresu.<br>Například:<br><pre>info@example.com</pre>";
$lang['wiimpnotes'] = "Dodatečné informace";
$lang['wiimpnotesdesc'] = "Zde přidejte další informace, například odmítnutí odpovědnosti.<br>Ponechejte pole prázdné, aby se tato část nezobrazila.<br>HTML kód pro formátování je povolen.";
$lang['wiimpphone'] = "Telefon";
$lang['wiimpphonedesc'] = "Zde zadejte své telefonní číslo s mezinárodní předvolbou.<br>Například:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Sem vložte své zásady ochrany osobních údajů (maximálně 21,588 znaků).<br>HTML kód pro formátování je povolen.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint funkce";
$lang['wiimpswitchdesc'] = "Aktivujte tuto funkci pro veřejné zobrazení Imprintu a prohlášení o ochraně dat.";
$lang['wiimpaddrdesc'] = "Sem zadejte své jméno a adresu.<br>Například:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpemaildesc'] = "Sem zadejte svou emailovou adresu.<br>Například:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Zde zadejte své telefonní číslo s mezinárodní předvolbou.<br>Například:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotesdesc'] = "Zde přidejte další informace, například odmítnutí odpovědnosti.<br>Ponechejte pole prázdné, aby se tato část nezobrazila.<br>HTML kód pro formátování je povolen.";
$lang['wiimpprivacydesc'] = "Sem vložte své zásady ochrany osobních údajů (maximálně 21,588 znaků).<br>HTML kód pro formátování je povolen.";
$lang['wilog'] = "Cesta k logům";
$lang['wilogdesc'] = "Cesta souboru protokolu systému Ranks.<br><br>Příklad:<br>/ var / logs / ranksystem /<br><br>Ujistěte se, že webuser má oprávnění zápisu do protokolu.";
$lang['wilogout'] = "Odhlásit se";
$lang['wimsgmsg'] = "Zprávy";
$lang['wimsgmsgdesc'] = "Definujte zprávu, která bude odeslána uživateli, když se zvedne další vyšší hodnost.<br><br>Tato zpráva bude odeslána prostřednictvím soukromé zprávy TS3. Takže každý znalý bb-kód může být použit, což také funguje pro normální soukromou zprávu.<br>%s<br><br>dříve strávený čas lze vyjádřit argumenty:<br>&#37;1\$s - dny<br>&#37;2\$s - hodiny<br>&#37;3\$s - minuty<br>&#37;4\$s - sekundy<br>&#37;5\$s - jméno dosažené serverové skupiny<br>&#37;6&#36;s - jméno uživatele (příjemce)<br><br>Příklad:<br><pre>Hey,\\nyou reached a higher rank, since you already connected for &#37;1\$s days, &#37;2\$s hours and &#37;3\$s minutes to our TS3 server.[B]Keep it up![/B] ;-)</pre>";
$lang['wimsgsn'] = "Serverové zprávy";
$lang['wimsgsndesc'] = "Definujte zprávu, která se zobrazí na stránce /stats/ jako serverové novinky<br><br>Můžeš použít základní HTML funkce pro úpravu<br><br>Například:<br>&#60;b&#62; - <b>pro tučné písmo</b><br>&#60;u&#62; - <u>pro podtržené písmo</u><br>&#60;i&#62; - <i>pro písmo s kurzívou</i><br>&#60;br&#62; - pro zalamování textu (nový řádek)";
$lang['wimsgsndesc'] = "Definujte zprávu, která se zobrazí na stránce /stats/ jako serverové novinky<br><br>Můžeš použít základní HTML funkce pro úpravu<br><br>Například:<br>&lt;b&gt; - <b>pro tučné písmo</b><br>&lt;u&gt; - <u>pro podtržené písmo</u><br>&lt;i&gt; - <i>pro písmo s kurzívou</i><br>&lt;br&gt; - pro zalamování textu (nový řádek)";
$lang['wimsgusr'] = "Oznámení o hodnocení";
$lang['wimsgusrdesc'] = "Informujte uživatele se soukromou textovou zprávou o jeho pozici.";
$lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Použijte webinterface pouze přes% s HTTPS% s Šifrování je důležité pro zajištění ochrany osobních údajů a zabezpečení.% SPomocí použití protokolu HTTPS, který potřebuje webový server k podpoře připojení SSL.";
$lang['winav11'] = "Zadejte prosím jedinečné ID klienta administrátora Ranksystem (TeamSpeak -> Bot-Admin). To je velmi důležité v případě, že jste přišli o své přihlašovací údaje pro webinterface (resetovat je).";
$lang['winav12'] = "Moduly";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Databáze";
$lang['winav3'] = "Hlavní nastavení";
$lang['winav4'] = "Ostatní";
@@ -512,7 +520,7 @@ $lang['winxmode3'] = "povoleno - všechny další úrovně";
$lang['winxmsg1'] = "Zpráva";
$lang['winxmsg2'] = "Zpráva (nejvyšší)";
$lang['winxmsg3'] = "Zpráva (s výjimkou)";
$lang['winxmsgdesc1'] = "Definujte zprávu, kterou uživatel obdrží jako odpověď příkazem \"!nextup\".<br><br>Argumenty:<br><pre>%1\$s - dny na další rankup<br>%2\$s - hodiny next rankup<br>%3\$s - minuty do dalšího rankupu<br>%4\$s - sekundy do dalšího rankupu<br>%5\$s - název další skupiny serverů<br>%6\$s - název uživatel (příjemce)<br>&#37;7&#36;s - aktuální uživatelova hodnost<br>&#37;8&#36;s - jméno aktuální serverové skupiny<br>&#37;9&#36;s - doba aktuální serverové skupiny</pre><br><br>Příklad:<br><pre>Vaše další hodnocení bude v %1\$s dny, %2\$s hodinách a %3\$s minut a %4\$s vteřin. Další skupina serverů, které dosáhnete, je [B]%5\$s[/ B].</pre>";
$lang['winxmsgdesc1'] = "Definujte zprávu, kterou uživatel obdrží jako odpověď příkazem \"!nextup\".<br><br>Argumenty:<br><pre>%1\$s - dny na další rankup<br>%2\$s - hodiny next rankup<br>%3\$s - minuty do dalšího rankupu<br>%4\$s - sekundy do dalšího rankupu<br>%5\$s - název další skupiny serverů<br>%6\$s - název uživatel (příjemce)<br>&#37;7&#36;s - aktuální uživatelova hodnost<br>&#37;8&#36;s - jméno aktuální serverové skupiny<br>&#37;9&#36;s - doba aktuální serverové skupiny</pre><br><br>Příklad:<br><pre>Vaše další hodnocení bude v %1\$s dny, %2\$s hodinách a %3\$s minut a %4\$s vteřin. Další skupina serverů, které dosáhnete, je [B]%5\$s[/B].</pre>";
$lang['winxmsgdesc2'] = "Definujte zprávu, kterou uživatel obdrží jako odpověď na příkaz \"!nextup\", když uživatel již dosáhl nejvyšší pozici.<br><br>Argumenty:<br><pre>%1\$s - dny na další rankup<br>%2\$s - hodiny do dalšího rankupu<br>%3\$s - minuty do dalšího rankupu<br>%4\$s - sekundy do dalšího rankupu<br>%5\$s - název další skupiny serverů<br>%6\$s - jméno uživatele (příjemce)<br>&#37;7&#36;s - aktuální uživatelova hodnost<br>&#37;8&#36;s - jméno aktuální serverové skupiny<br>&#37;9&#36;s - doba aktuální serverové skupiny</pre><br><br>Příklad:<br><pre>Dosáhli jste nejvyšší pozici za %1\$s dní, %2\$s hodin a %3\$s minut a %4\$s sekund.</pre>";
$lang['winxmsgdesc3'] = "Definujte zprávu, kterou uživatel obdrží jako odpověď na příkaz \"!nextup\", když je uživatel vyloučen z Ranksystemu.<br><br>Argumenty:<br><pre>%1\$s - dny na další rankup<br>%2\$s - hodiny do dalšího rankupu<br>%3\$s - minuty do dalšího rankupu<br>%4\$s - sekund do dalšího rankupu<br>%5\$s - název další skupiny serverů<br>%6\$s - jméno uživatele (příjemce)<br>&#37;7&#36;s - aktuální uživatelova hodnost<br>&#37;8&#36;s - jméno aktuální serverové skupiny<br>&#37;9&#36;s - doba aktuální serverové skupiny</pre><br><br>Příklad:<br><pre>Máte výjimku z Ranksystému. Pokud to chcete změnit, kontaktujte administrátora na serveru TS3.</pre>";
$lang['wirtpw1'] = "Promiň Bro, už jste zapomněli zadat vaše Bot-Admin do webového rozhraní dříve. The only way to reset is by updating your database! A description how to do can be found here:<br>%s";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Unbekannter Fehler aufgetreten!";
$lang['factor'] = "Faktor";
$lang['highest'] = "höchster Rang erreicht";
$lang['imprint'] = "Impressum";
$lang['imprint_address'] = "Anschrift";
$lang['imprint_email'] = "E-Mail-Adresse";
$lang['imprint_notes'] = "Zusätzliche Informationen";
$lang['imprint_phone'] = "Telefon";
$lang['insec'] = "in Sekunden";
$lang['install'] = "Installation";
$lang['instdb'] = "Installiere Datenbank";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Passwort ändern";
$lang['pass3'] = "altes Passwort";
$lang['pass4'] = "neues Passwort";
$lang['pass5'] = "Passwort vergessen?";
$lang['privacy-policy'] = "Datenschutzerklärung";
$lang['privacy'] = "Datenschutzerklärung";
$lang['repeat'] = "wiederholen";
$lang['resettime'] = "Setze die online und aktive Zeit des Benutzers %s (eindeutige Client-ID: %s; Client-Datenbank-ID: %s) auf Null zurück, da er aus der Ausnahme entfernt wurde.";
$lang['sccupcount'] = "Aktive Zeit von %s Sekunden für die eindeutige Client-ID (%s) wird in wenigen Sekunden hinzugefügt (siehe Ranksystem-Log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Eine mit Komma getrennte Liste von eindeutigen Client-I
$lang['wigrpimp'] = "Import Modus";
$lang['wigrpt1'] = "Zeit in Sekunden";
$lang['wigrpt2'] = "Servergruppe";
$lang['wigrptime'] = "Rangsteigerung Definition";
$lang['wigrptime2desc'] = "Definiere hier, nach welcher Zeit ein User automatisch in eine vorgegebene Servergruppe gelangen soll.<br><br><pre>Zeit (Sekunden) => Servergruppen ID</pre><br>Maximaler Wert sind 999.999.999 Sekunden (über 31 Jahre)<br><br>Die eingegebenen Sekunden werden als 'online Zeit' oder 'aktive Zeit' gewertet, je nach dem welcher 'Zeit-Modus' gewählt ist.<br><br>Die Zeiten sind <b>kumulativ</b> zu hinterlegen.<br><br><u>falsch:</u><br><br><pre>100 Sekunden, 100 Sekunden, 50 Sekunden</pre><u>richtig:</u><br><br><pre>100 Sekunden, 200 Sekunden, 250 Sekunden</pre>";
$lang['wigrptimedesc'] = "Definiere hier, nach welcher Zeit ein User automatisch in eine vorgegebene Servergruppe gelangen soll.<br><br><pre>Zeit (Sekunden)=>Servergruppen ID</pre><br>Maximaler Wert sind 999.999.999 Sekunden (über 31 Jahre)<br><br>Die eingegebenen Sekunden werden als 'online Zeit' oder 'aktive Zeit' gewertet, je nach dem welcher 'Zeit-Modus' gewählt ist.<br><br>Jeder Eintrag ist vom nächsten durch ein Komma zu separieren.<br><br>Die Zeiten sind <b>kumulativ</b> zu hinterlegen.<br><br>Beispiel:<br><pre>60=>9,120=>10,180=>11</pre>In diesem Beispiel erhält ein User die Servergruppe 9 nach 60 Sekunden, die Servergruppe 10 nach weiteren 60 Sekunden, die Servergruppe 11 nach weiteren 60 Sekunden.";
$lang['wigrpt3'] = "Permanente Gruppe";
$lang['wigrptime'] = "Rank Definition";
$lang['wigrptime2desc'] = "Definiere hier, nach welcher Zeit ein User automatisch in eine vorgegebene Servergruppe gelangen soll.<br><br><pre>Zeit (Sekunden) => Servergruppen ID => Permanente Gruppe</pre><br>Maximaler Wert sind 999.999.999 Sekunden (über 31 Jahre)<br><br>Die eingegebenen Sekunden werden als 'online Zeit' oder 'aktive Zeit' gewertet, je nach dem welcher 'Zeit-Modus' gewählt ist.<br><br>Die Zeiten sind <b>kumulativ</b> zu hinterlegen.<br><br><u>falsch:</u><br><br><pre>100 Sekunden, 100 Sekunden, 50 Sekunden</pre><u>richtig:</u><br><br><pre>100 Sekunden, 200 Sekunden, 250 Sekunden</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanente Gruppe</u><br>Dies ermöglicht es, eine Servergruppe als 'permanent' zu kennzeichnen, die dann bei der nächsten Rangsteigerung nicht entfernt werden soll. Die Zeile, mit dieser Kennzeichnung (='ON'), bleibt vom Ranksystem dauerhaft erhalten.<br>Mit der Voreinstellung (='OFF'), wird die aktuelle Servergruppe zu dem Zeitpunkt entfernt, zu dem der User einen höheren Rang erreicht.";
$lang['wigrptimedesc'] = "Definiere hier, nach welcher Zeit ein User automatisch in eine vorgegebene Servergruppe gelangen soll.<br><br><pre>Zeit (Sekunden) => Servergruppen ID => Permanente Gruppe</pre><br>Maximaler Wert sind 999.999.999 Sekunden (über 31 Jahre)<br><br>Die eingegebenen Sekunden werden als 'online Zeit' oder 'aktive Zeit' gewertet, je nach dem welcher 'Zeit-Modus' gewählt ist.<br><br>Jeder Eintrag ist vom nächsten durch ein Komma zu separieren.<br><br>Die Zeiten sind <b>kumulativ</b> zu hinterlegen.<br><br>Beispiel:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>In diesem Beispiel erhält ein User die Servergruppe 9 nach 60 Sekunden, die Servergruppe 10 nach weiteren 60 Sekunden, die Servergruppe 11 nach weiteren 60 Sekunden.";
$lang['wigrptk'] = "kumulativ";
$lang['wihladm'] = "List Rankup (Admin-Modus)";
$lang['wihladm0'] = "Funktions-Beschreibung (hier klicken)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Bitte %s bestätige %s die Jobs. Damit wird der Job-Sta
$lang['wihlset'] = "Einstellungen";
$lang['wiignidle'] = "Ignoriere Idle";
$lang['wiignidledesc'] = "Lege eine Zeit fest, bis zu der die Idle-Zeit eines Users ignoriert werden soll.<br><br>Unternimmt ein Client nichts auf dem Server (=Idle), kann diese Zeit vom Ranksystem festgestellt werden. Mit dieser Funktion wird die Idle-Zeit eines User bis zur definierten Grenze nicht als Idle-Zeit gewertet, sprich sie zählt dennoch als aktive Zeit. Erst wenn der definierte Wert überschritten wird, zählt sie ab diesem Zeitpunkt für das Ranksystem auch als Idle-Zeit.<br><br>Diese Funktion spielt nur in Verbindung mit dem Modus 'aktive Zeit' eine Rolle.<br>Sinn der Funktion ist es z.B. die Zeit des Zuhörens bei Gesprächen als Aktivität zu werten.<br><br>0 Sec. = Deaktivieren der Funktion<br><br>Beispiel:<br>Ignoriere Idle = 600 (Sekunden)<br>Ein Client hat einen Idle von 8 Minuten.<br>Folge:<br>Die 8 Minuten Idle werden ignoriert und der User erhält demnach diese Zeit als aktive Zeit. Wenn sich die Idle-Zeit nun auf 12 Minuten erhöht, so wird die Zeit über 10 Minuten, also 2 Minuten, auch als Idle-Zeit gewertet. Die ersten 10 Minuten zählen weiterhin als aktive Zeit.";
$lang['wiimpaddr'] = "Anschrift";
$lang['wiimpaddrdesc'] = "Trage hier deinen Namen und Anschrift ein.<br><br>Beispiel:<br><pre>Max Mustermann&#60;br><br>Musterstraße 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Impressum URL";
$lang['wiimpaddrurldesc'] = "Füge eine URL zu einer eigenen Impressum-Seite hinzu.<br><br>Beispiel:<br><pre>https://site.url/imprint/</pre><br>Um die anderen Felder für die Anzeige direkt auf der Ranksystem Satistik-Seite zu nutzen, leere dieses Feld.";
$lang['wiimpemail'] = "E-Mail Addresse";
$lang['wiimpemaildesc'] = "Trage hier deine E-Mail-Adresse ein.<br><br>Beispiel:<br><pre>info@example.com</pre>";
$lang['wiimpnotes'] = "Zusätzliche Informationen";
$lang['wiimpnotesdesc'] = "Füge hier zusätzliche Informationen, wie zum Beispiel einen Haftungsausschluss ein.<br>Lasse das Feld leer, damit dieser Abschnitt nicht angezeigt wird.<br>HTML-Code für die Formatierung ist zulässig.";
$lang['wiimpphone'] = "Telefon";
$lang['wiimpphonedesc'] = "Trage hier deine Telefonnummer mit internationaler Vorwahl ein.<br><br>Beispiel:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Füge hier deine Datenschutzerklärung ein (maximal 21588 Zeichen).<br>HTML-Code für die Formatierung ist zulässig.";
$lang['wiimpprivurl'] = "Datenschutz URL";
$lang['wiimpprivurldesc'] = "Füge eine URL zu einer eigenen Datenschutz-Seite hinzu.<br><br>Beispiel:<br><pre>https://site.url/privacy/</pre><br>Um die anderen Felder für die Anzeige direkt auf der Ranksystem Satistik-Seite zu nutzen, leere dieses Feld.";
$lang['wiimpswitch'] = "Impressums-Funktion";
$lang['wiimpswitchdesc'] = "Aktiviere diese Funktion, um das Impressum und die Datenschutzerklärung öffentlich anzuzeigen.";
$lang['wiimpaddrdesc'] = "Trage hier deinen Namen und Anschrift ein.<br>Beispiel:<br><pre>Max Mustermann&#60;br><br>Musterstraße 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpemaildesc'] = "Trage hier deine E-Mail-Adresse ein.<br>Beispiel:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Trage hier deine Telefonnummer mit internationaler Vorwahl ein.<br>Beispiel:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotesdesc'] = "Füge hier zusätzliche Informationen, wie zum Beispiel einen Haftungsausschluss ein.<br>Lasse das Feld leer, damit dieser Abschnitt nicht angezeigt wird.<br>HTML-Code für die Formatierung ist zulässig.";
$lang['wiimpprivacydesc'] = "Füge hier deine Datenschutzerklärung ein (maximal 21588 Zeichen).<br>HTML-Code für die Formatierung ist zulässig.";
$lang['wilog'] = "Log-Pfad";
$lang['wilogdesc'] = "Pfad in dem die Log-Datei des Ranksystems geschrieben werden soll.<br><br>Beispiel:<br>/var/logs/ranksystem/<br><br>Beachte, dass der User des Webservers Schreibrechte in dem Verzeichnis hat.";
$lang['wilogout'] = "Abmelden";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Bitte nutze das Webinterface nur via %s HTTPS%s Eine Verschlüsselung ist wichtig um die Privatsphäre und Sicherheit zu gewährleisten.%sUm HTTPS nutzen zu können, muss der Webserver eine SSL-Verbindung unterstützen.";
$lang['winav11'] = "Bitte definiere einen Bot-Admin, welcher der Administrator des Ranksystems ist (TeamSpeak -> Bot-Admin). Dies ist sehr wichtig im Falle des Verlustes der Login-Daten für das Webinterface.";
$lang['winav12'] = "Addons";
$lang['winav13'] = "Allgemein (Statistiken)";
$lang['winav2'] = "Datenbank";
$lang['winav3'] = "Kern";
$lang['winav4'] = "Anderes";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "An unknown error has occurred!";
$lang['factor'] = "Factor";
$lang['highest'] = "highest rank reached";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Installation";
$lang['instdb'] = "Install database";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Change password";
$lang['pass3'] = "old password";
$lang['pass4'] = "new password";
$lang['pass5'] = "Forgot password?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "repeat";
$lang['resettime'] = "Reset the online and idle time of user %s (unique Client-ID: %s; Client-database-ID %s) to zero, cause user got removed out of an exception (servergroup or client exception).";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "A comma separated list of unique Client-IDs, which shou
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrptime'] = "rank up definition";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds)=>servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9,120=>10,180=>11</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Rank Definition";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds) => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "List Rankup (Admin-Mode)";
$lang['wihladm0'] = "Description of function (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "settings";
$lang['wiignidle'] = "Ignore idle";
$lang['wiignidledesc'] = "Define a period, up to which the idle time of a user will be ignored.<br><br>If a client does nothing on the server (=idle), this time can be determined by the Ranksystem. With this function the idle time of a user up to the defined limit is not evaluated as idle time, rather it counts as active time. Only when the defined limit is exceeded, it counts from that point on for the Ranksystem as idle time.<br><br>This function does matter only in conjunction with the mode 'active time'.<br><br>Meaning the function is e.g. to evaluate the time of listening in conversations as an activity.<br><br>0 Sec. = disables this function<br><br>Example:<br>Ignore idle = 600 (seconds)<br>A client has an idle of 8 minuntes.<br>└ 8 minutes idle will be ignored and the user therefore receives this time as active time. If the idle time now increased to 12 minutes, the time is over 10 minutes and in this case 2 minutes would be counted as idle time, the first 10 minutes still as active time.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br><br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br><br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br><br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Logpath";
$lang['wilogdesc'] = "Path of the log file of the Ranksystem.<br><br>Example:<br>/var/logs/Ranksystem/<br><br>Be sure, the Webuser (= user of the web space) has the write-out permissions to the log file.";
$lang['wilogout'] = "Logout";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to make sure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection.";
$lang['winav11'] = "Please define a Bot-Admin, which should be the administrator of the Ranksystem (TeamSpeak -> Bot-Admin). This is very important in case you lost your login credentials for the webinterface.";
$lang['winav12'] = "Add-ons";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Database";
$lang['winav3'] = "Core";
$lang['winav4'] = "Other";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Un error desconocido a ocurrido!";
$lang['factor'] = "Factor";
$lang['highest'] = "rango más alto alcanzado";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Instalación";
$lang['instdb'] = "Instalar base de datos";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Cambiar contraseña";
$lang['pass3'] = "Antigua contraseña";
$lang['pass4'] = "Nueva contraseña";
$lang['pass5'] = "¿Se te olvidó tu contraseña?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "repetir";
$lang['resettime'] = "Restablecer el tiempo en línea y inactivo del usuario %s (ID de cliente unica: %s; ID de cliente en base de datos %s) a cero, causa que el usuario sea eliminado de la excepción.";
$lang['sccupcount'] = "Tiempo activo de %s segundos para el ID de cliente unica (%s) se agregará en unos segundos (echa un vistazo al log de Ranksystem).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Una lista separada por comas de identificadores de clie
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "subir de rango definición";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Defina aquí después de qué momento un usuario debe obtener automáticamente un grupo de servidores predefinido.<br><br><pre>tiempo (segundos)=>grupo de servidores ID</pre><br>Max. valor son 999.999.999 segundos (más de 31 años)<br><br>Importante para esto es el 'tiempo en línea' o el 'tiempo activo' de un usuario, dependiendo de la configuración del modo.<br><br>Cada entrada tiene que separarse de la siguiente con una coma.<br><br>El tiempo debe ser ingresado acumulativo<br><br>Ejemplo:<br><pre>60=>9,120=>10,180=>11</pre>En esto, un usuario obtiene después de 60 segundos el grupo de servidores 9, a su vez después de 60 segundos el grupo de servidores 10, y así sucesivamente ...";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Defina aquí después de qué momento un usuario debe obtener automáticamente un grupo de servidores predefinido.<br><br><pre>tiempo (segundos) => grupo de servidores ID => permanent flag</pre><br>Max. valor son 999.999.999 segundos (más de 31 años)<br><br>Importante para esto es el 'tiempo en línea' o el 'tiempo activo' de un usuario, dependiendo de la configuración del modo.<br><br>Cada entrada tiene que separarse de la siguiente con una coma.<br><br>El tiempo debe ser ingresado acumulativo<br><br>Ejemplo:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>En esto, un usuario obtiene después de 60 segundos el grupo de servidores 9, a su vez después de 60 segundos el grupo de servidores 10, y así sucesivamente ...";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Lista rangos (modo de administrador)";
$lang['wihladm0'] = "Function description (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "Configuración";
$lang['wiignidle'] = "Ignorar idle";
$lang['wiignidledesc'] = "Defina un período, hasta el cual se ignorará el tiempo de inactividad de un usuario.<br><br>Cuando un cliente no hace nada en el servidor (=inactivo), esta vez lo notará Ranksystem. Con esta característica, el tiempo de inactividad de un usuario no se contará hasta el límite definido. Solo cuando se excede el límite definido, cuenta desde ese punto para el sistema de rangos como tiempo de inactividad.<br><br>Esta función solo importa junto con el modo 'tiempo activo'.<br><br>Lo que significa que la función es, p. evaluar el tiempo de escucha en conversaciones como actividad.<br><br>0 Segundos. = desactivar esta función<br><br>Ejemplo:<br>Ignorar inactivo = 600 (segundos)<br>Un cliente tiene una inactividad de 8 minutos.<br>└ Se ignoran 8 minutos inactivos y, por lo tanto, recibe esta vez como tiempo activo. Si el tiempo de inactividad ahora aumentó a 12 minutos, el tiempo es más de 10 minutos y en este caso 2 minutos se contarán como tiempo de inactividad, los primeros 10 minutos como tiempo de actividad.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Logpath";
$lang['wilogdesc'] = "Ruta del archivo de registro de Ranksystem.<br><br>Ejemplo:<br>/var/logs/ranksystem/<br><br>Asegúrese de que el usuario web tenga los permisos de escritura en el logpath.";
$lang['wilogout'] = "Cerrar sesión";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Utilice la webinterface solo a través de %s HTTPS%s Una encriptación es fundamental para garantizar su privacidad y seguridad.%sPara poder usar HTTPS, su servidor web necesita una conexión SSL.";
$lang['winav11'] = "Ingrese el ID de cliente único del administrador del Ranksystem (TeamSpeak -> Bot-Admin). Esto es muy importante en caso de que haya perdido sus datos de inicio de sesión para la webinterface (para restablecerlos).";
$lang['winav12'] = "Complementos";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Base de datos";
$lang['winav3'] = "Núcleo";
$lang['winav4'] = "Otro";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Une erreur inconnue s'est produite !";
$lang['factor'] = "Factor";
$lang['highest'] = "plus haut rang atteint";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Installation";
$lang['instdb'] = "Installer la base de données";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Changer le mot de passe";
$lang['pass3'] = "Ancien mot de passe";
$lang['pass4'] = "Nouveau mot de passe";
$lang['pass5'] = "Mot de passe oublié ?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "Répéter";
$lang['resettime'] = "Réinitialiser le temps d'inactivité et d'inactivité de l'utilisateur %s (Identifiant unique: %s; ID dans la base de donnée %s) à zéro, parce que l'utilisateur a été supprimé de l'exception.";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Des virgules séparent une liste d'indentifiant unique
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Définition des prochains rangs";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Définissez ici après quoi un utilisateur doit automatiquement obtenir un groupe de serveurs prédéfini.<br><br><pre>temps (secondes)=>ID du groupe de serveur</pre><br>Max. value is 999.999.999 seconds (over 31 years)<br><br>Important pour cela est le 'online time' ou le 'active time' d'un utilisateur, en fonction du réglage du mode.<br><br>Chaque entrée doit se séparer de la suivante avec une virgule.<br><br>L'heure doit être saisie cumulative<br><br>Exemple:<br><pre>60=>9,120=>10,180=>11</pre>Sur ce un utilisateur obtient après 60 secondes le groupe de serveurs 9, à son tour après 60 secondes le groupe de serveurs 10, et ainsi de suite ...";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Définissez ici après quoi un utilisateur doit automatiquement obtenir un groupe de serveurs prédéfini.<br><br><pre>temps (secondes) => ID du groupe de serveur => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years)<br><br>Important pour cela est le 'online time' ou le 'active time' d'un utilisateur, en fonction du réglage du mode.<br><br>Chaque entrée doit se séparer de la suivante avec une virgule.<br><br>L'heure doit être saisie cumulative<br><br>Exemple:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>Sur ce un utilisateur obtient après 60 secondes le groupe de serveurs 9, à son tour après 60 secondes le groupe de serveurs 10, et ainsi de suite ...";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Liste de classement (Mode-Admin)";
$lang['wihladm0'] = "Function description (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "paramètres";
$lang['wiignidle'] = "Ignorer le mode inactif";
$lang['wiignidledesc'] = "Définissez une période, jusqu'à laquelle le temps d'inactivité d'un utilisateur sera ignoré.<br><br>Lorsqu'un client ne fait rien sur le serveur (= inactif), ce temps est noté par le Ranksystem. Avec cette fonction, le temps d'inactivité d'un utilisateur ne sera compté que lorsque la limite définie. Seulement quand la limite définie est dépassée, le Ranksystem compte le temps d'inactivité<br><br>Cette fonction joue seulement en conjonction avec le mode 'active time' un rôle.<br><br>Ce qui signifie que la fonction est, par exemple, pour évaluer le temps d'écoute dans les conversations, cela est définie comme une activitée.<br><br>0 = désactiver la fonction<br><br>Exemple:<br>Ignorer le mode inactif = 600 (secondes)<br>Un client a un ralenti de 8 minutes<br>Conséquence:<br>8 minutes de ralenti sont ignorés et il reçoit donc cette fois comme temps actif. Si le temps d'inactivité augmente maintenant à plus de 12 minutes, le temps dépasse 10 minutes et, dans ce cas, 2 minutes seront comptées comme temps d'inactivité.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Emplacement des logs";
$lang['wilogdesc'] = "Chemin du fichier journal du Ranksystem.<br><br>Exemple:<br>/var/logs/ranksystem/<br><br>Assurez-vous que l'utilisateur Web possède les autorisations d'écriture dans le chemin d'accès aux log.";
$lang['wilogout'] = "Déconnexion";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Veuillez utiliser l'interface Web uniquement via %s HTTPS%s Un cryptage est essentiel pour assurer votre confidentialité et votre sécurité.%sPour pouvoir utiliser le protocole HTTPS, votre serveur Web doit prendre en charge une connexion SSL.";
$lang['winav11'] = "Veuillez saisir l'identifiant client unique de l'administrateur du Ranksystem (TeamSpeak -> Bot-Admin). Ceci est très important dans le cas où vous avez perdu vos informations de connexion pour l'interface Web (pour les réinitialiser).";
$lang['winav12'] = "Addons";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Base de données";
$lang['winav3'] = "Coeur";
$lang['winav4'] = "Autres";

View File

@@ -50,11 +50,7 @@ $lang['errselusr'] = "Kérjük, válasszon legalább egy felhasználót!";
$lang['errukwn'] = "Ismeretlen hiba lépett fel!";
$lang['factor'] = "Tényező";
$lang['highest'] = "Elérte a legnagyobb rangot";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['imprint'] = "Impresszum";
$lang['insec'] = "Másodpercben";
$lang['install'] = "Telepítés";
$lang['instdb'] = "Telepítse az adatbázist";
@@ -120,7 +116,7 @@ $lang['pass2'] = "jelszóváltoztatás";
$lang['pass3'] = "régi jelszó";
$lang['pass4'] = "új jelszó";
$lang['pass5'] = "Elfelejtett jelszó?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Adatvédelmi irányelvek";
$lang['repeat'] = "ismét";
$lang['resettime'] = "Nullázza a felhasználó online és tétlen idejét %s (unique Client-ID: %s; Client-database-ID %s) nullára, oka, hogy a felhasználót eltávolították egy kivételből (szervercsoport vagy kliens kivétel).";
$lang['sccupcount'] = "%s másodperc az (%s) unique Client-ID-hez hozzá lesz adva egy pillanat alatt (nézd meg a Ranksystem naplót).";
@@ -143,7 +139,7 @@ $lang['size_yib'] = "YiB";
$lang['size_zib'] = "ZiB";
$lang['stag0001'] = "Szervercsoport hozzárendelés";
$lang['stag0001desc'] = "Az 'Szervercsoportok hozzárendelése' funkcióval lehetővé teszi a TeamSpeak felhasználó számára, hogy kiszolgálócsoportjait (önkiszolgálóként) kezelje a TeamSpeak szerveren (például játék-, ország-, nemek-csoportok).<br><br>A funkció aktiválásával egy új menüpont jelenik meg a statisztikán / oldalon. A menüpont körül a felhasználó kezelheti saját szervercsoportjait.<br><br>Ön meghatározza, mely csoportoknak legyen elérhetők.<br>Beállíthat egy számot is az egyidejű csoportok korlátozására.";
$lang['stag0002'] = "Engedélyezett Csoportok";
$lang['stag0002'] = "Engedélyezett csoportok";
$lang['stag0003'] = "Határozza meg a szervercsoportok listáját, amelyekhez a felhasználó hozzárendelheti magát.<br><br>A kiszolgálócsoportokat ide kell beírni, a csoportID vesszővel elválasztva.<br><br>Példa:<br><pre>23,24,28</pre>";
$lang['stag0004'] = "Egyidejű csoportok korlátozása";
$lang['stag0005'] = "Korlátozza a kiszolgálócsoportok számát, amelyeket egyszerre lehet beállítani.";
@@ -322,7 +318,7 @@ $lang['stri0025'] = "%s a lengyel fordításért";
$lang['stri0026'] = "%s a spanyol fordításért";
$lang['stri0027'] = "%s a magyar fordításért";
$lang['stri0028'] = "%s azerbajdzsán fordításért";
$lang['stri0029'] = "%s for the imprint function";
$lang['stri0029'] = "%s az impresszum funkcióért";
$lang['stta0001'] = "Összesítve";
$lang['sttm0001'] = "A hónapban";
$lang['sttw0001'] = "Toplista";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Vesszővel elválasztott egyedi ügyfél-azonosítók l
$lang['wigrpimp'] = "Importálási Mód";
$lang['wigrpt1'] = "Az idő másodpercekben";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrptime'] = "rank fejlődési meghatározás";
$lang['wigrptime2desc'] = "Adja meg azt az időtartamot, amely után a felhasználó automatikusan megkap egy előre meghatározott szervercsoportot.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. érték 999 999 999 másodperc (31 év felett).<br><br>A megadott másodperceket „online idő” vagy „aktív idő” besorolásúnak tekintjük, a választott „idő mód” beállításától függően.<br><br><br>A másodpercben megadott időt <b>kumulatív</b> módon kell megadni!<br><br><u>helytelen:</u><br><br><pre>100 másodperc, 100 másodperc, 50 másodperc</pre><u>helyes:</u><br><br><pre>100 másodperc, 200 másodperc, 250 másodperc</pre>";
$lang['wigrptimedesc'] = "Itt határozza meg, mely idő elteltével a felhasználónak automatikusan meg kell kapnia egy előre meghatározott szervercsoportot.<br><br><pre>time (seconds)=>servergroup ID</pre><br>Max. érték 999 999 999 másodperc (31 év felett).<br><br>A megadott másodperceket „online idő” vagy „aktív idő” besorolásúnak tekintjük, a választott „idő mód” beállításától függően.<br><br>Minden bejegyzést vesszővel kell elválasztani a következőtől.<br><br>Az időt kumulatív módon kell megadni<br><br>Példa:<br><pre>60=>9,120=>10,180=>11</pre>Ebben a példában a felhasználó 60 másodperc után megkapja a 9. szervercsoportot, további 60 másodperc után a 10. szervercsoportot, a 11. szervercsoport további 60 másodperc után.";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Rang meghatározás";
$lang['wigrptime2desc'] = "Adja meg azt az időtartamot, amely után a felhasználó automatikusan megkap egy előre meghatározott szervercsoportot.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. érték 999 999 999 másodperc (31 év felett).<br><br>A megadott másodperceket „online idő” vagy „aktív idő” besorolásúnak tekintjük, a választott „idő mód” beállításától függően.<br><br><br>A másodpercben megadott időt <b>kumulatív</b> módon kell megadni!<br><br><u>helytelen:</u><br><br><pre>100 másodperc, 100 másodperc, 50 másodperc</pre><u>helyes:</u><br><br><pre>100 másodperc, 200 másodperc, 250 másodperc</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Itt határozza meg, mely idő elteltével a felhasználónak automatikusan meg kell kapnia egy előre meghatározott szervercsoportot.<br><br><pre>time (seconds) => servergroup ID => permanent flag</pre><br>Max. érték 999 999 999 másodperc (31 év felett).<br><br>A megadott másodperceket „online idő” vagy „aktív idő” besorolásúnak tekintjük, a választott „idő mód” beállításától függően.<br><br>Minden bejegyzést vesszővel kell elválasztani a következőtől.<br><br>Az időt kumulatív módon kell megadni<br><br>Példa:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>Ebben a példában a felhasználó 60 másodperc után megkapja a 9. szervercsoportot, további 60 másodperc után a 10. szervercsoportot, a 11. szervercsoport további 60 másodperc után.";
$lang['wigrptk'] = "halmozott";
$lang['wihladm'] = "Ranglista (Admin-Mód)";
$lang['wihladm0'] = "Funkció leírása (kattints ide)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Kérlek %s fogadd el %s a feladatokat. Ez visszaállít
$lang['wihlset'] = "beállítások";
$lang['wiignidle'] = "Tétlenség figyelmen kívül hagyása";
$lang['wiignidledesc'] = "Adjon meg egy periódust, amelyig a felhasználó tétlen idejét nem veszik figyelembe.<br><br>Ha az ügyfél nem tesz semmit a szerveren (= tétlen), ezt az időt a Ranksystem határozhatja meg. Ezzel a funkcióval a felhasználó tétlen idejét a meghatározott határértékig nem értékeli tétlen időként, hanem aktív időként számolja. Csak akkor, ha a meghatározott határértéket túllépik, attól a ponttól kezdve a Ranksystem számít üresjáratnak.<br><br>Ez a funkció csak az „aktív idő” móddal együtt számít.<br><br>A funkció jelentése pl. a beszélgetések hallgatásának ideje, mint tevékenység értékelése.<br><br>0 másodperc = letiltja ezt a funkciót<br><br>Példa:<br>tétlenség figyelmen kívül hagyása = 600 (másodperc)<br>Egy kliens több, mint 8 perce tétlen.<br>└ A 8 perces alapjáratot nem veszik figyelembe, ezért a felhasználó ezt az időt kapja aktív időként. Ha az alapjárati idő 12 percre nőtt, akkor az idő meghaladja a 10 percet, és ebben az esetben a 2 percet alapjáratnak számítják, az első 10 perc továbbra is aktív idő.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpaddr'] = "Cím";
$lang['wiimpaddrdesc'] = "Írja be ide nevét és címét.<br>Például:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Adjon meg egy URL-t a saját impresszum webhelyéhez.<br><br>Például:<br><pre>https://site.url/imprint/</pre><br>Üresítse ki ezt a mezőt, hogy a többi mező használatával megjelenítse az impresszumot a Ranksystem stats webhelyen.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Ide írja be e-mail címét.<br>Például:<br><pre>info@example.com</pre>";
$lang['wiimpnotes'] = "További információ";
$lang['wiimpnotesdesc'] = "Adjon ide további információkat, például felelősség kizárását.<br>Hagyja üresen a mezőt, hogy ez a szakasz ne jelenjen meg.<br>HTML-kód a formázás megengedett.";
$lang['wiimpphone'] = "Telefon";
$lang['wiimpphonedesc'] = "Ide írja be telefonszámát a nemzetközi körzetszámmal.<br>Például:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Ide írja be adatvédelmi irányelveit (legfeljebb 21,588 karakter).<br>HTML-kód a formázás megengedett.";
$lang['wiimpprivurl'] = "Adatvédelmi URL";
$lang['wiimpprivurldesc'] = "Adjon meg egy URL-t a saját adatvédelmi irányelvei webhelyéhez.<br><br>Például:<br><pre>https://site.url/privacy/</pre><br>Ha a többi mezőt szeretné használni az adatvédelmi irányelvek megjelenítésére a Ranksystem stats webhelyén, ürítse ki ezt a mezőt.";
$lang['wiimpswitch'] = "Impresszum funkció";
$lang['wiimpswitchdesc'] = "Aktiválja ezt a funkciót az impresszum és az adatvédelmi nyilatkozat (adatvédelmi irányelv) nyilvános megjelenítéséhez..";
$lang['wilog'] = "Naplófájl-Mappa";
$lang['wilogdesc'] = "A Ranksystem naplófájljának elérési útja.<br><br>Példa:<br>/var/logs/Ranksystem/<br><br>Ügyeljen arra, hogy a Webuser (= a webtér felhasználói) rendelkezik a naplófájl kiírási engedélyeivel.";
$lang['wilogout'] = "Kijelentkezés";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Kérjük, csak a %s HTTPS%s -en használja a webes felületet. A titkosítás elengedhetetlen az adatvédelem és biztonság érdekében.%sA HTTPS használatához a webszervernek támogatnia kell az SSL kapcsolatot.";
$lang['winav11'] = "Kérjük, definiáljon egy Bot-Rendszergazdát, aki a Ranksystem adminisztrátora legyen (TeamSpeak -> Bot-Admin). Ez nagyon fontos abban az esetben, ha elvesztette a webes felület bejelentkezési adatait.";
$lang['winav12'] = "Kiegészítők";
$lang['winav13'] = "Általános (Stat.)";
$lang['winav2'] = "Adatbázis";
$lang['winav3'] = "Alapvető paraméterek";
$lang['winav4'] = "Egyéb";
@@ -546,12 +553,12 @@ $lang['wishexgrp'] = "kivett csoportok";
$lang['wishexgrpdesc'] = "Mutassa a list_rankup.php ügyfeleit, amelyek szerepelnek az „ügyfél kivétel” listában, és amelyeket nem szabad figyelembe venni a Ranksystemnél.";
$lang['wishhicld'] = "Legnagyobb szintű kliensek";
$lang['wishhiclddesc'] = "Az ügyfelek megjelenítése a list_rankup.php, amely elérte a Ranksystem legmagasabb szintjét.";
$lang['wishmax'] = "Server usage graph";
$lang['wishmax'] = "Szerverhasználati grafikon";
$lang['wishmax0'] = "show all stats";
$lang['wishmax1'] = "hide max. clients";
$lang['wishmax2'] = "hide channel";
$lang['wishmax3'] = "hide max. clients + channel";
$lang['wishmaxdesc'] = "Choose which stats should be displayed on the server usage graph on 'stats/' page.<br><br>By default, all stats are visible. You can hide here some stats, if needed.";
$lang['wishmaxdesc'] = "Válassza ki, hogy mely statisztikák jelenjenek meg a szerverhasználati grafikonon a 'stats/' oldalon.<br><br>Alapértelmezés szerint az összes statisztika látható. Szükség esetén elrejthet néhány statisztikát.";
$lang['wishnav'] = "Webhely-navigáció mutatása";
$lang['wishnavdesc'] = "Mutassa meg a weblap navigációját a 'statisztika /' oldalon.<br><br>Ha ezt a lehetőséget deaktiválja a statisztikai oldalon, akkor a webhely navigációja rejtve marad.<br>Ezután elfoglalhatja az egyes webhelyeket, pl. 'stats / list_rankup.php', és ágyazza be ezt keretként a meglévő webhelyére vagy a hirdetőtáblába.";
$lang['wishsort'] = "Alapértelmezett rendezési sorrend";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "È stato riscontrato un errore sconosciuto!";
$lang['factor'] = "Factor";
$lang['highest'] = "È stato raggiunto il rank massimo";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Installazione";
$lang['instdb'] = "Installa il database:";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Cambia la password";
$lang['pass3'] = "vecchia password";
$lang['pass4'] = "nuova password";
$lang['pass5'] = "Password Dimenticata?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "ripetere";
$lang['resettime'] = "Resetta il tempo online e in idle dell'utente %s (Client-ID univico: %s; Client-database-ID %s), perchè è stato rimmosso perchè escluso.";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Lista degli utenti (ID Univoco) che non verranno contat
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Definisci Rankup";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Definisci qui dopo quanto tempo un utente debba ottenere automaticamente un servergroup predefinito.<br><br><pre>tempo (IN SECONDI)=>servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years)<br><br>Sono importanti per questa impostazione il 'Tempo online' o il 'Tempo di attività' di un utente, dipende da come impostata la modalità.<br><br>Ogni voce deve essere separate dalla successive con una virgola. br><br>Dovrà essere inserito il tempo cumulativo<br><br>Esempio:<br><pre>60=>9,120=>10,180=>11</pre>Su queste basi un utente ottiene il servergroup 9 dopo 60 secondi, a sua volta il 10 dopo altri 60 secondi e così via...";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Definisci qui dopo quanto tempo un utente debba ottenere automaticamente un servergroup predefinito.<br><br><pre>tempo (IN SECONDI) => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years)<br><br>Sono importanti per questa impostazione il 'Tempo online' o il 'Tempo di attività' di un utente, dipende da come impostata la modalità.<br><br>Ogni voce deve essere separate dalla successive con una virgola. br><br>Dovrà essere inserito il tempo cumulativo<br><br>Esempio:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>Su queste basi un utente ottiene il servergroup 9 dopo 60 secondi, a sua volta il 10 dopo altri 60 secondi e così via...";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Lista Utenti (Modalità Admin)";
$lang['wihladm0'] = "Function description (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "impostazioni";
$lang['wiignidle'] = "Ignora Idle";
$lang['wiignidledesc'] = "Definisci un periodo di tempo, fino a che il tempo di inattività di un utente verrà ignorato.<br><br>Quando un cliente non fa nulla sul server (=idle), questo tempo viene conteggiato dal Ranksystem. Grazie a questa funzione il tempo di inattività di un utente non sarà conteggiato fino al limite definito. Solo quando il limite definito viene superato, conta da tale data per il Ranksystem come il tempo di inattività.<br><br>Questà funzione è compatibile solo con il tempo di attività.<br><br>Significato La funzione è ad esempio per valutare il tempo di ascolto in conversazioni come l'attività.<br><br>0 = Disabilità la funzione<br><br>Esempio:<br>Ignore idle = 600 (seconds)<br>Un utente ha un idle di 8 minunti<br>Conseguenza:<br>8 minuti in IDLE verranno ignorati e poi il tempo successivo verrà conteggiato come tempo di attività. Se il tempo di inattività ora viene aumentato a oltre 12 minuti (quindi il tempo è più di 10 minuti) 2 minuti verrebbero conteggiati come tempo di inattività.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Path dei Log";
$lang['wilogdesc'] = "La path dei log del RankSystem.<br><br>Esempio:<br>/var/logs/ranksystem/<br><br>Assicurati che l'utente che hai assegnato (del web server) abbia i poteri per scrivere nella directory (oppure dai direttamente chmod 777 alla cartella log).";
$lang['wilogout'] = "Esci";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Per favore utilizzare l'interfaccia solo attraverso %s HTTPS%s Una crittografia è fondamentale per garantire la privacy e la sicurezza.%sPer essere in grado di utilizzare HTTPS il vostro web server deve supportare una connessione SSL.";
$lang['winav11'] = "Per favore digita lo unique Client-ID dell'admin per il Ranksystem (TeamSpeak -> Bot-Admin). Questo è molto importante nel caso perdessi le credenziali di accesso per la webinterface (per effettuarne un reset).";
$lang['winav12'] = "Addons";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Database";
$lang['winav3'] = "Core";
$lang['winav4'] = "Altri";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Een onbekende foutmelding is opgetreden!";
$lang['factor'] = "Factor";
$lang['highest'] = "hoogste rank bereikt";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Installatie";
$lang['instdb'] = "Installeer database";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Verander wachtwoord";
$lang['pass3'] = "oud wachtwoord";
$lang['pass4'] = "nieuw wachtwoord";
$lang['pass5'] = "Wachtwoord Vergeten?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "herhalen";
$lang['resettime'] = "Reset the online and idle time of user %s (unique Client-ID: %s; Client-database-ID %s) to zero, cause user got removed out of exception.";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "A comma seperated list of unique Client-IDs, which shou
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrptime'] = "rank up definition";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds)=>servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9,120=>10,180=>11</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Rank Definition";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds) => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "List Rankup (Admin-Mode)";
$lang['wihladm0'] = "Function description (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "instellingen";
$lang['wiignidle'] = "Ignore idle";
$lang['wiignidledesc'] = "Define a period, up to which the idle time of a user will be ignored.<br><br>When a client does not do anything on the server (=idle), this time is noted by the Ranksystem. With this feature the idle time of an user will not be counted until the defined limit. Only when the defined limit is exceeded, it counts from that point for the Ranksystem as idle time.<br><br>This function matters only in conjunction with the mode 'active time'.<br><br>Meaning the function is e.g. to evaluate the time of listening in conversations as activity.<br><br>0 Sec. = disable this function<br><br>Example:<br>Ignore idle = 600 (seconds)<br>A client has an idle of 8 minuntes.<br>└ 8 minutes idle are ignored and he therefore receives this time as active time. If the idle time now increased to 12 minutes, the time is over 10 minutes and in this case 2 minutes would be counted as idle time, the first 10 minutes as active time.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Logpath";
$lang['wilogdesc'] = "Path of the log file of the Ranksystem.<br><br>Example:<br>/var/logs/ranksystem/<br><br>Be sure, the webuser has the write-permissions to the logpath.";
$lang['wilogout'] = "Logout";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to ensure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection.";
$lang['winav11'] = "Please define a Bot-Admin, which should be the administrator of the Ranksystem (TeamSpeak -> Bot-Admin). This is very important in case you lost your login credentials for the webinterface.";
$lang['winav12'] = "Addons";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Database";
$lang['winav3'] = "Core";
$lang['winav4'] = "Other";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Wystąpił nieznany błąd!";
$lang['factor'] = "Factor";
$lang['highest'] = "osiągnieto najwyższą range";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Adres";
$lang['imprint_email'] = "Adres E-Mail";
$lang['imprint_notes'] = "Dodatkowe informacje";
$lang['imprint_phone'] = "Telefon";
$lang['insec'] = "w sekundach";
$lang['install'] = "Instalacja";
$lang['instdb'] = "Zainstaluj bazę danych";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Zmień hasło";
$lang['pass3'] = "Stare hasło";
$lang['pass4'] = "Nowe hasło";
$lang['pass5'] = "Zapomniałeś hasła?";
$lang['privacy-policy'] = "Polityka prywatności";
$lang['privacy'] = "Polityka prywatności";
$lang['repeat'] = "Powtórz";
$lang['resettime'] = "Zresetuj czas online i czas bezczynnosci użytkownika %s (unique Client-ID: %s; Client-database-ID %s) na zero, poniewaz uzytkownik został usuniety z wyjątku.";
$lang['sccupcount'] = "Active time of %s seconds for the unique Client-ID (%s) will be added in a few seconds (have a look to the Ranksystem log).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Rozdzielona przecinkiem lista unikalnych identyfikatoro
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Czas w sekundach";
$lang['wigrpt2'] = "Grupa serwerowa";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "rangowa definicja";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Okresl tutaj, po ktorym czasię uzytkownik powinien automatycznie uzyskac predefiniowaną grupe serwerow.<br><br><pre>czas (sekundy)=>identyfikator grupy serwerow</pre><br>Max. value is 999.999.999 seconds (over 31 years)<br><br>Wazne w tym przypadku jest 'czas online' lub 'czas aktywnosci' użytkownika, w zaleznosci od ustawienia trybu.<br><br>Kazdy wpis musi oddzielac się od nastepnego za pomocą przecinka.<br><br>Czas musi byc wprowadzony łącznie<br><br>Przykład:<br><pre>60=>9,120=>10,180=>11</pre>W tym przypadku uzytkownik dostaje po 60 sekundach grupe serwerow 9, po kolei po 60 sekundach grupa serwerow 10 itd.";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Okresl tutaj, po ktorym czasię uzytkownik powinien automatycznie uzyskac predefiniowaną grupe serwerow.<br><br><pre>czas (sekundy) => identyfikator grupy serwerow => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years)<br><br>Wazne w tym przypadku jest 'czas online' lub 'czas aktywnosci' użytkownika, w zaleznosci od ustawienia trybu.<br><br>Kazdy wpis musi oddzielac się od nastepnego za pomocą przecinka.<br><br>Czas musi byc wprowadzony łącznie<br><br>Przykład:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>W tym przypadku uzytkownik dostaje po 60 sekundach grupe serwerow 9, po kolei po 60 sekundach grupa serwerow 10 itd.";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Lista Rankup (tryb administratora)";
$lang['wihladm0'] = "Opis funkcji (kliknij)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "Ustawienia";
$lang['wiignidle'] = "Ignoruj bezczynność";
$lang['wiignidledesc'] = "Okresl okres, do ktorego ignorowany bedzie czas bezczynnosci użytkownika.<br><br>Gdy klient nie robi niczego na serwerze (= bezczynnosc), ten czas jest zapisywany przez system rangowy. Dzieki tej funkcji czas bezczynnosci użytkownika nie zostanie policzony do okreslonego limitu. Dopiero gdy okreslony limit zostanie przekroczony, liczy się od tej daty dla Systemu Rankow jako czas bezczynnosci.<br><br>Ta funkcja odgrywa role tylko w połączeniu z trybem 'aktywny czas'.<br><br>Znaczenie funkcji to np. ocenic czas słuchania w rozmowach jako aktywnosc.<br><br>0 = wyłącz te funkcje<br><br>Przykład:<br>Ignoruj bezczynnosc = 600 (sekundy)<br>Klient ma czas bezczynnosci wynoszący 8 minut<br>consequence:<br>8 minut bezczynnosci są ignorowane i dlatego otrzymuje ten czas jako czas aktywny. Jesli czas bezczynnosci zwiekszył się teraz do ponad 12 minut, wiec czas wynosi ponad 10 minut, w tym przypadku 2 minuty bedą liczone jako czas bezczynnosci.";
$lang['wiimpaddr'] = "Adres";
$lang['wiimpaddrdesc'] = "Wpisz tutaj swoje imię i nazwisko oraz adres.<br>Przykład:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "Adres E-Mail";
$lang['wiimpemaildesc'] = "Wpisz tutaj swój adres e-mail.<br>Przykład:<br><pre>info@example.com</pre>";
$lang['wiimpnotes'] = "Dodatkowe informacje";
$lang['wiimpnotesdesc'] = "Dodaj dodatkowe informacje, takie jak zastrzeżenie.<br>Zostaw pole puste, aby ta sekcja nie pojawiła się.<br>Kod HTML do formatowania jest dozwolony.";
$lang['wiimpphone'] = "Telefon";
$lang['wiimpphonedesc'] = "Wpisz tutaj swój numer telefonu z międzynarodowym numerem kierunkowym.<br>Przykład:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Wpisz tutaj swoją politykę prywatności (maksymalnie 21 588 znaków).<br>Kod HTML do formatowania jest dozwolony.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Funkcja Imprint";
$lang['wiimpswitchdesc'] = "Aktywuj tę funkcję, aby publicznie wyświetlić deklarację imprintu i ochrony danych.";
$lang['wiimpaddrdesc'] = "Wpisz tutaj swoje imię i nazwisko oraz adres.<br>Przykład:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpemaildesc'] = "Wpisz tutaj swój adres e-mail.<br>Przykład:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Wpisz tutaj swój numer telefonu z międzynarodowym numerem kierunkowym.<br>Przykład:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotesdesc'] = "Dodaj dodatkowe informacje, takie jak zastrzeżenie.<br>Zostaw pole puste, aby ta sekcja nie pojawiła się.<br>Kod HTML do formatowania jest dozwolony.";
$lang['wiimpprivacydesc'] = "Wpisz tutaj swoją politykę prywatności (maksymalnie 21 588 znaków).<br>Kod HTML do formatowania jest dozwolony.";
$lang['wilog'] = "Logpath";
$lang['wilogdesc'] = "Ściezka pliku dziennika systemu Ranksystem.<br><br>Przykład:<br>/var/logs/ranksystem/<br><br>Upewnij się, że webuser ma uprawnienia do zapisu do logpath.";
$lang['wilogout'] = "Wyloguj";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Użyj interfejsu sieciowego tylko przez %s HTTPS%s Szyfrowanie ma kluczowe znaczenie dla zapewnienia prywatności i bezpieczeństwa.%sAby moc korzystać z HTTPS, twój serwer WWW musi obsługiwać połączenie SSL";
$lang['winav11'] = "Wprowadź unikalny identyfikator klienta administratora systemu Ranksystem (TeamSpeak -> Bot-Admin). Jest to bardzo wazne w przypadku, gdy straciłes dane logowania do interfejsu WWW (aby je zresetowac).";
$lang['winav12'] = "Dodatki";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Baza danych";
$lang['winav3'] = "Rdzeń";
$lang['winav4'] = "Inny";
@@ -549,7 +556,7 @@ $lang['wishhiclddesc'] = "Pokaż klientów w list_rankup.php, ktory osiągnął
$lang['wishmax'] = "Wykres wykorzystania serwera";
$lang['wishmax0'] = "wyświetl wszystkie statystyki";
$lang['wishmax1'] = "hide max. clients";
$lang['wishmax2'] = "ukryj kanały";
$lang['wishmax2'] = "ukryj kanał";
$lang['wishmax3'] = "hide max. clients + channel";
$lang['wishmaxdesc'] = "Choose which stats should be displayed on the server usage graph on 'stats/' page.<br><br>By default, all stats are visible. You can hide here some stats, if needed.";
$lang['wishnav'] = "pokaż nawigacje witryny";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Um erro desconhecido ocorreu!";
$lang['factor'] = "Fator";
$lang['highest'] = "maior classificação alcançada";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "em Segundos";
$lang['install'] = "Instalação";
$lang['instdb'] = "Instalar o banco de dados";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Alterar a senha";
$lang['pass3'] = "Senha antiga";
$lang['pass4'] = "Nova senha";
$lang['pass5'] = "Esqueceu a senha?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "repetir";
$lang['resettime'] = "Redefinir o tempo de inatividade e tempo livre do usuário %s (ID-Ùnica: %s; Cliente-database-ID %s) para zero, porque o usuário foi removido fora da exceção.";
$lang['sccupcount'] = "Tempo ativo de %s segundos para o Client-ID única(%s) será adicionado em alguns segundos (dê uma olhada no log do Ranksystem).";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Uma lista separada de vírgulas de ID-Ùnica, que não
$lang['wigrpimp'] = "Modo de Importação";
$lang['wigrpt1'] = "Tempo em Segundos";
$lang['wigrpt2'] = "Grupo do servidor";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Definições de classifiaões";
$lang['wigrptime2desc'] = "Define um tempo após o qual um usuário deve obter automaticamente um grupo de servidor predefinido.<br><br><pre>tempo em segundos => ID do grupo de servidor</pre><br> máx. o valor é 999.999.999 segundos (mais de 31 anos). <br> <br> Os segundos inseridos serão classificados como 'hora online' ou 'hora ativa', dependendo da configuração do 'modo de hora' escolhido. <br> <br> <br> O tempo em segundos precisa ser inserido <b>cumulativo</b>!<br><br><u>errado:</u><br><br><pre> 100 segundos, 100 segundos, 50 segundos</pre> <u>correto: </u><br><br ><pre> 100 segundos, 200 segundos, 250 segundos </pre>";
$lang['wigrptimedesc'] = "Defina aqui, após quanto tempo um usuário deve obter automaticamente um grupo de servidores predefinido.<br><br><pre>Tempo (em segundos)=>ID do grupo do servidor</pre><br>Max. valor é 999.999.999 segundos (mais de 31 anos)<br><br>Importante para este é o 'tempo online' ou o 'tempo ativo' de um usuário, dependendo da configuração do modo.<br><br>Cada entrada deve se separar do próximo com uma vírgula.<br><br>O tempo deve ser inserido cumulativo<br><br>Exemplo:<br><pre>60=>9,120=>10,180=>11</pre>Neste usuário, pegue após 60 segundos o grupo de servidores 9, por sua vez, após 60 segundos, o grupo de servidores 10 e assim por diante ...";
$lang['wigrptime2desc'] = "Define um tempo após o qual um usuário deve obter automaticamente um grupo de servidor predefinido.<br><br><pre>tempo em segundos => ID do grupo de servidor => permanent flag</pre><br> máx. o valor é 999.999.999 segundos (mais de 31 anos). <br> <br> Os segundos inseridos serão classificados como 'hora online' ou 'hora ativa', dependendo da configuração do 'modo de hora' escolhido. <br> <br> <br> O tempo em segundos precisa ser inserido <b>cumulativo</b>!<br><br><u>errado:</u><br><br><pre> 100 segundos, 100 segundos, 50 segundos</pre> <u>correto: </u><br><br ><pre> 100 segundos, 200 segundos, 250 segundos </pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Defina aqui, após quanto tempo um usuário deve obter automaticamente um grupo de servidores predefinido.<br><br><pre>Tempo (em segundos) => ID do grupo do servidor => permanent flag</pre><br>Max. valor é 999.999.999 segundos (mais de 31 anos)<br><br>Importante para este é o 'tempo online' ou o 'tempo ativo' de um usuário, dependendo da configuração do modo.<br><br>Cada entrada deve se separar do próximo com uma vírgula.<br><br>O tempo deve ser inserido cumulativo<br><br>Exemplo:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>Neste usuário, pegue após 60 segundos o grupo de servidores 9, por sua vez, após 60 segundos, o grupo de servidores 10 e assim por diante ...";
$lang['wigrptk'] = "comulativo";
$lang['wihladm'] = "Classificação (Modo Admin)";
$lang['wihladm0'] = "Function description (Clique)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Porfavor %s comfirme %s os trabalho. Isso redefinirá o
$lang['wihlset'] = "configurações";
$lang['wiignidle'] = "Ignore ocioso";
$lang['wiignidledesc'] = "Defina um período até o qual o tempo de inatividade de um usuário será ignorado.<br><br>Quando um cliente não faz nada no servidor (=ocioso), esse tempo é anotado pelo Sistema de ranking. Com este recurso, o tempo de inatividade de um usuário não será contado até o limite definido. Somente quando o limite definido é excedido, ele conta a partir dessa data para o Sistema de ranking como tempo ocioso.<br><br>Esta função só é reproduzida em conjunto com o modo 'tempo ativo' uma função.<br><br>Significado do a função é, por exemplo, para avaliar o tempo de audição em conversas como atividade.<br><br>0 = desativar o recurso<br><br>Exemplo:<br>Ignorar ocioso = 600 (segundos)<br>Um cliente tem um ocioso de 8 Minuntes<br>consequência:<br>8 minutos inativos são ignorados e, portanto, ele recebe esse tempo como tempo ativo. Se o tempo de inatividade agora aumentou para mais de 12 minutos, então o tempo é superior a 10 minutos, e nesse caso, 2 minutos serão contados como tempo ocioso.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Caminha de logs";
$lang['wilogdesc'] = "Caminho do arquivo de log do Sistema de ranking.<br><br>Exemplo:<br>/var/logs/ranksystem/<br><br>Certifique-se, o usuário da web tem as permissões de gravação";
$lang['wilogout'] = "Sair";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Use a interface web apenas via %s HTTPS%s Uma criptografia é fundamental para garantir sua privacidade e segurança.%sPara poder usar HTTPS, seu servidor web precisa suportar uma conexão SSL.";
$lang['winav11'] = "Digite o ID-Ùnico do administrador do Sistema de ranking (TeamSpeak -> Bot-Admin). Isso é muito importante caso você perdeu seus dados de login para a interface da web (redefinir usando o ID-Ùnico).";
$lang['winav12'] = "Complementos";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "Base de dados";
$lang['winav3'] = "Núcleo";
$lang['winav4'] = "Outras configuraões";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "A aparut o eroare necunoscuta!";
$lang['factor'] = "Factor";
$lang['highest'] = "Cel mai înalt rang atins";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "in Seconds";
$lang['install'] = "Instalare";
$lang['instdb'] = "Instalam baza de date:";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Schimba parola";
$lang['pass3'] = "parola veche";
$lang['pass4'] = "noua parola";
$lang['pass5'] = "Ai uitat parola?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "reptere";
$lang['resettime'] = "Reset timp online si idle pentru userul: %s (ID: %s; ID baza de date %s), motiv: a fost sters din lista de exceptie.";
$lang['sccupcount'] = "Ai adaugat cu succes timp online: %s pentru userul cu ID(%s)";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "A comma seperated list of unique Client-IDs, which shou
$lang['wigrpimp'] = "Import Mode";
$lang['wigrpt1'] = "Time in Seconds";
$lang['wigrpt2'] = "Servergroup";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Clasificare grade";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds)=>servergroup ID</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9,120=>10,180=>11</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrptime2desc'] = "Define a time after which a user should get automatically a predefined servergroup.<br><br><pre>time in seconds => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br><br>The time in seconds needs to be entered <b>cumulative</b>!<br><br><u>wrong:</u><br><br><pre>100 seconds, 100 seconds, 50 seconds</pre><u>correct:</u><br><br><pre>100 seconds, 200 seconds, 250 seconds</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Define here, after which time a user should get automatically a predefined servergroup.<br><br><pre>time (seconds) => servergroup ID => permanent flag</pre><br>Max. value is 999.999.999 seconds (over 31 years).<br><br>The entered seconds will be rated as 'online time' or 'active time', depending on the setting of the 'time mode' you have chosen.<br><br>Each entry has to separate from next with a comma.<br><br>The time must be entered cumulative<br><br>Example:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>On this example a user receives servergroup 9 after 60 seconds, servergroup 10 after another 60 seconds, servergroup 11 after another 60 seconds.";
$lang['wigrptk'] = "cumulative";
$lang['wihladm'] = "Lista Rank(Mod Admin)";
$lang['wihladm0'] = "Function description (click)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Please %s confirm %s the jobs. This will reset the job
$lang['wihlset'] = "setări";
$lang['wiignidle'] = "Ignora timp afk";
$lang['wiignidledesc'] = "Define a period, up to which the idle time of a user will be ignored.<br><br>When a client does not do anything on the server (=idle), this time is noted by the Ranksystem. With this feature the idle time of an user will not be counted until the defined limit. Only when the defined limit is exceeded, it counts from that point for the Ranksystem as idle time.<br><br>This function matters only in conjunction with the mode 'active time'.<br><br>Meaning the function is e.g. to evaluate the time of listening in conversations as activity.<br><br>0 Sec. = disable this function<br><br>Example:<br>Ignore idle = 600 (seconds)<br>A client has an idle of 8 minuntes.<br>└ 8 minutes idle are ignored and he therefore receives this time as active time. If the idle time now increased to 12 minutes, the time is over 10 minutes and in this case 2 minutes would be counted as idle time, the first 10 minutes as active time.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Folder";
$lang['wilogdesc'] = "Path of the log file of the Ranksystem.<br><br>Example:<br>/var/logs/ranksystem/<br><br>Be sure, the webuser has the write-permissions to the logpath.";
$lang['wilogout'] = "Delogare";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to ensure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection.";
$lang['winav11'] = "Please define a Bot-Admin, which should be the administrator of the Ranksystem (TeamSpeak -> Bot-Admin). This is very important in case you lost your login credentials for the webinterface.";
$lang['winav12'] = "Addons";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "baza de date";
$lang['winav3'] = "Core";
$lang['winav4'] = "altele";

View File

@@ -51,10 +51,6 @@ $lang['errukwn'] = "Произошла неизвестная ошибка!";
$lang['factor'] = "коэффициент";
$lang['highest'] = "Достигнут максимальный ранг";
$lang['imprint'] = "Imprint";
$lang['imprint_address'] = "Address";
$lang['imprint_email'] = "E-Mail Address";
$lang['imprint_notes'] = "Additional information";
$lang['imprint_phone'] = "Phone";
$lang['insec'] = "в секундах";
$lang['install'] = "Установка";
$lang['instdb'] = "Установка базы данных";
@@ -120,7 +116,7 @@ $lang['pass2'] = "Изменить пароль";
$lang['pass3'] = "Старый пароль";
$lang['pass4'] = "Новый пароль";
$lang['pass5'] = "Забыли пароль?";
$lang['privacy-policy'] = "Privacy Policy";
$lang['privacy'] = "Privacy Policy";
$lang['repeat'] = "Повтор нового пароля";
$lang['resettime'] = "Сбрасываем онлайн и время простоя пользователя %s (UID: %s; DBID %s), так как пользователь был удален из исключений.";
$lang['sccupcount'] = "%s секунд активного времени было добавлено клиенту с уникальным ID (UID) %s. Больше информации можно найти в лог-файле системы рангов.";
@@ -432,9 +428,11 @@ $lang['wiexuiddesc'] = "Укажите через запятую уникаль
$lang['wigrpimp'] = "Режим импорта";
$lang['wigrpt1'] = "Время в секундах";
$lang['wigrpt2'] = "Группа сервера";
$lang['wigrpt3'] = "Permanent Group";
$lang['wigrptime'] = "Настройка рангов";
$lang['wigrptime2desc'] = "Укажите время после которого пользователь должен автоматически получить выбранную группу.<br><br><pre>время в секундах => ID группы сервера</pre><br>Максимальное значение - 999.999.999 секунд (около 31 года).<br><br>Введенное время будет обрабатываться как 'время онлайн' или 'активное время', в зависимости от того что вы выбрали в 'режиме работы'.<br><br><br>Необходимо указывать <b>общее</b> время.<br><br><u>неправильно:</u><br><br><pre>100 секунд, 100 секунд, 50 секунд</pre><u>правильно:</u><br><br><pre>100 секунд, 200 секунд, 250 секунд</pre>";
$lang['wigrptimedesc'] = "Укажите через какой промежуток времени, будут выдаваться группы сервера.<br><br><pre>Время (в секундах)=>номер группы сервера (ServerGroupID)</pre><br>К тому же, от выбранного режима будет зависеть.<br><br>Каждый параметр должен разделяться запятой.<br><br>Так же время должно быть указано по 'нарастающей'<br><br>Пример:<br><pre>60=>9,120=>10,180=>11</pre>По истечению 60 секунд пользователь получает сервер группу под SGID 9, по истечении очередных 120 секунд пользователь получает группу сервера с ID 10, и так далее...";
$lang['wigrptime2desc'] = "Укажите время после которого пользователь должен автоматически получить выбранную группу.<br><br><pre>время в секундах => ID группы сервера => permanent flag</pre><br>Максимальное значение - 999.999.999 секунд (около 31 года).<br><br>Введенное время будет обрабатываться как 'время онлайн' или 'активное время', в зависимости от того что вы выбрали в 'режиме работы'.<br><br><br>Необходимо указывать <b>общее</b> время.<br><br><u>неправильно:</u><br><br><pre>100 секунд, 100 секунд, 50 секунд</pre><u>правильно:</u><br><br><pre>100 секунд, 200 секунд, 250 секунд</pre>";
$lang['wigrptime3desc'] = "<br><br><u>Permanent Group</u><br>This allows to set a flag for a server group that shouldn't be removed at the next rank increase. The rank line, which is defined with this flag (='ON'), will stay permanent by the Ranksystem.<br>By default (='OFF'), the current server group will be removed at the time, the user reaches a higher rank.";
$lang['wigrptimedesc'] = "Укажите через какой промежуток времени, будут выдаваться группы сервера.<br><br><pre>Время (в секундах) => номер группы сервера (ServerGroupID) => permanent flag</pre><br>К тому же, от выбранного режима будет зависеть.<br><br>Каждый параметр должен разделяться запятой.<br><br>Так же время должно быть указано по 'нарастающей'<br><br>Пример:<br><pre>60=>9=>0,120=>10=>0,180=>11=>0</pre>По истечению 60 секунд пользователь получает сервер группу под SGID 9, по истечении очередных 120 секунд пользователь получает группу сервера с ID 10, и так далее...";
$lang['wigrptk'] = "общее";
$lang['wihladm'] = "Список пользователей (Режим администратора)";
$lang['wihladm0'] = "Описание функции (кликабельно)";
@@ -476,13 +474,21 @@ $lang['wihladmrs9'] = "Пожалуйста %s подтвердите %s за
$lang['wihlset'] = "настройки";
$lang['wiignidle'] = "Игнорировать время бездействия";
$lang['wiignidledesc'] = "Задать период, в течение которого время бездействия будет игнорироваться.<br><br>Время бездействия - если клиент не выполняет каких-либо действий на сервере (=idle/бездействует), это время также учитывается системой рангов. Только когда установленный лимит будет достигнут, система рангов начнет подсчитывать время бездействия для пользователя.<br><br>Эта функция работает только при включенном режиме подсчёта за 'активное время'(при высчитывании группы-ранга, когда время бездействия вычитается из \"активного\" времени).<br><br>Использование этой функции оправдано в том случае, если пользователь \"слушает\" говорящих людей и при этом ему зачисляется \"время бездействия\", которое обнуляется при любом его действии. <br><br>0= отключить данную функцию<br><br>Пример:<br>Игнорировать бездействие= 600 (секунд)<br>Клиенту 8 минут простоя не будут засчитаны системой рангов и оно будет ему засчитано как \"активное время\". Если пользователь находился 12 минут в бездействии при \"игнорировании бездействия\" в 10 минут, то ему будет зачислены только 2 минуты простоя.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration.";
$lang['wiimpaddr'] = "Address";
$lang['wiimpaddrdesc'] = "Enter your name and address here.<br>Example:<br><pre>Max Mustermann&#60;br><br>Musterstrasse 13&#60;br><br>05172 Musterhausen&#60;br><br>Germany</pre>";
$lang['wiimpaddrurl'] = "Imprint URL";
$lang['wiimpaddrurldesc'] = "Add an URL to your own imprint site.<br><br>Example:<br><pre>https://site.url/imprint/</pre><br>To use the other fields to show the imprint on the Ranksystem stats site, empty this field.";
$lang['wiimpemail'] = "E-Mail Address";
$lang['wiimpemaildesc'] = "Enter your email address here.<br>Example:<br><pre>info@example.com</pre>";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpnotes'] = "Additional information";
$lang['wiimpnotesdesc'] = "Add additional information here, such as a disclaimer.<br>Leave the field blank so that this section does not appear.<br>HTML code for formatting is allowed.";
$lang['wiimpphone'] = "Phone";
$lang['wiimpphonedesc'] = "Enter your telephone number with international area code here.<br>Example:<br><pre>+49 171 1234567</pre>";
$lang['wiimpprivacydesc'] = "Insert your privacy policy here (maximum 21,588 characters).<br>HTML code for formatting is allowed.";
$lang['wiimpprivurl'] = "Privacy URL";
$lang['wiimpprivurldesc'] = "Add an URL to your own privacy policy site.<br><br>Example:<br><pre>https://site.url/privacy/</pre><br>To use the other fields to show the privacy policy on the Ranksystem stats site, empty this field.";
$lang['wiimpswitch'] = "Imprint function";
$lang['wiimpswitchdesc'] = "Activate this function to publicly display the imprint and data protection declaration (privacy policy).";
$lang['wilog'] = "Папка логирования работы системы рангов";
$lang['wilogdesc'] = "Расположение логов системы рангов на диске.<br><br>Пример:<br>/var/logs/ranksystem/<br><br>Убедитесь, что веб-пользователь имеет разрешение на редактирование этой папки/файлов (chmod).";
$lang['wilogout'] = "Выход";
@@ -496,6 +502,7 @@ $lang['winav1'] = "TeamSpeak";
$lang['winav10'] = "Соединение с данным сайтом не защищено с помощью %s HTTPS%sЭто может повлечь за собой проблемы для вашей приватности и безопасности! %sДля использования HTTPS ваш веб-сервер должен поддерживать SSL-соединение.";
$lang['winav11'] = "Пожалуйста, укажите себя как Администратора системы рангов в настройках, меню \"TeamSpeak\". Это очень важно, так как в случае утери пароля восстановить его (штатными средствами системы рангов) станет невозможно!";
$lang['winav12'] = "Аддоны";
$lang['winav13'] = "General (Stats)";
$lang['winav2'] = "База данных";
$lang['winav3'] = "Система";
$lang['winav4'] = "Прочее";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -106,8 +106,9 @@ if (isset($mysqlcon) && ($newcfg = $mysqlcon->query("SELECT * FROM `$dbname`.`cf
$cfg['rankup_definition'] = NULL;
} else {
foreach (explode(',', $cfg['rankup_definition']) as $entry) {
list($key, $value) = explode('=>', $entry);
$addnewvalue1[$key] = $value;
list($time, $group, $keepflag) = explode('=>', $entry);
if($keepflag == NULL) $keepflag = 0;
$addnewvalue1[$time] = array("time"=>$time,"group"=>$group,"keep"=>$keepflag);
$cfg['rankup_definition'] = $addnewvalue1;
}
}

15
stats/_footer.php Normal file
View File

@@ -0,0 +1,15 @@
<?PHP
if ($cfg['stats_imprint_switch'] == "1") {
if($cfg['stats_imprint_address_url'] != NULL) {
echo '<footer><a href="',$cfg['stats_imprint_address_url'],'" target="_blank">',$lang['imprint'],'</a>';
} else {
echo '<footer><a href="imprint.php">',$lang['imprint'],'</a>';
}
if($cfg['stats_imprint_privacypolicy_url'] != NULL) {
echo '&nbsp;•&nbsp;<a href="',$cfg['stats_imprint_privacypolicy_url'],'" target="_blank">',$lang['privacy'],'</a>';
} elseif($cfg['stats_imprint_privacypolicy'] != NULL) {
echo '&nbsp;•&nbsp;<a href="privacy_policy.php">',$lang['privacy'],'</a>';
}
echo '</footer>';
}
?>

26
stats/_preload.php Normal file
View File

@@ -0,0 +1,26 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/phpcommand.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_nav.php');
?>

View File

@@ -1,32 +1,11 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
require_once('_preload.php');
if($addons_config['assign_groups_active']['value'] != '1') {
echo "addon is disabled";
exit;
}
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
if(isset($_SESSION[$rspathhex.'tsuid'])) {
$uuid = $_SESSION[$rspathhex.'tsuid'];
} else {
@@ -123,7 +102,6 @@ if(count($_SESSION[$rspathhex.'multiple']) > 1 and !isset($_SESSION[$rspathhex.'
exit;
}
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -185,6 +163,6 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,5 +0,0 @@
<?PHP
if ($cfg['imprint_enabled'] == "1") {
echo '<footer><a href="imprint.php">' . $lang['imprint'] . '</a>&nbsp;•&nbsp;<a href="privacy-policy.php">' . $lang['privacy-policy'] . '</a></footer>';
}
?>

View File

@@ -1,30 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
$starttime = microtime(true);
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
$sql_res = $mysqlcon->query("SELECT `msg` FROM `$dbname`.`imprint` WHERE `text`=`adress`")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
$stats_user = $mysqlcon->query("SELECT `adress`,`email`,`phone`,`active_month`,`last_calculated` FROM `$dbname`.`stats_user` WHERE `uuid`='".$_SESSION[$rspathhex.'tsuid']."'")->fetch();
require_once('nav.php');
require_once('_preload.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -37,38 +12,41 @@ require_once('nav.php');
</div>
</div>
<?PHP
if ($cfg['imprint_enabled'] == 1) {
echo '<div class="row">
if (isset($cfg['stats_imprint_switch']) && $cfg['stats_imprint_switch'] == 1) {
echo '
<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-info">' . $lang['imprint_address'] . '</span></strong></h5>
<p>' . $cfg['imprint_address'] . '</p>
<h5><strong><span class="text-info">' . $lang['wiimpaddr'] . '</span></strong></h5>
<p>' . $cfg['stats_imprint_address'] . '</p>
<br>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-warning">' . $lang['imprint_email'] . '</span></strong></h5>
<p>' . $cfg['imprint_email'] . '</p>
<h5><strong><span class="text-warning">' . $lang['wiimpemail'] . '</span></strong></h5>
<p>' . $cfg['stats_imprint_email'] . '</p>
<br>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-warning">' . $lang['imprint_phone'] . '</span></strong></h5>
<p>' . $cfg['imprint_phone'] . '</p>
<h5><strong><span class="text-warning">' . $lang['wiimpphone'] . '</span></strong></h5>
<p>' . $cfg['stats_imprint_phone'] . '</p>
<br>
</div>
</div>'
if ($cfg['imprint_notes'] != NULL) {
echo '<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-danger">' . $lang['imprint_notes'] . '</span></strong></h5>
<p>' . $cfg['imprint_notes'] . '</p>
</div>
</div>';
};
if ($cfg['stats_imprint_notes'] != NULL) {
echo '
<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-danger">' . $lang['wiimpnotes'] . '</span></strong></h5>
<p>' . $cfg['stats_imprint_notes'] . '</p>
</div>
</div>';
}
} else {
echo '<div class="row">
echo '
<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-danger">' . $lang['module_disabled'] . '</span></strong></h5>
</div>
@@ -78,6 +56,6 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,21 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
require_once('_preload.php');
if(is_dir(substr(__DIR__,0,-5).'languages/')) {
foreach(scandir(substr(__DIR__,0,-5).'languages/') as $file) {
@@ -34,10 +18,6 @@ if(is_dir(substr(__DIR__,0,-5).'languages/')) {
}
}
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
function human_readable_size($bytes,$lang) {
$size = array($lang['size_byte'],$lang['size_kib'],$lang['size_mib'],$lang['size_gib'],$lang['size_tib'],$lang['size_pib'],$lang['size_eib'],$lang['size_zib'],$lang['size_yib']);
$factor = floor((strlen($bytes) - 1) / 3);
@@ -51,8 +31,6 @@ if(($sql_res = $mysqlcon->query("SELECT * FROM `$dbname`.`stats_server`")->fetch
if(($groupslist = $mysqlcon->query("SELECT * FROM `$dbname`.`groups` WHERE `sgid`=0")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC)) === false) {
$err_msg = print_r($mysqlcon->errorInfo(), true); $err_lvl = 3;
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -497,6 +475,6 @@ if (isset($nation[$sql_res['country_nation_name_5']])) {
<input type="hidden" id="tsn33" value="<?PHP echo $sql_res['platform_other']; ?>">
<input type="hidden" id="tsn34" value="<?PHP echo ($sql_res['server_used_slots'] + $sql_res['server_free_slots']); ?>">
<input type="hidden" id="tsn35" value="<?PHP echo $cfg['stats_show_maxclientsline_switch']; ?>">
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,28 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
$starttime = microtime(true);
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('nav.php');
require_once('_preload.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -98,13 +75,13 @@ require_once('nav.php');
<p><?PHP echo sprintf($lang['stri0026'], '<a href="//foro.gameflix.es" target="_blank">JavierlechuXD</a> -'); ?></p>
<p><?PHP echo sprintf($lang['stri0027'], '<a href="//warriortigers.hu" target="_blank">ExXeL</a> -'); ?></p>
<p><?PHP echo sprintf($lang['stri0028'], '<a href="//grezhost.com" target="_blank">G. FARZALIYEV</a> -'); ?></p>
<p><?PHP echo sprintf($lang['stri0029'], '<a href="//www.nick-slowinski.de" target="_blank">Nick Slowinski</a> -'); ?></p>
<p><?PHP echo sprintf($lang['stri0029'], '<a href="//nick-slowinski.de" target="_blank">Nick Slowinski</a> -'); ?></p>
<br>
</div>
</div>
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,22 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
require_once('_preload.php');
if(is_dir(substr(__DIR__,0,-5).'languages/')) {
foreach(scandir(substr(__DIR__,0,-5).'languages/') as $file) {
@@ -167,7 +150,6 @@ if(isset($_GET['admin'])) {
$adminlogin = 1;
}
}
require_once('nav.php');
$countentries = 0;
@@ -328,9 +310,9 @@ if($adminlogin == 1) {
$activetime = $value['count'];
}
$grpcount=0;
foreach ($cfg['rankup_definition'] as $time => $groupid) {
foreach ($cfg['rankup_definition'] as $rank) {
$grpcount++;
if ($activetime < $time || $grpcount == count($cfg['rankup_definition']) && $value['nextup'] <= 0 && $cfg['stats_show_clients_in_highest_rank_switch'] == 1 || $grpcount == count($cfg['rankup_definition']) && $value['nextup'] == 0 && $adminlogin == 1) {
if ($activetime < $rank['time'] || $grpcount == count($cfg['rankup_definition']) && $value['nextup'] <= 0 && $cfg['stats_show_clients_in_highest_rank_switch'] == 1 || $grpcount == count($cfg['rankup_definition']) && $value['nextup'] == 0 && $adminlogin == 1) {
echo '<tr>';
if ($cfg['stats_column_rank_switch'] == 1 || $adminlogin == 1) {
if($value['except'] == 2 || $value['except'] == 3) {
@@ -372,19 +354,19 @@ if($adminlogin == 1) {
echo '<td class="text-center">' , htmlspecialchars($value['platform']) , '</td>';
}
if ($cfg['stats_column_online_time_switch'] == 1 || $adminlogin == 1) {
echo '<td class="text-center">';
echo '<td title="',round($value['count']),' sec." class="text-center">';
$dtF = new DateTime("@0");
$dtT = new DateTime("@".round($value['count']));
echo $dtF->diff($dtT)->format($cfg['default_date_format']);
}
if ($cfg['stats_column_idle_time_switch'] == 1 || $adminlogin == 1) {
echo '<td class="text-center">';
echo '<td title="',round($value['idle']),' sec." class="text-center">';
$dtF = new DateTime("@0");
$dtT = new DateTime("@".round($value['idle']));
echo $dtF->diff($dtT)->format($cfg['default_date_format']);
}
if ($cfg['stats_column_active_time_switch'] == 1 || $adminlogin == 1) {
echo '<td class="text-center">';
echo '<td title="',(round($value['count'])-round($value['idle'])),' sec." class="text-center">';
$dtF = new DateTime("@0");
$dtT = new DateTime("@".(round($value['count'])-round($value['idle'])));
echo $dtF->diff($dtT)->format($cfg['default_date_format']);
@@ -408,15 +390,15 @@ if($adminlogin == 1) {
}
}
if ($cfg['stats_column_next_rankup_switch'] == 1 || $adminlogin == 1) {
echo '<td class="text-center">';
echo '<td title="';
if (($value['except'] == 0 || $value['except'] == 1) && $value['nextup'] > 0) {
$dtF = new DateTime("@0");
$dtT = new DateTime("@".$value['nextup']);
echo $dtF->diff($dtT)->format($cfg['default_date_format']) , '</td>';
echo round($value['nextup']),' sec." class="text-center">',$dtF->diff($dtT)->format($cfg['default_date_format']) , '</td>';
} elseif ($value['except'] == 0 || $value['except'] == 1) {
echo '0</td>';
echo '0 sec." class="text-center">0</td>';
} elseif ($value['except'] == 2 || $value['except'] == 3) {
echo '0</td>';
echo '0 sec." class="text-center">0</td>';
} else {
echo $lang['errukwn'], '</td>';
}
@@ -426,10 +408,10 @@ if($adminlogin == 1) {
echo '<td class="text-center"><em>',$lang['highest'],'</em></td>';
} elseif ($value['except'] == 2 || $value['except'] == 3) {
echo '<td class="text-center"><em>',$lang['listexcept'],'</em></td>';
} elseif (isset($sqlhisgroup[$groupid]) && $sqlhisgroup[$groupid]['iconid'] != 0) {
echo '<td class="text-center"><img src="../tsicons/',$sqlhisgroup[$groupid]['iconid'],'.',$sqlhisgroup[$groupid]['ext'],'" width="16" height="16" alt="missed_icon">&nbsp;&nbsp;' , $sqlhisgroup[$groupid]['sgidname'] , '</td>';
} elseif (isset($sqlhisgroup[$groupid])) {
echo '<td class="text-center">' , $sqlhisgroup[$groupid]['sgidname'] , '</td>';
} elseif (isset($sqlhisgroup[$rank['group']]) && $sqlhisgroup[$rank['group']]['iconid'] != 0) {
echo '<td class="text-center"><img src="../tsicons/',$sqlhisgroup[$rank['group']]['iconid'],'.',$sqlhisgroup[$rank['group']]['ext'],'" width="16" height="16" alt="missed_icon">&nbsp;&nbsp;' , $sqlhisgroup[$rank['group']]['sgidname'] , '</td>';
} elseif (isset($sqlhisgroup[$rank['group']])) {
echo '<td class="text-center">' , $sqlhisgroup[$rank['group']]['sgidname'] , '</td>';
} else {
echo '<td class="text-center"></td>';
}
@@ -450,6 +432,6 @@ if($adminlogin == 1) {
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,26 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
if(count($_SESSION[$rspathhex.'multiple']) > 1 && !isset($_SESSION[$rspathhex.'uuid_verified'])) {
$err_msg = sprintf($lang['stag0006'], '<a href="verify.php">', '</a>'); $err_lvl = 3;
@@ -43,12 +22,12 @@ if(count($_SESSION[$rspathhex.'multiple']) > 1 && !isset($_SESSION[$rspathhex.'u
krsort($cfg['rankup_definition']);
$nextgrp = '';
foreach ($cfg['rankup_definition'] as $time => $groupid) {
$actualgrp = $time;
if ($activetime > $time) {
foreach ($cfg['rankup_definition'] as $rank) {
$actualgrp = $rank['time'];
if ($activetime > $rank['time']) {
break;
} else {
$nextgrp = $time;
$nextgrp = $rank['time'];
}
}
if($actualgrp==$nextgrp) {
@@ -101,7 +80,6 @@ if(count($_SESSION[$rspathhex.'multiple']) > 1 && !isset($_SESSION[$rspathhex.'u
function get_percentage($max_value, $value) {
return (round(($value/$max_value)*100));
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl);
@@ -154,8 +132,8 @@ require_once('nav.php');
<p class="text-right"><?PHP echo $dbdata_fetched['uuid']; ?></p>
<p class="text-right"><?PHP echo $_SESSION[$rspathhex.'tsconnections']; ?></p>
<p class="text-right"><?PHP echo $_SESSION[$rspathhex.'tscreated']; ?></p>
<p class="text-right"><?PHP echo $count_total; ?></p>
<p class="text-right"><?PHP echo $active_count; ?></p>
<p class="text-right" title=<?PHP echo '"',$dbdata_fetched['count'],' sec.">',$count_total; ?></p>
<p class="text-right" title=<?PHP echo '"',($dbdata_fetched['count'] - $dbdata_fetched['idle']),' sec.">',$active_count; ?></p>
<p class="text-right"><?PHP echo $achievements_done .' / 8'; ?></p>
</div>
<div class="clearfix"></div>
@@ -376,6 +354,6 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,21 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
require_once('_preload.php');
if(is_dir(substr(__DIR__,0,-5).'languages/')) {
foreach(scandir(substr(__DIR__,0,-5).'languages/') as $file) {
@@ -34,13 +18,7 @@ if(is_dir(substr(__DIR__,0,-5).'languages/')) {
}
}
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
$sql_res = $mysqlcon->query("SELECT * FROM `$dbname`.`stats_nations` ORDER BY `count` DESC")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -90,6 +68,6 @@ foreach ($sql_res as $country => $value) {
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,29 +1,7 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
$sql_res = $mysqlcon->query("SELECT * FROM `$dbname`.`stats_platforms` ORDER BY `count` DESC")->fetchALL(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -71,6 +49,6 @@ foreach ($sql_res as $platform => $value) {
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,57 +0,0 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
$starttime = microtime(true);
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<?PHP echo $lang['privacy-policy']; ?>
</h1>
</div>
</div>
<?PHP
if ($cfg['imprint_enabled'] == 1) {
echo '<div class="row">
<div class="col-lg-12">
' . $cfg['imprint_privacy-policy'] .'
</div>
</div>';
} else {
echo '<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-danger">' . $lang['module_disabled'] . '</span></strong></h5>
</div>
</div>';
}
?>
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
</body>
</html>

32
stats/privacy_policy.php Normal file
View File

@@ -0,0 +1,32 @@
<?PHP
require_once('_preload.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<?PHP echo $lang['privacy']; ?>
</h1>
</div>
</div>
<?PHP if ($cfg['stats_imprint_switch'] == 1) { ?>
<div class="row">
<div class="col-lg-12">
<?PHP echo $cfg['stats_imprint_privacypolicy']; ?>
</div>
</div>
<?PHP } else { ?>
<div class="row">
<div class="col-lg-12">
<h5><strong><span class="text-danger"><?PHP echo $lang['module_disabled']; ?></span></strong></h5>
</div>
</div>
<?PHP } ?>
</div>
</div>
</div>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,26 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
$notinuuid = '';
if($cfg['rankup_excepted_unique_client_id_list'] != NULL) {
@@ -90,7 +69,6 @@ $sumentries = $sum['user'] - 10;
function get_percentage($max_value, $value) {
return (round(($value/$max_value)*100));
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -374,7 +352,7 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
<script>
Morris.Donut({
element: 'top10vs_donut1',

View File

@@ -1,26 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
$notinuuid = '';
if($cfg['rankup_excepted_unique_client_id_list'] != NULL) {
@@ -92,7 +71,6 @@ $sumentries = $sum['user'] - 10;
function get_percentage($max_value, $value) {
return (round(($value/$max_value)*100));
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -378,7 +356,7 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
<script>
Morris.Donut({
element: 'top10vs_donut1',

View File

@@ -1,26 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
$notinuuid = '';
if($cfg['rankup_excepted_unique_client_id_list'] != NULL) {
@@ -92,7 +71,6 @@ $sumentries = $sum['user'] - 10;
function get_percentage($max_value, $value) {
return (round(($value/$max_value)*100));
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -378,7 +356,7 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
<script>
Morris.Donut({
element: 'top10vs_donut1',

View File

@@ -15,7 +15,6 @@ session_start();
header("Content-Type: application/json; charset=UTF-8");
require_once('../other/config.php');
require_once('../other/session.php');
$mysqlcon->query("SET @a:=0");

View File

@@ -1,27 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/phpcommand.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
if(isset($_REQUEST['token']) && isset($_SESSION[$rspathhex.'temp_uuid'])) {
if($_REQUEST['token'] == NULL) {
@@ -138,8 +116,6 @@ if(isset($_POST['uuid']) && !isset($_SESSION[$rspathhex.'temp_uuid'])) {
$err_lvl = 3;
}
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl);
@@ -210,6 +186,6 @@ require_once('nav.php');
<?PHP } ?>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -1,29 +1,7 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
$sql_res = $mysqlcon->query("SELECT * FROM `$dbname`.`stats_versions` ORDER BY `count` DESC")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
@@ -71,6 +49,6 @@ foreach ($sql_res as $version => $value) {
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>

View File

@@ -88,7 +88,7 @@ if(isset($_POST['switchexpert']) && isset($_SESSION[$rspathhex.'username']) && $
echo '<a class="navbar-brand" href="//ts-ranksystem.com/?changelog" target="_blank">'.$lang['winav9'].' ['.$_SESSION[$rspathhex.'newversion'].']</a>';
} ?>
</div>
<?PHP if(basename($_SERVER['SCRIPT_NAME']) == "stats.php") { ?>
<?PHP if(basename($_SERVER['SCRIPT_NAME']) == "ranklist.php") { ?>
<ul class="nav navbar-left top-nav">
<li class="navbar-form navbar-right">
<button onclick="window.open('../stats/list_rankup.php?admin=true','_blank'); return false;" class="btn btn-primary" name="adminlist">
@@ -168,12 +168,12 @@ if(isset($_POST['switchexpert']) && isset($_SESSION[$rspathhex.'username']) && $
</li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#rank"><i class="fas fa-hourglass-half"></i>&nbsp;&nbsp;<?PHP echo $lang['stmy0002']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="rank" class="'.(basename($_SERVER['SCRIPT_NAME']) == "core.php" || basename($_SERVER['SCRIPT_NAME']) == "rank.php" || basename($_SERVER['SCRIPT_NAME']) == "boost.php" || basename($_SERVER['SCRIPT_NAME']) == "except.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<ul id="rank" class="'.(basename($_SERVER['SCRIPT_NAME']) == "core.php" || basename($_SERVER['SCRIPT_NAME']) == "rank.php" || basename($_SERVER['SCRIPT_NAME']) == "boost.php" || basename($_SERVER['SCRIPT_NAME']) == "except.php" || basename($_SERVER['SCRIPT_NAME']) == "msg.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "core.php" ? ' class="active">' : '>'); ?>
<a href="core.php" class="active"><i class="fas fa-cogs"></i>&nbsp;&nbsp;<?PHP echo $lang['winav3']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "rank.php" ? ' class="active">' : '>'); ?>
<a href="rank.php" class="active"><i class="fas fa-list-ol"></i>&nbsp;&nbsp;<?PHP echo $lang['stmy0002']; ?></a>
<a href="rank.php" class="active"><i class="fas fa-list-ol"></i>&nbsp;&nbsp;<?PHP echo $lang['wigrptime']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "except.php" ? ' class="active">' : '>'); ?>
<a href="except.php" class="active"><i class="fas fa-ban"></i>&nbsp;&nbsp;<?PHP echo $lang['wiexcept']; ?></a>
@@ -181,33 +181,25 @@ if(isset($_POST['switchexpert']) && isset($_SESSION[$rspathhex.'username']) && $
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "boost.php" ? ' class="active">' : '>'); ?>
<a href="boost.php"><i class="fas fa-rocket"></i>&nbsp;&nbsp;<?PHP echo $lang['wiboost']; ?></a>
</li>
</ul>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "other.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="other.php"><i class="fas fa-wrench"></i>&nbsp;&nbsp;<?PHP echo $lang['winav4']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "msg.php" ? ' class="active">' : '>'); ?>
<a href="msg.php"><i class="fas fa-envelope"></i>&nbsp;&nbsp;<?PHP echo $lang['winav5']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "imprint.php" ? ' class="active">' : '>'); ?>
<a href="imprint.php"><i class="fas fa-address-card"></i>&nbsp;&nbsp;<?PHP echo $lang['imprint']; ?></a>
</ul>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "other.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="other.php"><i class="fas fa-wrench"></i>&nbsp;&nbsp;<?PHP echo $lang['winav4']; ?></a>
</li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#stats"><i class="fas fa-chart-area"></i>&nbsp;&nbsp;<?PHP echo $lang['winav6']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="stats" class="'.(basename($_SERVER['SCRIPT_NAME']) == "stats.php" || basename($_SERVER['SCRIPT_NAME']) == "ranklist.php" || basename($_SERVER['SCRIPT_NAME']) == "imprint.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "stats.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="stats.php"><i class="fas fa-chart-bar"></i>&nbsp;&nbsp;<?PHP echo $lang['winav6']; ?></a>
<a href="stats.php"><i class="fas fa-chart-bar"></i>&nbsp;&nbsp;<?PHP echo $lang['winav13']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "ranklist.php" ? ' class="active">' : '>'); ?>
<a href="ranklist.php"><i class="fas fa-list"></i>&nbsp;&nbsp;<?PHP echo $lang['stnv0029']; ?></a>
</li>
<li class="divider"></li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#addons"><i class="fas fa-puzzle-piece"></i>&nbsp;&nbsp;<?PHP echo $lang['winav12']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="addons" class="'.(basename($_SERVER['SCRIPT_NAME']) == "addon_assign_groups.php" || basename($_SERVER['SCRIPT_NAME']) == "api.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "api.php" ? ' class="active">' : '>'); ?>
<a href="api.php"><i class="fas fa-microchip"></i>&nbsp;&nbsp;<?PHP echo $lang['api']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "addon_assign_groups.php" ? ' class="active">' : '>'); ?>
<a href="addon_assign_groups.php" class="active"><i class="fas fa-user-plus"></i>&nbsp;&nbsp;<?PHP echo $lang['stag0001']; ?></a>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "imprint.php" ? ' class="active">' : '>'); ?>
<a href="imprint.php"><i class="fas fa-address-card"></i>&nbsp;&nbsp;<?PHP echo $lang['imprint']; ?></a>
</li>
</ul>
</li>
@@ -226,6 +218,18 @@ if(isset($_POST['switchexpert']) && isset($_SESSION[$rspathhex.'username']) && $
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#addons"><i class="fas fa-puzzle-piece"></i>&nbsp;&nbsp;<?PHP echo $lang['winav12']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="addons" class="'.(basename($_SERVER['SCRIPT_NAME']) == "addon_assign_groups.php" || basename($_SERVER['SCRIPT_NAME']) == "api.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "api.php" ? ' class="active">' : '>'); ?>
<a href="api.php"><i class="fas fa-microchip"></i>&nbsp;&nbsp;<?PHP echo $lang['api']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "addon_assign_groups.php" ? ' class="active">' : '>'); ?>
<a href="addon_assign_groups.php" class="active"><i class="fas fa-user-plus"></i>&nbsp;&nbsp;<?PHP echo $lang['stag0001']; ?></a>
</li>
</ul>
</li>
<?PHP
} ?>
<li class="divider"></li>

View File

@@ -13,24 +13,26 @@ if (($db_csrf = $mysqlcon->query("SELECT * FROM `$dbname`.`csrf_token` WHERE `se
}
if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
$cfg['imprint_address'] = addslashes($_POST['imprint_address']);
$cfg['imprint_email'] = addslashes($_POST['imprint_email']);
$cfg['imprint_phone'] = addslashes($_POST['imprint_phone']);
$cfg['imprint_notes'] = addslashes($_POST['imprint_notes']);
$cfg['imprint_privacy-policy'] = addslashes($_POST['imprint_privacy-policy']);
if (isset($_POST['imprint_enabled'])) $cfg['imprint_enabled'] = 1; else $cfg['imprint_enabled'] = 0;
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('imprint_enabled','{$cfg['imprint_enabled']}'),('imprint_address','{$cfg['imprint_address']}'),('imprint_email','{$cfg['imprint_email']}'),('imprint_phone','{$cfg['imprint_phone']}'),('imprint_notes','{$cfg['imprint_notes']}'),('imprint_privacy-policy','{$cfg['imprint_privacy-policy']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
$cfg['stats_imprint_address'] = addslashes($_POST['stats_imprint_address']);
$cfg['stats_imprint_address_url'] = addslashes($_POST['stats_imprint_address_url']);
$cfg['stats_imprint_email'] = addslashes($_POST['stats_imprint_email']);
$cfg['stats_imprint_phone'] = addslashes($_POST['stats_imprint_phone']);
$cfg['stats_imprint_notes'] = addslashes($_POST['stats_imprint_notes']);
$cfg['stats_imprint_privacypolicy'] = addslashes($_POST['stats_imprint_privacypolicy']);
$cfg['stats_imprint_privacypolicy_url'] = addslashes($_POST['stats_imprint_privacypolicy_url']);
if (isset($_POST['stats_imprint_switch'])) $cfg['stats_imprint_switch'] = 1; else $cfg['stats_imprint_switch'] = 0;
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('stats_imprint_switch','{$cfg['stats_imprint_switch']}'),('stats_imprint_address','{$cfg['stats_imprint_address']}'),('stats_imprint_address_url','{$cfg['stats_imprint_address_url']}'),('stats_imprint_email','{$cfg['stats_imprint_email']}'),('stats_imprint_phone','{$cfg['stats_imprint_phone']}'),('stats_imprint_notes','{$cfg['stats_imprint_notes']}'),('stats_imprint_privacypolicy','{$cfg['stats_imprint_privacypolicy']}'),('stats_imprint_privacypolicy_url','{$cfg['stats_imprint_privacypolicy_url']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
$err_msg = print_r($mysqlcon->errorInfo(), true);
$err_lvl = 3;
} else {
$err_msg = $lang['wisvsuc']." ".sprintf($lang['wisvres']);
$err_lvl = NULL;
}
$cfg['imprint_address'] = $_POST['imprint_address'];
$cfg['imprint_email'] = $_POST['imprint_email'];
$cfg['imprint_phone'] = $_POST['imprint_phone'];
$cfg['imprint_notes'] = $_POST['imprint_notes'];
$cfg['imprint_privacy-policy'] = $_POST['imprint_privacy-policy'];
$cfg['stats_imprint_address'] = $_POST['stats_imprint_address'];
$cfg['stats_imprint_email'] = $_POST['stats_imprint_email'];
$cfg['stats_imprint_phone'] = $_POST['stats_imprint_phone'];
$cfg['stats_imprint_notes'] = $_POST['stats_imprint_notes'];
$cfg['stats_imprint_privacypolicy'] = $_POST['stats_imprint_privacypolicy'];
} elseif(isset($_POST['update'])) {
echo '<div class="alert alert-danger alert-dismissible">',$lang['errcsrf'],'</div>';
rem_session_ts3($rspathhex);
@@ -43,7 +45,7 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
<?php echo $lang['imprint'],' & ',$lang['privacy-policy']; ?>
<?php echo $lang['imprint'],' & ',$lang['privacy']; ?>
</h1>
</div>
</div>
@@ -56,35 +58,41 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpswitchdesc"><?php echo $lang['wiimpswitch']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<?PHP if ($cfg['imprint_enabled'] == 1) {
echo '<input id="switch-animate" type="checkbox" checked data-size="mini" name="imprint_enabled" value="',$cfg['imprint_enabled'],'">';
<?PHP if ($cfg['stats_imprint_switch'] == 1) {
echo '<input id="switch-animate" type="checkbox" checked data-size="mini" name="stats_imprint_switch" value="',$cfg['stats_imprint_switch'],'">';
} else {
echo '<input id="switch-animate" type="checkbox" data-size="mini" name="imprint_enabled" value="',$cfg['imprint_enabled'],'">';
echo '<input id="switch-animate" type="checkbox" data-size="mini" name="stats_imprint_switch" value="',$cfg['stats_imprint_switch'],'">';
} ?>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpaddrdesc"><?php echo $lang['imprint_address']; ?><i class="help-hover fas fa-question-circle"></i></label>
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpaddrurldesc"><?php echo $lang['wiimpaddrurl']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="4" name="imprint_address" maxlength="21588"><?php echo $cfg['imprint_address']; ?></textarea>
<input type="url" name="stats_imprint_address_url" class="form-control" value='<?php echo $cfg["stats_imprint_address_url"]; ?>'>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpemaildesc"><?php echo $lang['imprint_email']; ?><i class="help-hover fas fa-question-circle"></i></label>
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpaddrdesc"><?php echo $lang['wiimpaddr']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<input type="email" name="imprint_email" class="form-control" value='<?php echo $cfg["imprint_email"]; ?>'>
<textarea class="form-control" rows="4" name="stats_imprint_address" maxlength="21588"><?php echo $cfg['stats_imprint_address']; ?></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpphonedesc"><?php echo $lang['imprint_phone']; ?><i class="help-hover fas fa-question-circle"></i></label>
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpemaildesc"><?php echo $lang['wiimpnotes']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<input type="tel" name="imprint_phone" class="form-control" value='<?php echo $cfg["imprint_phone"]; ?>'>
<input type="email" name="stats_imprint_email" class="form-control" value='<?php echo $cfg["stats_imprint_email"]; ?>'>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpnotesdesc"><?php echo $lang['imprint_notes']; ?><i class="help-hover fas fa-question-circle"></i></label>
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpphonedesc"><?php echo $lang['wiimpphone']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="5" name="imprint_notes" maxlength="21588"><?php echo $cfg['imprint_notes']; ?></textarea>
<input type="tel" name="stats_imprint_phone" class="form-control" value='<?php echo $cfg["stats_imprint_phone"]; ?>'>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpnotesdesc"><?php echo $lang['wiimpnotes']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="5" name="stats_imprint_notes" maxlength="21588"><?php echo $cfg['stats_imprint_notes']; ?></textarea>
</div>
</div>
</div>
@@ -94,9 +102,15 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpprivacydesc"><?php echo $lang['privacy-policy']; ?><i class="help-hover fas fa-question-circle"></i></label>
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpprivurldesc"><?php echo $lang['wiimpprivurl']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="15" name="imprint_privacy-policy" maxlength="21588"><?php echo $cfg['imprint_privacy-policy']; ?></textarea>
<input type="url" name="stats_imprint_privacypolicy_url" class="form-control" value='<?php echo $cfg["stats_imprint_privacypolicy_url"]; ?>'>
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiimpprivacydesc"><?php echo $lang['privacy']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="15" name="stats_imprint_privacypolicy" maxlength="21588"><?php echo $cfg['stats_imprint_privacypolicy']; ?></textarea>
</div>
</div>
</div>
@@ -131,15 +145,31 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</div>
</div>
</div>
<div class="modal fade" id="wiimpaddrurldesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['wiimpaddrurl']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wiimpaddrurldesc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="wiimpaddrdesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['imprint_address']; ?></h4>
<h4 class="modal-title"><?php echo $lang['wiimpaddr']; ?></h4>
</div>
<div class="modal-body">
<?php echo sprintf($lang['wiimpaddrdesc'], '<a href="https://ts-n.net/lexicon.php?showid=97#lexindex" target="_blank">https://ts-n.net/lexicon.php?showid=97#lexindex</a>'); ?>
<?php echo $lang['wiimpaddrdesc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
@@ -152,7 +182,7 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['imprint_email']; ?></h4>
<h4 class="modal-title"><?php echo $lang['wiimpnotes']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wiimpemaildesc']; ?>
@@ -168,7 +198,7 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['imprint_phone']; ?></h4>
<h4 class="modal-title"><?php echo $lang['wiimpphone']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wiimpphonedesc']; ?>
@@ -184,7 +214,7 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['imprint_notes']; ?></h4>
<h4 class="modal-title"><?php echo $lang['wiimpnotes']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wiimpnotesdesc']; ?>
@@ -195,12 +225,28 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</div>
</div>
</div>
<div class="modal fade" id="wiimpprivurldesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['wiimpprivurl']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wiimpprivurldesc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="wiimpprivacydesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['privacy-policy']; ?></h4>
<h4 class="modal-title"><?php echo $lang['privacy']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wiimpprivacydesc']; ?>
@@ -211,21 +257,5 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</div>
</div>
</div>
<div class="modal fade" id="winxmsgdesc3" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['winxmsg3']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['winxmsgdesc3']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -14,13 +14,12 @@ if (($db_csrf = $mysqlcon->query("SELECT * FROM `$dbname`.`csrf_token` WHERE `se
if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
$cfg['rankup_message_to_user'] = addslashes($_POST['rankup_message_to_user']);
$cfg['stats_server_news'] = addslashes($_POST['stats_server_news']);
$cfg['rankup_next_message_1'] = addslashes($_POST['rankup_next_message_1']);
$cfg['rankup_next_message_2'] = addslashes($_POST['rankup_next_message_2']);
$cfg['rankup_next_message_3'] = addslashes($_POST['rankup_next_message_3']);
$cfg['rankup_next_message_mode'] = $_POST['rankup_next_message_mode'];
if (isset($_POST['rankup_message_to_user_switch'])) $cfg['rankup_message_to_user_switch'] = 1; else $cfg['rankup_message_to_user_switch'] = 0;
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('rankup_message_to_user_switch','{$cfg['rankup_message_to_user_switch']}'),('rankup_message_to_user','{$cfg['rankup_message_to_user']}'),('stats_server_news','{$cfg['stats_server_news']}'),('rankup_next_message_mode','{$cfg['rankup_next_message_mode']}'),('rankup_next_message_1','{$cfg['rankup_next_message_1']}'),('rankup_next_message_2','{$cfg['rankup_next_message_2']}'),('rankup_next_message_3','{$cfg['rankup_next_message_3']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('rankup_message_to_user_switch','{$cfg['rankup_message_to_user_switch']}'),('rankup_message_to_user','{$cfg['rankup_message_to_user']}'),('rankup_next_message_mode','{$cfg['rankup_next_message_mode']}'),('rankup_next_message_1','{$cfg['rankup_next_message_1']}'),('rankup_next_message_2','{$cfg['rankup_next_message_2']}'),('rankup_next_message_3','{$cfg['rankup_next_message_3']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
$err_msg = print_r($mysqlcon->errorInfo(), true);
$err_lvl = 3;
} else {
@@ -29,7 +28,6 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
$err_lvl = NULL;
}
$cfg['rankup_message_to_user'] = $_POST['rankup_message_to_user'];
$cfg['stats_server_news'] = $_POST['stats_server_news'];
$cfg['rankup_next_message_1'] = $_POST['rankup_next_message_1'];
$cfg['rankup_next_message_2'] = $_POST['rankup_next_message_2'];
$cfg['rankup_next_message_3'] = $_POST['rankup_next_message_3'];
@@ -73,14 +71,6 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</div>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wimsgsndesc"><?php echo $lang['wimsgsn']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="15" name="stats_server_news" maxlength="21588"><?php echo $cfg['stats_server_news']; ?></textarea>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
@@ -163,22 +153,6 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</div>
</div>
</div>
<div class="modal fade" id="wimsgsndesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['wimsgsn']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wimsgsndesc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="winxinfodesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">

View File

@@ -1,269 +0,0 @@
<?PHP
$job_check = $mysqlcon->query("SELECT * FROM `$dbname`.`job_check`")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
if((time() - $job_check['last_update']['timestamp']) < 259200 && !isset($_SESSION[$rspathhex.'upinfomsg'])) {
if(!isset($err_msg)) {
$err_msg = '<i class="fas fa-info-circle"></i>&nbsp;'.sprintf($lang['upinf2'], date("Y-m-d H:i",$job_check['last_update']['timestamp']), '<i class="fas fa-book"></i>&nbsp;<a href="//ts-ranksystem.com/?changelog" target="_blank">', '</a>'); $err_lvl = 1;
$_SESSION[$rspathhex.'upinfomsg'] = 1;
}
}
if(!isset($_POST['start']) && !isset($_POST['stop']) && !isset($_POST['restart']) && isset($_SESSION[$rspathhex.'username']) && $_SESSION[$rspathhex.'username'] == $cfg['webinterface_user'] && $_SESSION[$rspathhex.'password'] == $cfg['webinterface_pass']) {
if (substr(php_uname(), 0, 7) == "Windows") {
if (file_exists(substr(__DIR__,0,-12).'logs\pid')) {
$pid = str_replace(array("\r", "\n"), '', file_get_contents(substr(__DIR__,0,-12).'logs\pid'));
exec("wmic process where \"processid=".$pid."\" get processid 2>nul", $result);
if(isset($result[1]) && is_numeric($result[1])) {
$botstatus = 1;
} else {
$botstatus = 0;
}
} else {
$botstatus = 0;
}
} else {
if (file_exists(substr(__DIR__,0,-12).'logs/pid')) {
$check_pid = str_replace(array("\r", "\n"), '', file_get_contents(substr(__DIR__,0,-12).'logs/pid'));
$result = str_replace(array("\r", "\n"), '', shell_exec("ps ".$check_pid));
if (strstr($result, $check_pid)) {
$botstatus = 1;
} else {
$botstatus = 0;
}
} else {
$botstatus = 0;
}
}
}
if(isset($_POST['switchexpert']) && isset($_SESSION[$rspathhex.'username']) && $_SESSION[$rspathhex.'username'] == $cfg['webinterface_user'] && $_SESSION[$rspathhex.'password'] == $cfg['webinterface_pass']) {
if ($_POST['switchexpert'] == "check") $cfg['webinterface_advanced_mode'] = 1; else $cfg['webinterface_advanced_mode'] = 0;
if (($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('webinterface_advanced_mode','{$cfg['webinterface_advanced_mode']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`);")) === false) {
print_r($mysqlcon->errorInfo(), true);
$err_msg = print_r($mysqlcon->errorInfo(), true);
$err_lvl = 3;
}
}
?>
<!DOCTYPE html>
<html lang="<?PHP echo $cfg['default_language']; ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="version" content="<?PHP echo $cfg['version_current_using']; ?>">
<link rel="icon" href="../tsicons/rs.png">
<title>TSN Ranksystem - ts-ranksystem.com</title>
<link href="../libs/combined_wi.css?v=<?PHP echo $cfg['version_current_using']; ?>" rel="stylesheet">
<script src="../libs/combined_wi.js?v=<?PHP echo $cfg['version_current_using']; ?>"></script>
<script>
$(function() {
var timerid;
$("ul.dropdown-menu").on("click", "[data-keepOpenOnClick]", function(e) {
e.stopPropagation();
});
$('#switchexpert').on('switchChange.bootstrapSwitch', function() {
$('.expertelement').each(function(i, obj) {
$(this).toggleClass("hidden");
});
clearTimeout(timerid);
timerid = setTimeout(function() { $('#autosubmit').submit(); }, 250);
});
});
window.onload = function() {
var expert = '<?PHP echo $cfg['webinterface_advanced_mode']; ?>';
if(expert == 0) {
$('.expertelement').each(function(i, obj) {
$(this).toggleClass("hidden");
});
}
};
</script>
<body>
<?PHP
if (basename($_SERVER['SCRIPT_NAME']) != "index.php") {
echo '<div id="wrapper">';
} else {
echo '<div>';
} ?>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">TSN Ranksystem - Webinterface <?PHP echo $cfg['version_current_using'];?></a>
<?PHP if(isset($_SESSION[$rspathhex.'newversion']) && version_compare($_SESSION[$rspathhex.'newversion'], $cfg['version_current_using'], '>') && $_SESSION[$rspathhex.'newversion'] != '') {
echo '<a class="navbar-brand" href="//ts-ranksystem.com/?changelog" target="_blank">'.$lang['winav9'].' ['.$_SESSION[$rspathhex.'newversion'].']</a>';
} ?>
</div>
<?PHP if(basename($_SERVER['SCRIPT_NAME']) == "stats.php") { ?>
<ul class="nav navbar-left top-nav">
<li class="navbar-form navbar-right">
<button onclick="window.open('../stats/list_rankup.php?admin=true','_blank'); return false;" class="btn btn-primary" name="adminlist">
<i class="fas fa-list"></i>&nbsp;<?PHP echo $lang['wihladm']; ?>
</button>
</li>
</ul>
<?PHP } ?>
<ul class="nav navbar-right top-nav">
<?PHP
if(isset($_SESSION[$rspathhex.'username']) && $_SESSION[$rspathhex.'username'] == $cfg['webinterface_user'] && $_SESSION[$rspathhex.'password'] == $cfg['webinterface_pass']) { ?>
<li class="dropdown">
<a href="" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i>&nbsp;&nbsp;<?PHP echo $_SESSION[$rspathhex.'username']; ?>&nbsp;<b class="caret"></b></a>
<ul class="dropdown-menu">
<li class="navbar-form">
<form method="post" id="autosubmit">
<?PHP
if($cfg['webinterface_advanced_mode'] == 1) {
echo '<input name="switchexpert" value="0" type="hidden">';
echo '<input class="switch-animate" id="switchexpert" name="switchexpert" value="checked" type="checkbox" data-size="mini" data-label-text="Expert Mode" checked>';
} else {
echo '<input class="switch-animate" id="switchexpert" name="switchexpert" value="check" type="checkbox" data-size="mini" data-label-text="Expert Mode">';
}
?>
</form>
</li>
<li class="divider"></li>
<?PHP if($_SERVER['SERVER_PORT'] == 443 || $_SERVER['SERVER_PORT'] == 80) {
echo '<li><a href="//',$_SERVER['SERVER_NAME'],substr(dirname($_SERVER['SCRIPT_NAME']),0,-12),'stats/"><i class="fas fa-chart-bar"></i>&nbsp;&nbsp;',$lang['winav6'],'</a></li>';
} else {
echo '<li><a href="//',$_SERVER['SERVER_NAME'],':',$_SERVER['SERVER_PORT'],substr(dirname($_SERVER['SCRIPT_NAME']),0,-12),'stats/"><i class="fas fa-chart-bar"></i>&nbsp;&nbsp;',$lang['winav6'],'</a></li>';
} ?>
<li>
<a href="changepassword.php"><i class="fas fa-key"></i>&nbsp;&nbsp;<?PHP echo $lang['pass2']; ?></a>
</li>
<li class="divider"></li>
<li>
<form method="post" id="logout">
<div class="form-group">
<button type="submit" name="logout" class="btn btn-primary btn-sm btn-block"><span class="fas fa-sign-out-alt" aria-hidden="true"></span>&nbsp;<?PHP echo $lang['wilogout']; ?></button>
</div>
</form>
</li>
</ul>
</li>
<?PHP } elseif($_SERVER['SERVER_PORT'] == 443 || $_SERVER['SERVER_PORT'] == 80) {
echo '<li><a href="//',$_SERVER['SERVER_NAME'],substr(dirname($_SERVER['SCRIPT_NAME']),0,-12),'stats/"><i class="fas fa-chart-bar"></i>&nbsp;',$lang['winav6'],'</a></li>';
} else {
echo '<li><a href="//',$_SERVER['SERVER_NAME'],':',$_SERVER['SERVER_PORT'],substr(dirname($_SERVER['SCRIPT_NAME']),0,-12),'stats/"><i class="fas fa-chart-bar"></i>&nbsp;',$lang['winav6'],'</a></li>';
} ?>
<li class="dropdown">
<a href="" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-globe-europe"></i>&nbsp;<b class="caret"></b></a>
<ul class="dropdown-menu">
<?PHP
if(is_dir(substr(__DIR__,0,-12).'languages/')) {
foreach(scandir(substr(__DIR__,0,-12).'languages/') as $file) {
if ('.' === $file || '..' === $file || is_dir($file)) continue;
$sep_lang = preg_split("/[._]/", $file);
if(isset($sep_lang[0]) && $sep_lang[0] == 'core' && isset($sep_lang[1]) && strlen($sep_lang[1]) == 2 && isset($sep_lang[4]) && strtolower($sep_lang[4]) == 'php') {
echo '<li><a href="?lang='.$sep_lang[1].'"><span class="flag-icon flag-icon-'.$sep_lang[3].'"></span>&nbsp;&nbsp;'.strtoupper($sep_lang[1]).' - '.$sep_lang[2].'</a></li>';
}
}
}
?>
</ul>
</li>
</ul>
<?PHP
if (basename($_SERVER['SCRIPT_NAME']) != "index.php") { ?>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav side-nav">
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "ts.php" ? ' class="active">' : '>'); ?>
<a href="ts.php"><i class="fas fa-headset"></i>&nbsp;&nbsp;<?PHP echo $lang['winav1']; ?></a>
</li>
<?PHP
if ((array_key_exists('webinterface_fresh_installation', $cfg) && $cfg['webinterface_fresh_installation'] != 1) || !array_key_exists('webinterface_fresh_installation', $cfg)) {
echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "db.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="db.php"><i class="fas fa-database"></i>&nbsp;&nbsp;<?PHP echo $lang['winav2']; ?></a>
</li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#rank"><i class="fas fa-hourglass-half"></i>&nbsp;&nbsp;<?PHP echo $lang['stmy0002']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="rank" class="'.(basename($_SERVER['SCRIPT_NAME']) == "core.php" || basename($_SERVER['SCRIPT_NAME']) == "rank.php" || basename($_SERVER['SCRIPT_NAME']) == "boost.php" || basename($_SERVER['SCRIPT_NAME']) == "except.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "core.php" ? ' class="active">' : '>'); ?>
<a href="core.php" class="active"><i class="fas fa-cogs"></i>&nbsp;&nbsp;<?PHP echo $lang['winav3']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "rank.php" ? ' class="active">' : '>'); ?>
<a href="rank.php" class="active"><i class="fas fa-list-ol"></i>&nbsp;&nbsp;<?PHP echo $lang['stmy0002']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "except.php" ? ' class="active">' : '>'); ?>
<a href="except.php" class="active"><i class="fas fa-ban"></i>&nbsp;&nbsp;<?PHP echo $lang['wiexcept']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "boost.php" ? ' class="active">' : '>'); ?>
<a href="boost.php"><i class="fas fa-rocket"></i>&nbsp;&nbsp;<?PHP echo $lang['wiboost']; ?></a>
</li>
</ul>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "other.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="other.php"><i class="fas fa-wrench"></i>&nbsp;&nbsp;<?PHP echo $lang['winav4']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "msg.php" ? ' class="active">' : '>'); ?>
<a href="msg.php"><i class="fas fa-envelope"></i>&nbsp;&nbsp;<?PHP echo $lang['winav5']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "stats.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="stats.php"><i class="fas fa-chart-bar"></i>&nbsp;&nbsp;<?PHP echo $lang['winav6']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "ranklist.php" ? ' class="active">' : '>'); ?>
<a href="ranklist.php"><i class="fas fa-list"></i>&nbsp;&nbsp;<?PHP echo $lang['stnv0029']; ?></a>
</li>
<li class="divider"></li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#addons"><i class="fas fa-puzzle-piece"></i>&nbsp;&nbsp;<?PHP echo $lang['winav12']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="addons" class="'.(basename($_SERVER['SCRIPT_NAME']) == "addon_assign_groups.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "addon_assign_groups.php" ? ' class="active">' : '>'); ?>
<a href="addon_assign_groups.php" class="active"><i class="fas fa-user-plus"></i>&nbsp;&nbsp;<?PHP echo $lang['stag0001']; ?></a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="javascript:;" data-toggle="collapse" data-target="#admin"><i class="fas fa-users"></i>&nbsp;&nbsp;<?PHP echo $lang['winav7']; ?>&nbsp;<i class="fas fa-caret-down"></i></a>
<?PHP echo '<ul id="admin" class="'.(basename($_SERVER['SCRIPT_NAME']) == "admin_addtime.php" || basename($_SERVER['SCRIPT_NAME']) == "admin_remtime.php" || basename($_SERVER['SCRIPT_NAME']) == "reset.php" ? 'in collapse">' : 'collapse">'); ?>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "admin_addtime.php" ? ' class="active">' : '>'); ?>
<a href="admin_addtime.php"><i class="fas fa-plus"></i>&nbsp;&nbsp;<?PHP echo $lang['wihladm1']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "admin_remtime.php" ? ' class="active">' : '>'); ?>
<a href="admin_remtime.php"><i class="fas fa-minus"></i>&nbsp;&nbsp;<?PHP echo $lang['wihladm2']; ?></a>
</li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "reset.php" ? ' class="active expertelement">' : ' class="expertelement">'); ?>
<a href="reset.php"><i class="fas fa-sync"></i>&nbsp;&nbsp;<?PHP echo $lang['wihladm3']; ?></a>
</li>
</ul>
</li>
<?PHP
} ?>
<li class="divider"></li>
<?PHP echo '<li'.(basename($_SERVER['SCRIPT_NAME']) == "bot.php" ? ' class="active">' : '>'); ?>
<a href="bot.php"><i class="fas fa-power-off"></i>&nbsp;&nbsp;<?PHP echo $lang['winav8']; ?></a>
</li>
<?PHP
if(isset($botstatus)) {
echo '<li class="divider"></li>';
if($botstatus == 1) {
echo '<li><div class="btn-group-justified alertbot alert-success" style="width:100%;"><i class="fas fa-check"></i>&nbsp;&nbsp;'.$lang['boton'].'</div></li>';
} else {
echo '<li><div class="btn-group-justified alertbot alert-info" style="width:100%;"><i class="fas fa-times"></i>&nbsp;&nbsp;'.$lang['botoff'].'</div></li>';
}
}
?>
</ul>
</div>
<?PHP } ?>
</nav>
<?PHP
if($cfg['webinterface_admin_client_unique_id_list'] == NULL && isset($_SESSION[$rspathhex.'username']) && $_SESSION[$rspathhex.'username'] == $cfg['webinterface_user'] && !isset($err_msg) && $cfg['webinterface_fresh_installation'] != 1) {
$err_msg = $lang['winav11']; $err_lvl = 2;
}
if(!isset($_SERVER['HTTPS']) && !isset($err_msg) || isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "on" && !isset($err_msg)) {
$host = "<a href=\"https://".$_SERVER['HTTP_HOST'].rtrim(dirname($_SERVER['PHP_SELF']), '/\\')."\">";
$err_msg = sprintf($lang['winav10'], $host,'</a>!<br>', '<br>'); $err_lvl = 2;
}
function error_handling($msg,$type = NULL) {
switch ($type) {
case NULL: echo '<div class="alert alert-success alert-dismissible">'; break;
case 1: echo '<div class="alert alert-info alert-dismissible">'; break;
case 2: echo '<div class="alert alert-warning alert-dismissible">'; break;
case 3: echo '<div class="alert alert-danger alert-dismissible">'; break;
}
echo '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>',$msg,'</div>';
}
?>

View File

@@ -27,29 +27,31 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
$grouparr_old = null;
} else {
foreach (explode(',', $_POST['rankup_definition']) as $entry) {
list($time, $groupid) = explode('=>', $entry);
$grouparr_old[$groupid] = $time;
list($time, $groupid, $keepflag) = explode('=>', $entry);
if($keepflag == NULL) $keepflag = 0;
$grouparr_old[$time] = array("time"=>$time,"group"=>$groupid,"keep"=>$keepflag);
$cfg['rankup_definition'] = $grouparr_old;
}
}
if(isset($groupslist) && $groupslist != NULL) {
foreach($grouparr_old as $groupid => $time) {
if(!isset($groupslist[$groupid]) && $groupid != NULL) {
$err_msg .= sprintf($lang['upgrp0001'], $groupid, $lang['wigrptime']).'<br>';
if(isset($cfg['rankup_definition']) && $cfg['rankup_definition'] != NULL) {
foreach($cfg['rankup_definition'] as $time => $value) {
if(!isset($groupslist[$value['group']]) && $value['group'] != NULL) {
$err_msg .= sprintf($lang['upgrp0001'], $value['group'], $lang['wigrptime']).'<br>';
$err_lvl = 3;
$errcnf++;
}
}
}
}
if($_POST['rankup_definition'] == "") {
$err_msg = "Saving of empty defintion prevented.<br><br>Your changes were <b>not</b> be saved!<br><br>You need at least one entry to be able to save the configuration!";
$err_lvl = 3;
} else {
$cfg['rankup_definition'] = $_POST['rankup_definition'];
if($errcnf == 0) {
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('rankup_definition','{$cfg['rankup_definition']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('rankup_definition','{$_POST['rankup_definition']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
$err_msg = print_r($mysqlcon->errorInfo(), true);
$err_lvl = 3;
} else {
@@ -59,13 +61,6 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
} else {
$err_msg .= "<br>".$lang['errgrpid'];
}
$grouptimearr = explode(',', $_POST['rankup_definition']);
foreach ($grouptimearr as $entry) {
list($key, $value) = explode('=>', $entry);
$addnewvalue1[$key] = $value;
$cfg['rankup_definition'] = $addnewvalue1;
}
}
} elseif (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
@@ -74,18 +69,20 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
$rankupgroups = [];
foreach($_POST['rankuptime'] as $key => $entry) {
$servergroupId = isset($_POST["rankupgroup"][$key]) ? $_POST["rankupgroup"][$key] : 0;
if(empty($servergroupId)) {
$servergroupId = 0;
if(in_array($key,$_POST["rankupkeep"])) {
$keepflag = 1;
} else {
$keepflag = 0;
}
if(empty($entry)) {
$entry = 0;
}
$rankupgroups[] = "$entry=>$servergroupId";
$rankupgroups[] = "$entry=>$servergroupId=>$keepflag";
}
$rankup_definition = implode(",", $rankupgroups);
$grouparr = [];
foreach(explode(',', $rankup_definition) as $entry) {
list($time, $groupid) = explode('=>', $entry);
list($time, $groupid, $keepflag) = explode('=>', $entry);
$grouparr[$groupid] = $time;
}
@@ -120,8 +117,8 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
} else {
$grouptimearr = explode(',', $rankup_definition);
foreach ($grouptimearr as $entry) {
list($key, $value) = explode('=>', $entry);
$addnewvalue1[$key] = $value;
list($time, $groupid, $keepflag) = explode('=>', $entry);
$addnewvalue1[$time] = array("time"=>$time,"group"=>$groupid,"keep"=>$keepflag);
$cfg['rankup_definition'] = $addnewvalue1;
}
}
@@ -165,21 +162,24 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="col-sm-5">
<b><?php echo $lang['wigrpt2'] ?></b>
</div>
<div class="col-sm-2"></div>
<div class="col-sm-2">
<b><?php echo $lang['wigrpt3'] ?></b>
</div>
<div class="col-sm-1"></div>
</div>
<?PHP
foreach($cfg['rankup_definition'] as $time => $sgroup) {
$rowid = 0;
foreach($cfg['rankup_definition'] as $rank) {
?>
<div class="form-group" name="rankupgroup">
<div class="col-sm-4">
<input type="text" class="form-control rankuptime" name="rankuptime[]" value="<?PHP echo $time; ?>">
<input type="text" class="form-control rankuptime" name="rankuptime[]" value="<?PHP echo $rank['time']; ?>">
</div>
<div class="col-sm-5">
<select class="selectpicker show-tick form-control" data-live-search="true" name="rankupgroup[]">
<?PHP
foreach ($groupslist as $groupID => $groupParam) {
if ($groupID == $sgroup) $selected=" selected"; else $selected="";
if ($groupID == $rank['group']) $selected=" selected"; else $selected="";
if (isset($groupParam['iconid']) && $groupParam['iconid'] != 0) $iconid=$groupParam['iconid']."."; else $iconid="placeholder.png";
if ($groupParam['type'] == 0 || $groupParam['type'] == 2) $disabled=" disabled"; else $disabled="";
if ($groupParam['type'] == 0) $grouptype=" [TEMPLATE GROUP]"; else $grouptype="";
@@ -191,10 +191,17 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
?>
</select>
</div>
<div class="col-sm-2">
<?PHP if ($rank['keep'] == 1) {
echo '<input class="switch-animate" type="checkbox" checked data-size="mini" name="rankupkeep[]" value="',$rowid,'">';
} else {
echo '<input class="switch-animate" type="checkbox" data-size="mini" name="rankupkeep[]" value="',$rowid,'">';
} ?>
</div>
<div class="col-sm-1 text-center delete" name="delete"><i class="fas fa-trash" style="margin-top:10px;cursor:pointer;" title="delete line"></i></div>
<div class="col-sm-2"></div>
</div>
<?PHP
$rowid++;
}
?>
<div class="form-group" id="addrankupgroup">
@@ -243,7 +250,7 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
<div class="form-group required-field-block">
<label class="col-sm-2 control-label"><?php echo $lang['wigrptime']; ?></label>
<div class="col-sm-10">
<textarea class="form-control required" data-pattern="^([0-9]{1,9}=>[0-9]{1,9},)*[0-9]{1,9}=>[0-9]{1,9}$" data-error="Wrong definition, please look at description for more details. No comma at ending!" rows="15" name="rankup_definition" maxlength="21588" required><?php $implode_definition = ''; foreach ($cfg['rankup_definition'] as $time => $sgroup) { $implode_definition .= $time."=>".$sgroup.","; } $implode_definition = substr($implode_definition, 0, -1); echo $implode_definition; ?></textarea>
<textarea class="form-control required" data-pattern="^([0-9]{1,9}=>[0-9]{1,9}=>[0-1]{1},)*[0-9]{1,9}=>[0-9]{1,9}=>[0-1]{1}$" data-error="Wrong definition, please look at description for more details. No comma at ending!" rows="15" name="rankup_definition" maxlength="21588" required><?php $implode_definition = ''; foreach ($cfg['rankup_definition'] as $rank) { $implode_definition .= $rank['time']."=>".$rank['group']."=>".$rank['keep'].","; } $implode_definition = substr($implode_definition, 0, -1); echo $implode_definition; ?></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
@@ -269,7 +276,7 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
<h4 class="modal-title"><?php echo $lang['wigrptime']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wigrptime2desc']; ?>
<?php echo $lang['wigrptime2desc'],$lang['wigrptime3desc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
@@ -285,7 +292,7 @@ if (isset($_POST['update_old']) && isset($db_csrf[$_POST['csrf_token']])) {
<h4 class="modal-title"><?php echo $lang['wigrptime']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wigrptimedesc']; ?>
<?php echo $lang['wigrptimedesc'],$lang['wigrptime3desc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>

View File

@@ -24,14 +24,16 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
$cfg['stats_connects_silver'] = $_POST['stats_connects_silver'];
$cfg['stats_connects_gold'] = $_POST['stats_connects_gold'];
$cfg['stats_connects_legend'] = $_POST['stats_connects_legend'];
$cfg['stats_server_news'] = addslashes($_POST['stats_server_news']);
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('stats_show_site_navigation_switch','{$cfg['stats_show_site_navigation_switch']}'),('stats_show_maxclientsline_switch','{$cfg['stats_show_maxclientsline_switch']}'),('stats_time_bronze','{$cfg['stats_time_bronze']}'),('stats_time_silver','{$cfg['stats_time_silver']}'),('stats_time_gold','{$cfg['stats_time_gold']}'),('stats_time_legend','{$cfg['stats_time_legend']}'),('stats_connects_bronze','{$cfg['stats_connects_bronze']}'),('stats_connects_silver','{$cfg['stats_connects_silver']}'),('stats_connects_gold','{$cfg['stats_connects_gold']}'),('stats_connects_legend','{$cfg['stats_connects_legend']}'),('teamspeak_verification_channel_id','{$cfg['teamspeak_verification_channel_id']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('stats_show_site_navigation_switch','{$cfg['stats_show_site_navigation_switch']}'),('stats_show_maxclientsline_switch','{$cfg['stats_show_maxclientsline_switch']}'),('stats_time_bronze','{$cfg['stats_time_bronze']}'),('stats_time_silver','{$cfg['stats_time_silver']}'),('stats_time_gold','{$cfg['stats_time_gold']}'),('stats_time_legend','{$cfg['stats_time_legend']}'),('stats_connects_bronze','{$cfg['stats_connects_bronze']}'),('stats_connects_silver','{$cfg['stats_connects_silver']}'),('stats_connects_gold','{$cfg['stats_connects_gold']}'),('stats_connects_legend','{$cfg['stats_connects_legend']}'),('teamspeak_verification_channel_id','{$cfg['teamspeak_verification_channel_id']}'),('stats_server_news','{$cfg['stats_server_news']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) {
$err_msg = print_r($mysqlcon->errorInfo(), true);
$err_lvl = 3;
} else {
$err_msg = $lang['wisvsuc'];
$err_lvl = NULL;
}
$cfg['stats_server_news'] = $_POST['stats_server_news'];
} elseif(isset($_POST['update'])) {
echo '<div class="alert alert-danger alert-dismissible">',$lang['errcsrf'],'</div>';
rem_session_ts3($rspathhex);
@@ -210,6 +212,14 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</select>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wimsgsndesc"><?php echo $lang['wimsgsn']; ?><i class="help-hover fas fa-question-circle"></i></label>
<div class="col-sm-8">
<textarea class="form-control" rows="15" name="stats_server_news" maxlength="21588"><?php echo $cfg['stats_server_news']; ?></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="row">&nbsp;</div>
@@ -304,5 +314,21 @@ if (isset($_POST['update']) && isset($db_csrf[$_POST['csrf_token']])) {
</div>
</div>
</div>
<div class="modal fade" id="wimsgsndesc" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo $lang['wimsgsn']; ?></h4>
</div>
<div class="modal-body">
<?php echo $lang['wimsgsndesc']; ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?PHP echo $lang['stnv0002']; ?></button>
</div>
</div>
</div>
</div>
</body>
</html>