diff --git a/install.php b/install.php index c244bd3..837e301 100644 --- a/install.php +++ b/install.php @@ -662,6 +662,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms ('teamspeak_voice_port', '9987'), ('version_current_using', '{$rsversion}'), ('version_latest_available', '{$rsversion}'), + ('enable_auto_updater', 'true'), ('version_update_channel', 'stable'), ('webinterface_access_count', '0'), ('webinterface_access_last', '0'), @@ -1072,4 +1073,4 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms }); - \ No newline at end of file + diff --git a/jobs/bot.php b/jobs/bot.php index 6f13ee8..76931c6 100644 --- a/jobs/bot.php +++ b/jobs/bot.php @@ -60,7 +60,9 @@ require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/check_db.php'); require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/handle_messages.php'); require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/event_userenter.php'); -require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/update_rs.php'); +if ($cfg['enable_auto_updater']) { + require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/update_rs.php'); +} require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/reset_rs.php'); require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'jobs/db_ex_imp.php'); require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'libs/smarty/Smarty.class.php'); @@ -73,27 +75,34 @@ } enter_logfile(9,"Database Version: ".$mysqlcon->getAttribute(PDO::ATTR_SERVER_VERSION)); -enter_logfile(9,"Starting connection test to the Ranksystem update-server (may need a few seconds)..."); -$update_server = fsockopen('193.70.102.252', 443, $errno, $errstr, 10); -if(!$update_server) { - enter_logfile(2," Connection to Ranksystem update-server failed: $errstr ($errno)"); - enter_logfile(3," This connection is neccessary to receive updates for the Ranksystem!"); - enter_logfile(3," Please whitelist the IP 193.70.102.252 (TCP port 443) on your network (firewall)"); -} else { - enter_logfile(9," Connection test successful"); +if ($cfg['enable_auto_updater']) { + enter_logfile(9,"Starting connection test to the Ranksystem update-server (may need a few seconds)..."); + $update_server = fsockopen('ts-n.net', 443, $errno, $errstr, 10); + if(!$update_server) { + enter_logfile(2," Connection to Ranksystem update-server failed: $errstr ($errno)"); + enter_logfile(3," This connection is neccessary to receive updates for the Ranksystem!"); + enter_logfile(3," Please whitelist the IP 193.70.102.252 (TCP port 443) on your network (firewall)."); + enter_logfile(3," Alternative, disable the auto-updater in the settings and manually update the Ranksystem."); + } else { + enter_logfile(9," Connection test successful"); + } + enter_logfile(9,"Starting connection test to the Ranksystem update-server [done]"); } -enter_logfile(9,"Starting connection test to the Ranksystem update-server [done]"); $cfg['temp_updatedone'] = check_db($mysqlcon,$lang,$cfg,$dbname); $cfg['temp_db_version'] = $mysqlcon->getAttribute(PDO::ATTR_SERVER_VERSION); $cfg['temp_last_botstart'] = time(); $cfg['temp_reconnect_attempts'] = 0; $cfg['temp_ts_no_reconnection'] = 0; -enter_logfile(4,"Check Ranksystem files for updates..."); -if(isset($cfg['version_current_using']) && isset($cfg['version_latest_available']) && $cfg['version_latest_available'] != NULL && version_compare($cfg['version_latest_available'], $cfg['version_current_using'], '>')) { - update_rs($mysqlcon,$lang,$cfg,$dbname); + +if ($cfg['enable_auto_updater']) { + enter_logfile(4,"Check Ranksystem files for updates..."); + if(isset($cfg['version_current_using']) && isset($cfg['version_latest_available']) && $cfg['version_latest_available'] != NULL && version_compare($cfg['version_latest_available'], $cfg['version_current_using'], '>')) { + update_rs($mysqlcon,$cfg,$dbname); + } + enter_logfile(4,"Check Ranksystem files for updates [done]"); } -enter_logfile(4,"Check Ranksystem files for updates [done]"); + enter_logfile(9,"Ranksystem Version: ".$cfg['version_current_using']." (on Update-Channel: ".$cfg['version_update_channel'].")"); enter_logfile(4,"Loading addons..."); require_once(dirname(__DIR__).DIRECTORY_SEPARATOR.'other/load_addons_config.php'); @@ -552,4 +561,4 @@ function run_bot(&$cfg) { while(1) { run_bot($cfg); } -?> \ No newline at end of file +?> diff --git a/jobs/calc_serverstats.php b/jobs/calc_serverstats.php index 732e7e4..e6bfbf5 100644 --- a/jobs/calc_serverstats.php +++ b/jobs/calc_serverstats.php @@ -465,7 +465,10 @@ function calc_serverstats($ts3,$mysqlcon,&$cfg,$dbname,$dbtype,$serverinfo,&$db_ } } } - $sqlexec .= update_rs($mysqlcon,$lang,$cfg,$dbname); + + if ($cfg['enable_auto_updater']) { + $sqlexec .= update_rs($mysqlcon,$cfg,$dbname); + } } $sqlexec .= "UPDATE `$dbname`.`job_check` SET `timestamp`=$nowtime WHERE `job_name`='get_version';\nUPDATE `$dbname`.`cfg_params` SET `value`='{$cfg['version_latest_available']}' WHERE `param`='version_latest_available';\n"; } @@ -491,4 +494,4 @@ function calc_serverstats($ts3,$mysqlcon,&$cfg,$dbname,$dbtype,$serverinfo,&$db_ enter_logfile(6,"calc_serverstats needs: ".(number_format(round((microtime(true) - $starttime), 5),5))); return($sqlexec); } -?> \ No newline at end of file +?> diff --git a/jobs/check_db.php b/jobs/check_db.php index 3fdb16f..e124bd0 100644 --- a/jobs/check_db.php +++ b/jobs/check_db.php @@ -549,10 +549,16 @@ function check_writable($cfg,$mysqlcon) { $updatedone = TRUE; } + if(version_compare($cfg['version_current_using'], '1.3.24', '<')) { + if($mysqlcon->exec("INSERT IGNORE INTO `$dbname`.`cfg_params` (`param`, `value`) VALUES ('enable_auto_updater', true)") === false) { } else { + enter_logfile(4," [1.3.24] Add option to enable/disable the auto-updater"); + } + } + $cfg = set_new_version($mysqlcon,$cfg,$dbname); } enter_logfile(5,"Check Ranksystem database for updates [done]"); if(isset($updatedone) && $updatedone === TRUE) return TRUE; return FALSE; } -?> \ No newline at end of file +?> diff --git a/jobs/update_rs.php b/jobs/update_rs.php index a21a1b3..3ab05cd 100644 --- a/jobs/update_rs.php +++ b/jobs/update_rs.php @@ -1,5 +1,5 @@ Default is 9987 (UDP)
This is the port, you uses also to connect with the TS3 Client."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Enter here the channel-ID of the verification channel.

This channel need to be set up manual on your TeamSpeak server. Name, permissions and other properties could be defined for your choice; only user should be possible to join this channel!

The verification is done by the respective user himself on the statistics-page (/stats/). This is only necessary if the website visitor can't automatically be matched/related with the TeamSpeak user.

To verify the TeamSpeak user, he has to be in the verification channel. There he is able to receive a token with which he can verify himself for the statistics page."; $lang['wivlang'] = "Language"; $lang['wivlangdesc'] = "Choose a default language for the Ranksystem.

The language is also selectable on the websites for the users and will be stored for the session."; -?> \ No newline at end of file +?> diff --git "a/languages/core_az_Az\311\231rbaycan_az.php" "b/languages/core_az_Az\311\231rbaycan_az.php" index 4e18c77..2fd33b3 100644 --- "a/languages/core_az_Az\311\231rbaycan_az.php" +++ "b/languages/core_az_Az\311\231rbaycan_az.php" @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 səs portu
standart is 9987 (UDP)
Bu port, TS3 Müştərisi ilə əlaqə yaratmaq üçün də istifadə edirsiniz."; $lang['witsz'] = "Log-Ölçüsü"; $lang['witszdesc'] = "Günlük faylının döndüyü gündüz faylını qurduqda, aşdıqda.

Mebibyte'də dəyərinizi təyin edin.

Qiyməti artırdığınız zaman, əmin olun ki, bu bölmədə kifayət qədər yer var. Çox böyük logfiles mükəmməl məsələlər gətirə bilər!

Bu dəyəri dəyişdikdə, logfile ölçüsü botun yenidən başlaması ilə yoxlanacaq. Belirtilən dəyərdən daha böyük olan fayllar, gündəmi dərhal qaytarılacaq."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Kanal Yeniləmə"; $lang['wiupch0'] = "sabit"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Burada doğrulama kanalının kanal ID daxil edin.

Bu kanalın qurulması lazımdır. Əl ilə qurmalısız. Ad, icazələr və digər xüsusiyyətlər sizin seçiminizlə müəyyənləşdirilə bilər; yalnız istifadəçi bu kanala qoşulmalıdır!

Verifikasiya statistik məlumat səhifəsində müvafiq istifadəçi tərəfindən həyata keçirilir (/stats/). Bu, yalnız veb interfeysin istifadəçisinin, TeamSpeak istifadəçisiyle avtomatik olaraq eşleşmemesi / uyğunlaşmaması lazımdır.

TeamSpeak istifadəçisini yoxlamaq üçün yoxlama kanalında olmalıdır. O, özü statistika səhifəsi üçün özünü təsdiqləyə biləcək bir möcüzə ala bilir."; $lang['wivlang'] = "Dil"; $lang['wivlangdesc'] = "Rank Sistemi üçün standart bir dil seçin.

Dil, həmçinin istifadəçilər üçün saytlarda seçilə bilər və sessiya üçün saxlanacaq."; -?> \ No newline at end of file +?> diff --git "a/languages/core_cz_\304\214e\305\241tina_cz.php" "b/languages/core_cz_\304\214e\305\241tina_cz.php" index 349d9b2..1725df9 100644 --- "a/languages/core_cz_\304\214e\305\241tina_cz.php" +++ "b/languages/core_cz_\304\214e\305\241tina_cz.php" @@ -698,6 +698,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 voice port
Defaultně je 9987 (UDP)
Toto je port, který používáš při připojení na TS3 server v TS3 klientu."; $lang['witsz'] = "Velikost-logu"; $lang['witszdesc'] = "Nastavte maximální velikost log souboru pro automatické rotování logů .

Hodnotu definujete v Mebibytech.

Zvolením příliš vysoké hodnoty může dojít k vyčerpání volného prostoru pro logy na disku. Velké soubory mohou zároveň nepříznívě ovlivňovat výkon systému!

Změna bude akceptována až po restartování Bota. Pokud je nově zvolená velikost logu menší než je aktuální velikost log souboru, dojde k jeho automatickému orotování."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stabilni"; $lang['wiupch1'] = "beta"; @@ -706,4 +708,4 @@ $lang['wiverifydesc'] = "Enter here the channel-ID of the verification channel.

This channel need to be set up manual on your TeamSpeak server. Name, permissions and other properties could be defined for your choice; only user should be possible to join this channel!

The verification is done by the respective user himself on the statistics-page (/stats/). This is only necessary if the website visitor can't automatically be matched/related with the TeamSpeak user.

To verify the TeamSpeak user, he has to be in the verification channel. There he is able to receive a token with which he can verify himself for the statistics page."; $lang['wivlang'] = "Jazyk"; $lang['wivlangdesc'] = "Nastavte hlavní jazyk pro Ranksystem

Jazyk můžete kdykoliv změnit."; -?> \ No newline at end of file +?> diff --git a/languages/core_de_Deutsch_de.php b/languages/core_de_Deutsch_de.php index bd1874f..4a7a23c 100644 --- a/languages/core_de_Deutsch_de.php +++ b/languages/core_de_Deutsch_de.php @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 Voice-Port

Standard ist 9987 (UDP)

Dieser Port wird auch zum Verbinden vom TS3 Client genutzt."; $lang['witsz'] = "Log-Größe"; $lang['witszdesc'] = "Definiere eine Dateigröße, bei der die Logdatei rotiert wird.

Gebe den Wert in Mebibyte (MiB) an.

Wenn du den Wert erhöhst, achte darauf, dass ausreichend Speicherplatz auf der Partition verfügbar ist.
Beachte: Zu große Logdateien können zu Performance-Problemen führen!

Beim Ändern dieses Wertes wird beim nächsten Neustart des Bots die Größe der Logdatei überprüft. Ist die Datei größer als der definierte Wert, wird die Logdatei sofort rotiert."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Aktiviere dies, damit sich diese Software regelmäßig automatisch aktualisiert."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "Stable"; $lang['wiupch1'] = "Beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Hier ist die Channel Datenbank-ID des Verifizierungs-Channels zu hinterlegen.

Dieser Channel ist manuell auf dem TeamSpeak Server anzulegen. Name, Berechtigungen und sonstige Eigenschaften können nach Belieben gesetzt werden; lediglich sollten User ihn betreten können! ;-)

Die Verifizierung erfolgt durch den jeweiligen Benutzer selbst auf der Ranksystem Statistik-Seite (/stats/). Sie ist nur dann erforderlich, wenn eine Zuordnung des Webseitenbesuchers mit dem TeamSpeak-User nicht automatisch erfolgen kann.

Für die Verifizierung muss sich der User auf dem TeamSpeak Server in den Verifizierungs-Channel begeben. Dort kann er den Token empfangen, mit welchem er sich für die Statistik-Seite verifiziert."; $lang['wivlang'] = "Sprache"; $lang['wivlangdesc'] = "Wähle die Standard-Sprache des Ranksystems.
Sie ist relevant für das Webinterface, die Statistik-Seite und insbesondere für die Ranksystem-Log.

Die Sprache kann über die Webseite durch jeden Besucher übersteuert werden und wird dann für die laufende Sitzung gespeichert (Session-Cookie)."; -?> \ No newline at end of file +?> diff --git a/languages/core_en_english_gb.php b/languages/core_en_english_gb.php index 0a8834f..3cba983 100644 --- a/languages/core_en_english_gb.php +++ b/languages/core_en_english_gb.php @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 voice port
Default is 9987 (UDP)
This is the port, you use also to connect with the TS3 Client."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Enter here the channel-ID of the verification channel.

This channel needs to be set up manually on your TeamSpeak server. Name, permissions and other properties could be defined of your choice; only the user should be possible to join this channel!

The verification is done by the respective user himself on the statistics-page (/stats/). This is only necessary if the website visitor can't automatically be matched/related to the TeamSpeak user.

To verify the TeamSpeak user, he has to be in the verification channel. There he is able to receive a token with which he can verify himself for the statistics page."; $lang['wivlang'] = "Language"; $lang['wivlangdesc'] = "Choose a default language for the Ranksystem.

The language is also selectable on the websites for the users and will be stored for the session."; -?> \ No newline at end of file +?> diff --git "a/languages/core_es_espa\303\261ol_es.php" "b/languages/core_es_espa\303\261ol_es.php" index 1cfd8ee..920520b 100644 --- "a/languages/core_es_espa\303\261ol_es.php" +++ "b/languages/core_es_espa\303\261ol_es.php" @@ -696,6 +696,8 @@ $lang['wits3voicedesc'] = "Puerto de voz TeamSpeak 3
El valor predeterminado es 9987 (UDP)
Este es el puerto, también lo usa para conectarse con el cliente TS3."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -704,4 +706,4 @@ $lang['wiverifydesc'] = "Ingrese aquí el ID de canal del canal de verificación.

Este canal debe ser configurado manualmente en tu servidor TeamSpeak. Nombre, permisos y otras propiedades podrían definirse para su elección; solo el usuario debería ser posible unirse a este canal!

La verificación la realiza el propio usuario en la página de estadísticas.(/stats/). Esto solo es necesario si el visitante del sitio web no puede ser emparejado / relacionado automáticamente con el usuario de TeamSpeak.

To verify the TeamSpeak user, he has to be in the verification channel. Allí puede recibir un token con el que puede verificarse a sí mismo para la página de estadísticas."; $lang['wivlang'] = "Idioma"; $lang['wivlangdesc'] = "Elija un idioma predeterminado para el Ranksystem.

El idioma también se puede seleccionar en los sitios web para los usuarios y se almacenará para la sesión."; -?> \ No newline at end of file +?> diff --git "a/languages/core_fr_fran\303\247ais_fr.php" "b/languages/core_fr_fran\303\247ais_fr.php" index e5d1a47..fe84219 100644 --- "a/languages/core_fr_fran\303\247ais_fr.php" +++ "b/languages/core_fr_fran\303\247ais_fr.php" @@ -695,6 +695,8 @@ $lang['wits3voicedesc'] = "Port vocal TeamSpeak 3
La valeur par défaut est 9987 (UDP)
Il s'agit du port, que vous utilisez également pour vous connecter avec le logiciel client TS3."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -703,4 +705,4 @@ $lang['wiverifydesc'] = "Enter here the channel-ID of the verification channel.

This channel need to be set up manual on your TeamSpeak server. Name, permissions and other properties could be defined for your choice; only user should be possible to join this channel!

The verification is done by the respective user himself on the statistics-page (/stats/). This is only necessary if the website visitor can't automatically be matched/related with the TeamSpeak user.

To verify the TeamSpeak user, he has to be in the verification channel. There he is able to receive a token with which he can verify himself for the statistics page."; $lang['wivlang'] = "Langue"; $lang['wivlangdesc'] = "Choisissez une langue par défaut pour le Ranksystem.

La langue est également sélectionnable sur le site web pour les utilisateurs et sera stockée pour sa session."; -?> \ No newline at end of file +?> diff --git a/languages/core_hu_Hungary_hu.php b/languages/core_hu_Hungary_hu.php index 056f9b8..dcd5df9 100644 --- a/languages/core_hu_Hungary_hu.php +++ b/languages/core_hu_Hungary_hu.php @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 voice port
Alapértelmezés: 9987 (UDP)
Ez a port, amelyet akkor is használhat, ha kapcsolódik a TS3 klienssel."; $lang['witsz'] = "Naplófájl-Méret"; $lang['witszdesc'] = "Állítsa be a napló fájlméretet, amelyen a naplófájl elfordul, ha túllépik.

Határozza meg értékét Mebibyte-ben.

Az érték növelésekor ügyeljen arra, hogy van elég hely ezen a partíción. A túl nagy naplófájlok perfomance problémákat okozhatnak!

Ennek az értéknek a megváltoztatásakor a logfájl méretét a bot következő újraindításával ellenőrzik. Ha a fájlméret nagyobb, mint a meghatározott érték, akkor a naplófájl azonnal elfordul."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Frissités-Csatorna"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Írja ide az ellenőrző csatorna csatorna-azonosítóját.

Ezt a szobát manuálisan kell beállítani a TeamSpeak szerveren. A nevet, az engedélyeket és az egyéb tulajdonságokat ön választhatja; csak a felhasználónak kell csatlakoznia ehhez a szobához!!

Az ellenőrzést a megfelelő felhasználó maga végzi a statisztikai oldalon (/ stats /). Ez csak akkor szükséges, ha a webhely látogatóját nem lehet automatikusan egyeztetni / kapcsolatba hozni a TeamSpeak felhasználóval.

A TeamSpeak felhasználó igazolásához a hitelesítési csatornán kell lennie. Ott képes egy tokent kapni, amellyel ellenőrizheti magát a statisztikai oldalon."; $lang['wivlang'] = "Nyelv"; $lang['wivlangdesc'] = "Válasszon alapértelmezett nyelvet a Ranksystem számára.

A nyelv a felhasználók számára a weboldalakon is kiválasztható, és a munkamenet során tárolódik."; -?> \ No newline at end of file +?> diff --git a/languages/core_it_Italiano_it.php b/languages/core_it_Italiano_it.php index 259ff9b..823b74e 100644 --- a/languages/core_it_Italiano_it.php +++ b/languages/core_it_Italiano_it.php @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "La voice port del vostro Teamspeak
Di default è 9987 (UDP)
Questa è inoltre la porta con cui vi connettete al TS3."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Inserisci l'ID del canale di verifica.

Questo canale va impostato manualmente nel tuo server Teamspeak. Nome, permessi e altre proprietà possono essere impostati a tua scelta; Solo gli utenti potranno entrare in questo canale!

La verifica va fatta dall'utente nella sua pagina delle informazioni (/stats/). Questo è necessario solo se i visitatori della pagina web non possono essere direttamente associati al profilo del server Teamspeak.

Per essere verificato l'utente deve essere all'interno del canale di verifica sul server Teamspeak. Qui riceverà un token per la sua pagina delle statistiche."; $lang['wivlang'] = "Lingua"; $lang['wivlangdesc'] = "Scegli la lingua di default del Ranksystem.

La lingua è inoltre selezionabile dal sito e viene salvata per tutta la sessione."; -?> \ No newline at end of file +?> diff --git a/languages/core_nl_Nederlands_nl.php b/languages/core_nl_Nederlands_nl.php index 5b7b45a..2a12de8 100644 --- a/languages/core_nl_Nederlands_nl.php +++ b/languages/core_nl_Nederlands_nl.php @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 voice port
Default is 9987 (UDP)
This is the port, you uses also to connect with the TS3 Client."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Enter here the channel-ID of the verification channel.

This channel need to be set up manual on your TeamSpeak server. Name, permissions and other properties could be defined for your choice; only user should be possible to join this channel!

The verification is done by the respective user himself on the statistics-page (/stats/). This is only necessary if the website visitor can't automatically be matched/related with the TeamSpeak user.

To verify the TeamSpeak user, he has to be in the verification channel. There he is able to receive a token with which he can verify himself for the statistics page."; $lang['wivlang'] = "Language"; $lang['wivlangdesc'] = "Choose a default language for the Ranksystem.

The language is also selectable on the websites for the users and will be stored for the session."; -?> \ No newline at end of file +?> diff --git a/languages/core_pl_polski_pl.php b/languages/core_pl_polski_pl.php index 94c1b71..9f37594 100644 --- a/languages/core_pl_polski_pl.php +++ b/languages/core_pl_polski_pl.php @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "Port głosowy TeamSpeak 3
Domyślna wartość to 9987 (UDP)
To jest port, ktorego używasz rownież do łączenia się z klientem TS3."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Kanał aktualizacji"; $lang['wiupch0'] = "stable (stabilna)"; $lang['wiupch1'] = "beta (eksperymentalna)"; diff --git "a/languages/core_pt_Portugu\303\252s_pt.php" "b/languages/core_pt_Portugu\303\252s_pt.php" index a52ad35..c3a9347 100644 --- "a/languages/core_pt_Portugu\303\252s_pt.php" +++ "b/languages/core_pt_Portugu\303\252s_pt.php" @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak 3 porta de voz
O padrão é 9987 (UDP)
Esta é a porta, que você também usa para se conectar ao TS3 Client."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Canal de atualizão"; $lang['wiupch0'] = "estável"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Digite aqui a ID do canal de verificação.

Este canal precisa ser configurado manualmente no seu servidor TeamSpeak. Nome, permissões e outras propriedades podem ser definidos por sua escolha; o usuário deve apenas se juntar a este canal!

A verificação é feita pelo próprio usuário na página de estatísticas (/stats/). Isso só é necessário se o visitante do site não puder ser automaticamente encontrado / relacionado com o usuário do TeamSpeak.

Para verificar-se o usuário do TeamSpeak deve estar dentro do canal de verificação. Lá, ele pode receber o token com o qual ele se verifica para na página de estatísticas."; $lang['wivlang'] = "Tradução"; $lang['wivlangdesc'] = "Escolha um idioma padrão para o Sistema de ranking.

O idioma também é selecionável nos sites para os usuários e será armazenado para as próximas sessões."; -?> \ No newline at end of file +?> diff --git "a/languages/core_ro_Rom\303\242n\304\203_ro.php" "b/languages/core_ro_Rom\303\242n\304\203_ro.php" index daa01f7..a5ffa11 100644 --- "a/languages/core_ro_Rom\303\242n\304\203_ro.php" +++ "b/languages/core_ro_Rom\303\242n\304\203_ro.php" @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "TeamSpeak3 port
Implicit este 9987 (UDP)
Acest port ajuta la conectarea userilor pe TS3."; $lang['witsz'] = "Log-Size"; $lang['witszdesc'] = "Set up the filesize of the log, at which the logfile will be rotated, when exceeded.

Define your value in Mebibyte.

When you increase the value, be sure, you have enough space on this partition. Too big logfiles could bring perfomance issues!

On changing this value, the logfile size will be checked with the next restart of the bot. Is the filesize bigger than the defined value, the logfile will be rotated immediately."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Update-Channel"; $lang['wiupch0'] = "stable"; $lang['wiupch1'] = "beta"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Scrie aici ID-ul canalului pentru verificare.

Acest canal trebuie setat manual pe serverul TeamSpeak. Numele, permisiunile ?i alte proprieta?i ar putea fi definite pentru alegerea dvs.; doar utilizatorul ar trebui sa fie posibil sa se alature acestui canal!

Verificarea se face de catre utilizatorul respectiv ?u?i pe pagina de statistici (/stats/). Acest lucru este necesar doar daca vizitatorul site-ului nu poate fi asociat automat cu utilizatorul TeamSpeak.

Pentru a verifica daca utilizatorul TeamSpeak trebuie sa fie pe canalul de verificare. Acolo el poate primi token-ul cu care se verifica pentru pagina de statistici."; $lang['wivlang'] = "Limba"; $lang['wivlangdesc'] = "Alege limba default pentru web.

Limba se poate schimba din web de fiecare user."; -?> \ No newline at end of file +?> diff --git "a/languages/core_ru_P\321\203\321\201\321\201\320\272\320\270\320\271_ru.php" "b/languages/core_ru_P\321\203\321\201\321\201\320\272\320\270\320\271_ru.php" index 8de620d..e467dc6 100644 --- "a/languages/core_ru_P\321\203\321\201\321\201\320\272\320\270\320\271_ru.php" +++ "b/languages/core_ru_P\321\203\321\201\321\201\320\272\320\270\320\271_ru.php" @@ -697,6 +697,8 @@ $lang['wits3voicedesc'] = "Голосовой порт сервера
По умолчанию: 9987 (UDP)
Этот порт используется Teamspeak 3 клиентом для подключения к серверу."; $lang['witsz'] = "Ограничение лог-файла"; $lang['witszdesc'] = "Максимальный размер лог-файла, при превышении которого произойдет ротация.

Укажите значение в мегабайтах.

Когда увеличиваете значение, будьте уверены в том что у вас достаточно свободного пространства на диске. Слишком большие логи могут привести к проблемам с производительностью!

Изменение данного параметра подействует при перезапуске системы рангов. Если размер лог-файла выше указанного значения - ротация произойдет мгновенно."; +$lang['wiautoupdater'] = "Auto-Updater"; +$lang['wiautoupdaterdesc'] = "Enable this so that this software updates itself automatically on a regular basis."; $lang['wiupch'] = "Канал обновлений"; $lang['wiupch0'] = "стабильный"; $lang['wiupch1'] = "бета"; @@ -705,4 +707,4 @@ $lang['wiverifydesc'] = "Здесь необходимо указать ID канала, в котором будет проходить проверка пользователей.

Этот канал необходимо настроить на сервере TS3 вручную. Имя, привилегии и другие настройки могут быть установлены по вашему желанию; необходимо лишь предоставить пользователям возможность входить в данный канал!
Это необходимо только в случае если посетитель не сможет автоматически идентифицироваться системой рангов.

Для проверки пользователь сервера должен быть внутри данного канала. Там он сможет получить ключ, с помощью которого он идентифицирует себя на странице статистики."; $lang['wivlang'] = "Язык"; $lang['wivlangdesc'] = "Выберите язык, используемый системой рангов по умолчанию.

Язык сайта по-прежнему будет доступен для переключения всем пользователям."; -?> \ No newline at end of file +?> diff --git a/webinterface/other.php b/webinterface/other.php index 1e068cc..e815b32 100644 --- a/webinterface/other.php +++ b/webinterface/other.php @@ -43,7 +43,34 @@ if (isset($_POST['rankup_clean_clients_switch'])) $cfg['rankup_clean_clients_switch'] = 1; else $cfg['rankup_clean_clients_switch'] = 0; $cfg['rankup_clean_clients_period'] = $_POST['rankup_clean_clients_period']; - if ($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('logs_timezone','{$cfg['logs_timezone']}'),('default_date_format','{$cfg['default_date_format']}'),('logs_path','{$cfg['logs_path']}'),('logs_debug_level','{$cfg['logs_debug_level']}'),('logs_rotation_size','{$cfg['logs_rotation_size']}'),('default_language','{$cfg['default_language']}'),('default_style','{$cfg['default_style']}'),('version_update_channel','{$cfg['version_update_channel']}'),('rankup_hash_ip_addresses_mode','{$cfg['rankup_hash_ip_addresses_mode']}'),('default_session_sametime','{$cfg['default_session_sametime']}'),('default_header_origin','{$cfg['default_header_origin']}'),('default_header_xss','{$cfg['default_header_xss']}'),('default_header_contenttyp','{$cfg['default_header_contenttyp']}'),('default_header_frame','{$cfg['default_header_frame']}'),('default_cmdline_sec_switch','{$cfg['default_cmdline_sec_switch']}'),('rankup_client_database_id_change_switch','{$cfg['rankup_client_database_id_change_switch']}'),('rankup_clean_clients_switch','{$cfg['rankup_clean_clients_switch']}'),('rankup_clean_clients_period','{$cfg['rankup_clean_clients_period']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}'") === false) { + $sql_update_cfg_params = "INSERT INTO `$dbname`.`cfg_params` + (`param`, `value`) + VALUES + ('logs_timezone', '{$cfg['logs_timezone']}'), + ('default_date_format', '{$cfg['default_date_format']}'), + ('logs_path', '{$cfg['logs_path']}'), + ('logs_debug_level', '{$cfg['logs_debug_level']}'), + ('logs_rotation_size', '{$cfg['logs_rotation_size']}'), + ('default_language', '{$cfg['default_language']}'), + ('default_style', '{$cfg['default_style']}'), + ('enable_auto_updater', {$_POST['enable_auto_updater']}), + ('version_update_channel', '{$cfg['version_update_channel']}'), + ('rankup_hash_ip_addresses_mode', '{$cfg['rankup_hash_ip_addresses_mode']}'), + ('default_session_sametime', '{$cfg['default_session_sametime']}'), + ('default_header_origin', '{$cfg['default_header_origin']}'), + ('default_header_xss', '{$cfg['default_header_xss']}'), + ('default_header_contenttyp', '{$cfg['default_header_contenttyp']}'), + ('default_header_frame', '{$cfg['default_header_frame']}'), + ('default_cmdline_sec_switch', '{$cfg['default_cmdline_sec_switch']}'), + ('rankup_client_database_id_change_switch', '{$cfg['rankup_client_database_id_change_switch']}'), + ('rankup_clean_clients_switch', '{$cfg['rankup_clean_clients_switch']}'), + ('rankup_clean_clients_period', '{$cfg['rankup_clean_clients_period']}') + ON DUPLICATE KEY UPDATE `value`=VALUES(`value`); + + DELETE FROM `$dbname`.`csrf_token` WHERE `token`='{$_POST['csrf_token']}' + "; + + if ($mysqlcon->exec($sql_update_cfg_params) === false) { $err_msg = print_r($mysqlcon->errorInfo(), true); $err_lvl = 3; } else { @@ -183,6 +210,13 @@
 
+
+ +
+ > +
+
+
 
@@ -547,6 +581,22 @@
+