From af00d65ad801116cdf474906e1bc13401aed7c39 Mon Sep 17 00:00:00 2001 From: Sebi94nbg Date: Sun, 9 Jul 2023 12:36:45 +0200 Subject: [PATCH] Move config files to a dedicated directory - Makes it easier to find config files - Admins won't check the other non-config files for finding settings --- {other => configs}/dbconfig.php | 0 {other => configs}/phpcommand.php | 0 install.php | 18 +++++------ jobs/check_db.php | 4 +-- jobs/update_rs.php | 31 +++++++++++++++++-- ...\330\261\330\250\331\212\330\251_arab.php" | 6 ++-- "languages/core_az_Az\311\231rbaycan_az.php" | 6 ++-- .../core_cz_\304\214e\305\241tina_cz.php" | 6 ++-- languages/core_de_Deutsch_de.php | 6 ++-- languages/core_en_english_gb.php | 6 ++-- "languages/core_es_espa\303\261ol_es.php" | 6 ++-- "languages/core_fr_fran\303\247ais_fr.php" | 6 ++-- languages/core_hu_Hungary_hu.php | 6 ++-- languages/core_it_Italiano_it.php | 6 ++-- languages/core_nl_Nederlands_nl.php | 6 ++-- languages/core_pl_polski_pl.php | 4 +-- "languages/core_pt_Portugu\303\252s_pt.php" | 6 ++-- .../core_ro_Rom\303\242n\304\203_ro.php" | 6 ++-- ...01\321\201\320\272\320\270\320\271_ru.php" | 6 ++-- other/config.php | 6 ++-- webinterface/db.php | 4 +-- webinterface/index.php | 6 ++-- worker.php | 4 +-- 23 files changed, 91 insertions(+), 64 deletions(-) rename {other => configs}/dbconfig.php (100%) rename {other => configs}/phpcommand.php (100%) diff --git a/other/dbconfig.php b/configs/dbconfig.php similarity index 100% rename from other/dbconfig.php rename to configs/dbconfig.php diff --git a/other/phpcommand.php b/configs/phpcommand.php similarity index 100% rename from other/phpcommand.php rename to configs/phpcommand.php diff --git a/install.php b/install.php index c244bd3..5af4b55 100644 --- a/install.php +++ b/install.php @@ -74,7 +74,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms $db[\'dbname\']=\''.$dbname.'\'; ?>'; - if(!is_writable('./other/dbconfig.php')) { + if(!is_writable('./configs/dbconfig.php')) { $err_msg = $lang['isntwicfg']; $err_lvl = 2; } else { @@ -483,7 +483,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms $err_msg = sprintf($lang['instdbsuc'], $dbname); $err_lvl = NULL; $install_webuser = 1; - $dbconfig = fopen('./other/dbconfig.php','w'); + $dbconfig = fopen('./configs/dbconfig.php','w'); if(!fwrite($dbconfig, $newconfig)) { $err_msg = $lang['isntwicfg']; $err_lvl = 2; @@ -520,7 +520,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms } } - if(!is_writable('./other/dbconfig.php')) { + if(!is_writable('./configs/dbconfig.php')) { $err_msg = $lang['isntwicfg']; $err_lvl = 2; } @@ -540,7 +540,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms } if(isset($_POST['confweb'])) { - require_once('other/dbconfig.php'); + require_once('configs/dbconfig.php'); $user=$_POST['user']; $pass=password_hash($_POST['pass'], PASSWORD_DEFAULT); $logpath = addslashes(__DIR__.DIRECTORY_SEPARATOR."logs".DIRECTORY_SEPARATOR); @@ -688,7 +688,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms unset($err_msg); unset($err_lvl); $err_msg = ''; - if(!is_writable('./other/dbconfig.php')) { + if(!is_writable('./configs/dbconfig.php')) { $err_msg = $lang['isntwicfg']; $err_lvl = 3; } @@ -753,16 +753,16 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms unset($err_msg); $err_msg = sprintf($lang['insterr3'],'exec','//php.net/manual/en/book.exec.php',get_cfg_var('cfg_file_path')); $err_lvl = 3; } else { if ($err_msg == NULL) { - require_once('other/phpcommand.php'); + require_once('configs/phpcommand.php'); exec("$phpcommand -v", $phpversioncheck); $output = ''; foreach($phpversioncheck as $line) $output .= print_r($line, true).'
'; if(empty($phpversioncheck) || strtoupper(substr($phpversioncheck[0], 0, 3)) != "PHP") { - $err_msg .= sprintf($lang['chkphpcmd'], "\"other/phpcommand.php\"", "\"other/phpcommand.php\"", '
'.$phpcommand.'
', '
'.$output.'


', '
php -v
'); $err_lvl = 3; + $err_msg .= sprintf($lang['chkphpcmd'], "\"configs/phpcommand.php\"", "\"configs/phpcommand.php\"", '
'.$phpcommand.'
', '
'.$output.'


', '
php -v
'); $err_lvl = 3; } else { $exploded = explode(' ',$phpversioncheck[0]); if($exploded[1] != phpversion()) { - $err_msg .= sprintf($lang['chkphpmulti'], phpversion(), "\"other/phpcommand.php\"", $exploded[1], "\"other/phpcommand.php\"", "\"other/phpcommand.php\"", '
'.$phpcommand.'
'); + $err_msg .= sprintf($lang['chkphpmulti'], phpversion(), "\"configs/phpcommand.php\"", $exploded[1], "\"configs/phpcommand.php\"", "\"configs/phpcommand.php\"", '
'.$phpcommand.'
'); if(getenv('PATH')!='') { $err_msg .= "

".sprintf($lang['chkphpmulti2'], '
'.getenv('PATH')); $err_lvl = 2; } @@ -1072,4 +1072,4 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms }); - \ No newline at end of file + diff --git a/jobs/check_db.php b/jobs/check_db.php index 3fdb16f..b35fb10 100644 --- a/jobs/check_db.php +++ b/jobs/check_db.php @@ -30,7 +30,7 @@ function check_double_cldbid($mysqlcon,$cfg,$dbname) { function set_new_version($mysqlcon,$cfg,$dbname) { if($mysqlcon->exec("INSERT INTO `$dbname`.`cfg_params` (`param`,`value`) VALUES ('version_current_using','{$cfg['version_latest_available']}') ON DUPLICATE KEY UPDATE `value`=VALUES(`value`)") === false) { enter_logfile(1," An error happens due updating the Ranksystem Database:".print_r($mysqlcon->errorInfo(), true)); - shutdown($mysqlcon,1," Check the database connection and properties in other/dbconfig.php and check also the database permissions."); + shutdown($mysqlcon,1," Check the database connection and properties in configs/dbconfig.php and check also the database permissions."); } else { $cfg['version_current_using'] = $cfg['version_latest_available']; enter_logfile(4," Database successfully updated!"); @@ -555,4 +555,4 @@ function check_writable($cfg,$mysqlcon) { 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..8af17f1 100644 --- a/jobs/update_rs.php +++ b/jobs/update_rs.php @@ -111,7 +111,7 @@ function update_rs($mysqlcon,$lang,$cfg,$dbname,$norotate=NULL) { if(!is_dir(dirname(__DIR__).DIRECTORY_SEPARATOR.$thisFileName)) { $contents = $zip->getFromName($thisFileName); $updateThis = ''; - if($thisFileName == 'other/dbconfig.php' || $thisFileName == 'install.php' || $thisFileName == 'other/phpcommand.php' || $thisFileName == 'logs/autostart_deactivated') { + if($thisFileName == 'configs/dbconfig.php' || $thisFileName == 'install.php' || $thisFileName == 'configs/phpcommand.php' || $thisFileName == 'logs/autostart_deactivated') { enter_logfile(5," Did not touch ".$thisFileName,$norotate); } else { if(($updateThis = fopen(dirname(__DIR__).DIRECTORY_SEPARATOR.$thisFileName, 'w')) === false) { @@ -141,6 +141,33 @@ function update_rs($mysqlcon,$lang,$cfg,$dbname,$norotate=NULL) { $countwrongfiles++; } + /** + * Migrate config files when necessary from `other/` to `configs/`. + */ + foreach (['dbconfig.php', 'phpcommand.php'] as $config_file) { + $config_file_source_path = dirname(__DIR__).DIRECTORY_SEPARATOR.'other'.DIRECTORY_SEPARATOR.$config_file; + $config_file_destination_path = dirname(__DIR__).DIRECTORY_SEPARATOR.'configs'.DIRECTORY_SEPARATOR.$config_file; + + enter_logfile(4," Migrating config file '$config_file_source_path' to '$config_file_destination_path'...",$norotate); + + if (! is_file($config_file_source_path)) { + enter_logfile(4," The config file '$config_file' is already migrated. Nothing todo.",$norotate); + continue; + } + + if (! copy($config_file_source_path, $config_file_destination_path)) { + enter_logfile(3," Failed to copy the config file '$config_file' to the new target directory (see above). Please move this file manually.",$norotate); + continue; + } + + if (! unlink($config_file_source_path)) { + enter_logfile(3," Failed to delete the config file '$config_file' from the old directory (see above). Please delete this file manually.",$norotate); + continue; + } + + enter_logfile(5," Successfully migrated the config file '$config_file'.",$norotate); + } + if(!unlink(dirname(__DIR__).DIRECTORY_SEPARATOR.'update'.DIRECTORY_SEPARATOR.'ranksystem_'.$cfg['version_latest_available'].'.zip')) { enter_logfile(3," Could not clean update folder. Please remove the unneeded file ".dirname(__DIR__).DIRECTORY_SEPARATOR."update".DIRECTORY_SEPARATOR."ranksystem_".$cfg['version_latest_available'].".zip",$norotate); } else { @@ -172,4 +199,4 @@ function update_rs($mysqlcon,$lang,$cfg,$dbname,$norotate=NULL) { $sqlexec .= "UPDATE `$dbname`.`job_check` SET `timestamp`='$nowtime' WHERE `job_name`='get_version';\n"; return($sqlexec); -} \ No newline at end of file +} diff --git "a/languages/core_ar_\330\247\331\204\330\271\330\261\330\250\331\212\330\251_arab.php" "b/languages/core_ar_\330\247\331\204\330\271\330\261\330\250\331\212\330\251_arab.php" index eebbd40..37feb86 100644 --- "a/languages/core_ar_\330\247\331\204\330\271\330\261\330\250\331\212\330\251_arab.php" +++ "b/languages/core_ar_\330\247\331\204\330\271\330\261\330\250\331\212\330\251_arab.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s is needed but seems not to be installed. Install %1\$s and try it again!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "PHP %1\$s function is needed to be enabled but seems to be disabled. Please enable the PHP %1\$s function and try it again!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Your PHP version (%s) is below 5.5.0. Update your PHP and try it again!"; -$lang['isntwicfg'] = "Can't save the database configuration! Please edit the 'other/dbconfig.php' with a chmod 740 (on windows 'full access') and try again after."; +$lang['isntwicfg'] = "Can't save the database configuration! Please edit the 'configs/dbconfig.php' with a chmod 740 (on windows 'full access') and try again after."; $lang['isntwicfg2'] = "Configurate Webinterface"; $lang['isntwichm'] = "Write Permissions failed on folder \"%s\". Please give them a chmod 740 (on windows 'full access') and try to start the Ranksystem again."; $lang['isntwiconf'] = "Open the %s to configure the Ranksystem!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "There is an error in the configuration of the Ranksystem. Please go to the webinterface and correct the rank settings!"; $lang['widaform'] = "نظام التاريخ"; $lang['widaformdesc'] = "اختر كيفية ضهور التاريخ.

Example:
%a ايام, %h ساعات, %i دقائق, %s ثوان"; -$lang['widbcfgerr'] = "'other/dbconfig.php'خلل عند حفظ تعديلات قاعدة البيانات فشل الاتصال مع "; +$lang['widbcfgerr'] = "'configs/dbconfig.php'خلل عند حفظ تعديلات قاعدة البيانات فشل الاتصال مع "; $lang['widbcfgsuc'] = "تعديلات قاعدة البيانات حفظت بنجاح"; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -705,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'] = "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..0775ed1 100644 --- "a/languages/core_az_Az\311\231rbaycan_az.php" +++ "b/languages/core_az_Az\311\231rbaycan_az.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s tələb olunur, lakin quraşdırılmamışdır. Yüklə %1\$s və yenidən cəhd edin!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "PHP %1\$s function is needed to be enabled but seems to be disabled. Please enable the PHP %1\$s function and try it again!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "PHP versiyanız (%s) 5.5.0-dən aşağıdır. PHP-ni yeniləyin və yenidən cəhd edin!"; -$lang['isntwicfg'] = "Verilənlər bazası konfiqurasiyasını saxlaya bilmir! Tam yazma icazələrini təyin edin 'other/dbconfig.php' (Linux: chmod 740; Windows: 'full access') və sonra yenidən cəhd edin."; +$lang['isntwicfg'] = "Verilənlər bazası konfiqurasiyasını saxlaya bilmir! Tam yazma icazələrini təyin edin 'configs/dbconfig.php' (Linux: chmod 740; Windows: 'full access') və sonra yenidən cəhd edin."; $lang['isntwicfg2'] = "Veb-interfeysin konfiqurasiyası"; $lang['isntwichm'] = "\"%s\" qovluğunda qeyd icazəsi yoxdur. Tam hüquqlar verin (Linux: chmod 740; Windows: 'full access') və Ranksystem'i yenidən başlatmağa çalışın."; $lang['isntwiconf'] = "Ranksystem'i konfiqurasiya etmək üçün %s açın!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Ranksystem-in konfiqurasiyasında bir səhv var. Veb-interfeysə keçin və rank parametrləri düzəlt!"; $lang['widaform'] = "Tarix formatı"; $lang['widaformdesc'] = "Göstərilən tarix formatını seçin.

Məsələn:
%a gün, %h saat, %i dəqiqə, %s saniyə"; -$lang['widbcfgerr'] = "Verilənlər bazası konfiqurasiyaları qənaət edərkən səhv baş verdi! 'other/dbconfig.php' bağlantısı uğursuz oldu."; +$lang['widbcfgerr'] = "Verilənlər bazası konfiqurasiyaları qənaət edərkən səhv baş verdi! 'configs/dbconfig.php' bağlantısı uğursuz oldu."; $lang['widbcfgsuc'] = "Verilənlər bazası konfiqurasiyaları uğurla qeyd edildi."; $lang['widbg'] = "Log Səviyyəsi"; $lang['widbgdesc'] = "Sıralama sistemi log səviyyəsi seçin. Bununla siz \"ranksystem.log\" faylına neçə məlumatın yazılmasına qərar verə bilərsiniz.

Giriş səviyyəsinin nə qədər yüksək olduğu halda daha çox məlumat alacaqsınız.

Giriş Səviyyəsinin dəyişdirilməsi Ranksystem botun yenidən başlaması ilə qüvvəyə çatır.

Xahiş edirik Ranksystem-ın \"6 - DEBUG\" üzərindən daha uzun müddət çalışmasına imkan verməyin, bu sizin fayl sisteminizə zərbə vuracaq!"; @@ -705,4 +705,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..6ca034d 100644 --- "a/languages/core_cz_\304\214e\305\241tina_cz.php" +++ "b/languages/core_cz_\304\214e\305\241tina_cz.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s je potřebný k instalaci, ale není nainstalován! Nainstalujte ho pomocí %1\$s a zkuste to znovu!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "PHP %1\$s function is needed to be enabled but seems to be disabled. Please enable the PHP %1\$s function and try it again!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Vaše PHP verze (%s) je nižší než 5.5.0. Prosím aktulizujte PHP a zkuste to znovu!"; -$lang['isntwicfg'] = "Nemohu uložit konfiguraci do databáze! Prosím přidělte všechna práva souboru 'other/dbconfig.php' (Linux: chmod 740; Windows: 'full access') a zkuste to znovu!"; +$lang['isntwicfg'] = "Nemohu uložit konfiguraci do databáze! Prosím přidělte všechna práva souboru 'configs/dbconfig.php' (Linux: chmod 740; Windows: 'full access') a zkuste to znovu!"; $lang['isntwicfg2'] = "Nakonfigurujte webinterface"; $lang['isntwichm'] = "Práva pro zápis do složky \"%s\" nejsou plná! Prosím přidělte všechna práva pomocí (Linux: chmod 740; Windows: 'full access') a aktulizujte (obnovte- F5) stránku."; $lang['isntwiconf'] = "Otevřete %s pro nastavení Ranksystemu."; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Došlo k chybě v konfiguraci systému Ranks. Přejděte na webové rozhraní a opravte nastavení jádra. Zvláště zkontrolujte konfiguraci 'rank'!"; $lang['widaform'] = "Časový formát"; $lang['widaformdesc'] = "Vyberte formát zobrazení data.

Příklad:
% a dny,% h hodiny,% i mins,% s secs"; -$lang['widbcfgerr'] = "Chyba při ukládání konfigurací databáze! Připojení selhalo nebo chyba zápisu pro 'other / dbconfig.php'"; +$lang['widbcfgerr'] = "Chyba při ukládání konfigurací databáze! Připojení selhalo nebo chyba zápisu pro 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Databázové konfigurace byly úspěšně uloženy."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -706,4 +706,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..0faa411 100644 --- a/languages/core_de_Deutsch_de.php +++ b/languages/core_de_Deutsch_de.php @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s wird benötigt, scheint jedoch nicht installiert zu sein. Installiere %1\$s und versuche es erneut!
Pfad zur PHP Konfig-Datei, sofern definiert und diese geladen wurde: %3\$s"; $lang['insterr3'] = "Die PHP Funktion %1\$s wird benötigt, scheint jedoch deaktiviert zu sein. Bitte aktiviere PHP %1\$s und versuche es erneut!
Pfad zur PHP Konfig-Datei, sofern definiert und diese geladen wurde: %3\$s"; $lang['insterr4'] = "Deine PHP Version (%s) ist unter 5.5.0. Aktualisiere dein PHP und versuche es erneut!"; -$lang['isntwicfg'] = "Die Datenbankkonfigurationen konnten nicht gespeichert werden! Bitte versehe die 'other/dbconfig.php' mit einem chmod 740 (für Windows 'Vollzugriff') und versuche es anschließend erneut."; +$lang['isntwicfg'] = "Die Datenbankkonfigurationen konnten nicht gespeichert werden! Bitte versehe die 'configs/dbconfig.php' mit einem chmod 740 (für Windows 'Vollzugriff') und versuche es anschließend erneut."; $lang['isntwicfg2'] = "Konfiguriere Webinterface"; $lang['isntwichm'] = "Schreibrechte fehlen für Verzeichnis \"%s\". Bitte setze auf dieses einen chmod 740 (für Windows 'Vollzugriff') und starte anschließend das Ranksystem erneut."; $lang['isntwiconf'] = "Öffne das %s um das Ranksystem zu konfigurieren!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Es ist ein Fehler in der Konfiguration des Ranksystems. Bitte prüfe im Webinterface die Rank-Einstellungen auf Richtigkeit!"; $lang['widaform'] = "Datumsformat"; $lang['widaformdesc'] = "Gebe ein Datumsformat zur Anzeige vor.

Beispiel:
%a Tage, %h Std., %i Min., %s Sek."; -$lang['widbcfgerr'] = "Fehler beim Speichern der Datenbank Einstellungen! Verbindung zur Datenbank oder speichern der 'other/dbconfig.php' nicht möglich."; +$lang['widbcfgerr'] = "Fehler beim Speichern der Datenbank Einstellungen! Verbindung zur Datenbank oder speichern der 'configs/dbconfig.php' nicht möglich."; $lang['widbcfgsuc'] = "Datenbank Einstellungen erfolgreich gespeichert."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Bestimme das Log-Level des Ranksystems. Damit wird festgelegt, wie viele Informationen in die Datei \"ranksystem.log\" geschrieben werden sollen.

Je höher das Log-Level, desto mehr Informationen werden ausgegeben.

Ein Wechsel des Log-Levels wird mit dem nächsten Neustart des Ranksystem Bots wirksam.

Bitte lasse das Ranksystem nicht längere Zeit unter \"6 - DEBUG\" laufen. Dies könnte das Dateisystem beeinträchtigen!"; @@ -705,4 +705,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..1a8e1b5 100644 --- a/languages/core_en_english_gb.php +++ b/languages/core_en_english_gb.php @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s is needed but seems not to be installed. Install %1\$s and try it again!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "PHP %1\$s function is needed to be enabled but seems to be disabled. Please enable the PHP %1\$s function and try it again!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Your PHP version (%s) is below 5.5.0. Update your PHP and try it again!"; -$lang['isntwicfg'] = "Can't save the database configuration! Please assign full write-out permissions on 'other/dbconfig.php' (Linux: chmod 740; Windows: 'full access') and try again after."; +$lang['isntwicfg'] = "Can't save the database configuration! Please assign full write-out permissions on 'configs/dbconfig.php' (Linux: chmod 740; Windows: 'full access') and try again after."; $lang['isntwicfg2'] = "Configure Webinterface"; $lang['isntwichm'] = "Write-out permissions on folder \"%s\" are missing. Please assign full rights (Linux: chmod 740; Windows: 'full access') and try to start the Ranksystem again."; $lang['isntwiconf'] = "Open the %s to configure the Ranksystem!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "There is an error in the configuration of the Ranksystem. Please go to the webinterface and correct the rank settings!"; $lang['widaform'] = "Date format"; $lang['widaformdesc'] = "Choose the showing date format.

Example:
%a days, %h hours, %i mins, %s secs"; -$lang['widbcfgerr'] = "Error while saving the database configurations! Connection failed or write-out error for 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Error while saving the database configurations! Connection failed or write-out error for 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Database configurations saved successfully."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -705,4 +705,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..d9d95d2 100644 --- "a/languages/core_es_espa\303\261ol_es.php" +++ "b/languages/core_es_espa\303\261ol_es.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "Se necesita %1\$s pero parece que no está instalado. Instalar %1\$s y prueba de nuevo!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "La función %1\$s debe estar habilitada pero parece estar deshabilitada. Por favor activa el PHP %1\$s funcion e intentalo de nuevo!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Your PHP version (%s) is below 5.5.0. Update your PHP and try it again!"; -$lang['isntwicfg'] = "Can't save the database configuration! Please assign full rights on 'other/dbconfig.php' (Linux: chmod 740; Windows: 'full access') and try again after."; +$lang['isntwicfg'] = "Can't save the database configuration! Please assign full rights on 'configs/dbconfig.php' (Linux: chmod 740; Windows: 'full access') and try again after."; $lang['isntwicfg2'] = "Configurar Webinterface"; $lang['isntwichm'] = "Permisos de escritura en la carpeta \"%s\" están ausentes. Por favor asigne todos los derechos (Linux: chmod 740; Windows: 'acceso completo') y tratar de iniciar el Ranksystem de nuevo."; $lang['isntwiconf'] = "Abre el %s para configurar el Ranksystem!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Hay un error en la configuración del Ranksystem. Vaya a la webinterface y corrija la Configuración rank!"; $lang['widaform'] = "Formato de fecha"; $lang['widaformdesc'] = "Elija el formato de fecha que se muestra.

Ejemplo:
%a dias, %h horas, %i minutos, %s segundos"; -$lang['widbcfgerr'] = "¡Error al guardar las configuraciones de la base de datos! Error de conexión o error de escritura para 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "¡Error al guardar las configuraciones de la base de datos! Error de conexión o error de escritura para 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Configuraciones de bases de datos guardadas con éxito."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -704,4 +704,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..1b5af5b 100644 --- "a/languages/core_fr_fran\303\247ais_fr.php" +++ "b/languages/core_fr_fran\303\247ais_fr.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s est nécessaire, mais semble ne pas être installé. Installez %1\$s et essayez à nouveau !
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "La fonction PHP %1\$s doit être activé, mais semble être désactivé. Veuillez activer la fonction PHP %1\$s et essayez à nouveau !
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Votre version PHP (%s) est inférieure à 5.5.0. Mettez à jour votre version de PHP et essayez à nouveau !"; -$lang['isntwicfg'] = "Impossible d'enregistrer la configuration de la base de données ! Veuillez modifier le fichier 'other/dbconfig.php' avec un chmod 740 (dans la fênetre 'accès complet') et essayez de nouveau après."; +$lang['isntwicfg'] = "Impossible d'enregistrer la configuration de la base de données ! Veuillez modifier le fichier 'configs/dbconfig.php' avec un chmod 740 (dans la fênetre 'accès complet') et essayez de nouveau après."; $lang['isntwicfg2'] = "Configurer l'interface Web"; $lang['isntwichm'] = "Échec des autorisations d'écriture sur le dossier \"%s\". Veuillez modifier le dossier avec un chmod 740 (dans la fênetre 'accès complet') et essayez de nouveau après de démarer le ranksystem."; $lang['isntwiconf'] = "Ouvrez le %s pour configurer le système de classement !"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Il y a une erreur dans la configuration du Ranksystem. Veuillez aller à l'interface Web et corriger les paramètres de rank (coeur)!"; $lang['widaform'] = "Format de date"; $lang['widaformdesc'] = "Choisissez le format de date à afficher.

Exemple:
%a jours, %h heures, %i minutes, %s secondes"; -$lang['widbcfgerr'] = "Erreur lors de l'enregistrement des configurations de base de données ! Échec de la connexion ou erreur d'écriture pour le fichier 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Erreur lors de l'enregistrement des configurations de base de données ! Échec de la connexion ou erreur d'écriture pour le fichier 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Configuration de la base de données enregistrée avec succès."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -703,4 +703,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..aa2a4f3 100644 --- a/languages/core_hu_Hungary_hu.php +++ b/languages/core_hu_Hungary_hu.php @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s szükséges, de úgy tűnik, hogy nincs telepítve. Telepítsd %1\$s és próbáld újra!
A PHP konfigurációs fájl elérési útja, ha az definiálva és aktiválva van: %3\$s"; $lang['insterr3'] = "PHP %1\$s funkciónak engedélyezve kell lennie, de úgy tűnik, hogy nincs. Engedélyezd PHP %1\$s funkciót és próbáld újra!
A PHP konfigurációs fájl elérési útja, ha az definiálva és aktiválva van: %3\$s"; $lang['insterr4'] = "A te PHP verziód (%s) 5.5.0 alatt van. Frissítsd a PHP-t és próbáld újra!"; -$lang['isntwicfg'] = "Nem menthető az adatbázis-konfiguráció! Kérjük, rendeljen hozzá teljes kiírási engedélyt az 'other / dbconfig.php' fájlhoz (Linux: chmod 740; Windows: 'full access'), majd próbálja újra."; +$lang['isntwicfg'] = "Nem menthető az adatbázis-konfiguráció! Kérjük, rendeljen hozzá teljes kiírási engedélyt az 'configs/dbconfig.php' fájlhoz (Linux: chmod 740; Windows: 'full access'), majd próbálja újra."; $lang['isntwicfg2'] = "A webinterfész konfigurálása"; $lang['isntwichm'] = "A kiírási engedély erre a mappára \"%s\" hiányzik. Kérjük, adjon teljes jogokat (Linux: chmod 740; Windows: 'full access'), és próbálja újra elindítani a Ranksystem-t."; $lang['isntwiconf'] = "Nyisd meg a %s a RankSystem konfigurálásához!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Hiba történt a Ranksystem konfigurációjában. Kérjük, lépjen a webes felületre, és javítsa ki a Core beállításokat. Különösen ellenőrizze a 'rangsor meghatározását'!"; $lang['widaform'] = "Dátum forma"; $lang['widaformdesc'] = "Válassza ki a megjelenő dátumformátumot.

Példa:
%a nap, %h óra, %i perc, %s másodperc"; -$lang['widbcfgerr'] = "Hiba az adatbázis-konfigurációk mentése közben! A kapcsolat meghiúsult, vagy kiírási hiba történt a 'other / dbconfig.php' számára"; +$lang['widbcfgerr'] = "Hiba az adatbázis-konfigurációk mentése közben! A kapcsolat meghiúsult, vagy kiírási hiba történt a 'configs/dbconfig.php' számára"; $lang['widbcfgsuc'] = "Az adatbázis-konfigurációk sikeresen mentve."; $lang['widbg'] = "Naplófájl-Szint"; $lang['widbgdesc'] = "Állítsa be a Ranksystem naplózási szintjét. Ezzel eldöntheti, mennyi információt kell írni a \"ranksystem.log\" fájlba.\"

Minél magasabb a naplózási szint, annál több információt kap.

A Naplószint megváltoztatása a Ranksystem bot következő újraindításával lép hatályba.

Kérjük, ne hagyja, hogy a Ranksystem hosszabb ideig működjön a \"6 - DEBUG\" endszeren, mert ez ronthatja a fájlrendszert!"; @@ -705,4 +705,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..07f63d3 100644 --- a/languages/core_it_Italiano_it.php +++ b/languages/core_it_Italiano_it.php @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s è necessario ma non sembra essere installato. Installa %1\$s e riprova!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "La funzione PHP %1\$s deve essere abilitata, ma sembra non lo sia. Per favore, abilita la funzione PHP %1\$s e riprova!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "La tua versione PHP (%s) is antecedente alla 5.5.0. Aggiorna la tua PHP e prova ancora!"; -$lang['isntwicfg'] = "Impossibile salvare la configurazione del database! Modifica il file 'other/dbconfig.php' dandogli i permessi 740 (chmod 740 nomefile on windows 'full access') e riprova."; +$lang['isntwicfg'] = "Impossibile salvare la configurazione del database! Modifica il file 'configs/dbconfig.php' dandogli i permessi 740 (chmod 740 nomefile on windows 'full access') e riprova."; $lang['isntwicfg2'] = "Configura Webinterface"; $lang['isntwichm'] = "Permessi di scrittura negati per la cartella \"%s\". Per favore dai i permessi chmod 740 (on windows 'full access') e prova ad avviare il Ranksystem di nuovo."; $lang['isntwiconf'] = "Apri la %s per configurare il Ranksystem!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "C'è un errore nella configurazione del RankSystem. Vai nell'interfaccia web i sistema le Impostazioni rank!"; $lang['widaform'] = "Formato data"; $lang['widaformdesc'] = "scegli il formato della data.

Esempio:
%a Giorni, %h Ore, %i Min, %s Sec"; -$lang['widbcfgerr'] = "Errore nel salvataggio della configurazione del database! Connessione fallita o errore nella sovrascrittura del file 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Errore nel salvataggio della configurazione del database! Connessione fallita o errore nella sovrascrittura del file 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Configurazione del database salvata con successo."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -705,4 +705,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..a3cc948 100644 --- a/languages/core_nl_Nederlands_nl.php +++ b/languages/core_nl_Nederlands_nl.php @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s is nodig maar is niet geinstalleerd. Installeer %1\$s en probeer nogmaals!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "PHP %1\$s function moet zijn ingeschakeld maar is uitgeschakeld. Schakel A.U.B. PHP %1\$s functie en probeer nogmaals!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Je PHP versie (%s) is onder 5.5.0. Update je PHP en probeer nogmaals!"; -$lang['isntwicfg'] = "Kan de database configuratie niet opslaan! Bewerk A.U.B de 'other/dbconfig.php' met chmod 740 (op windows 'full access') en probeer nogmaals."; +$lang['isntwicfg'] = "Kan de database configuratie niet opslaan! Bewerk A.U.B de 'configs/dbconfig.php' met chmod 740 (op windows 'full access') en probeer nogmaals."; $lang['isntwicfg2'] = "Configuratie Webinterface"; $lang['isntwichm'] = "Schrijven toestemming mislukt op map \"%s\". Geef A.U.B. chmod 740 (op windows 'full access') en probeer de Ranksysteem nogmaals te starten."; $lang['isntwiconf'] = "Open de %s om het Ranksysteem te configureren!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "There is an error in the configuration of the Ranksystem. Please go to the webinterface and correct the rank settings!"; $lang['widaform'] = "Date format"; $lang['widaformdesc'] = "Choose the showing date format.

Example:
%a days, %h hours, %i mins, %s secs"; -$lang['widbcfgerr'] = "Error while saving the database configurations! Connection failed or writeout error for 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Error while saving the database configurations! Connection failed or writeout error for 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Database configurations saved successfully."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -705,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'] = "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..94d692b 100644 --- a/languages/core_pl_polski_pl.php +++ b/languages/core_pl_polski_pl.php @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s jest potrzebny, ale wydaje się, ze nie jest zainstalowany. Zainstaluj %1\$s i sprobuj ponownie!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "Funkcja PHP %1\$s musi byc włączona, ale wydaje się byc wyłączona. Włącz funkcje PHP %1\$s i sprobuj ponownie!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Twoja wersja PHP (%s) jest starsza niz 5.5.0. Zaktualizuj PHP i sprobuj ponownie!"; -$lang['isntwicfg'] = "Nie można zapisać konfiguracji bazy danych! Proszę przypisać pełne prawa do 'other/dbconfig.php' (Linux: chmod 740; Windows: 'pełny dostep') i sprobowac ponownie ponownie."; +$lang['isntwicfg'] = "Nie można zapisać konfiguracji bazy danych! Proszę przypisać pełne prawa do 'configs/dbconfig.php' (Linux: chmod 740; Windows: 'pełny dostep') i sprobowac ponownie ponownie."; $lang['isntwicfg2'] = "Skonfiguruj interfejs WWW"; $lang['isntwichm'] = "Zapisywanie uprawnien do folderu \"%s\" jest nieobecne. Przydziel pełne prawa (Linux: chmod 740; Windows: 'pełny dostep') i sprobuj ponownie uruchomic system Ranksystem."; $lang['isntwiconf'] = "Otworz %s aby skonfigurowac system rang!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Wystąpił błąd w konfiguracji systemu Ranksystem. Przejdz do interfejsu sieciowego i popraw ustawienia podstawowe. Szczegolnie sprawdz konfiguracje 'rank up'!"; $lang['widaform'] = "Format daty"; $lang['widaformdesc'] = "Wybierz format wyświetlania daty.

Przykład:
%a days, %h hours, %i mins, %s secs"; -$lang['widbcfgerr'] = "Błąd podczas zapisywania konfiguracji bazy danych! Połączenie nie powiodło się lub błąd zapisu dla 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Błąd podczas zapisywania konfiguracji bazy danych! Połączenie nie powiodło się lub błąd zapisu dla 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Konfiguracje bazy danych zostały pomyślnie zapisane."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; diff --git "a/languages/core_pt_Portugu\303\252s_pt.php" "b/languages/core_pt_Portugu\303\252s_pt.php" index a52ad35..59b4d34 100644 --- "a/languages/core_pt_Portugu\303\252s_pt.php" +++ "b/languages/core_pt_Portugu\303\252s_pt.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s é necessário, mas parece que não está instalado. Instalar %1\$s e tente novamente!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "A função PHP %1\$s precisa ser ativada, mas parece estar desativada. Por favor, ative o PHP %1\$s e tente novamente!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Sua versão PHP (%s) está abaixo de 5.5.0. Atualize seu PHP e tente novamente!"; -$lang['isntwicfg'] = "Não é possível salvar a configuração do banco de dados! Edite o 'other/dbconfig.php' com um chmod 740 (no windows 'acesso total') e tente novamente após."; +$lang['isntwicfg'] = "Não é possível salvar a configuração do banco de dados! Edite o 'configs/dbconfig.php' com um chmod 740 (no windows 'acesso total') e tente novamente após."; $lang['isntwicfg2'] = "Configure a Interface da Web"; $lang['isntwichm'] = "Permissões de gravação falhou na pasta \"%s\". Por favor, dê a permissão chmod 740 (no windows 'acesso total') e tente iniciar o Sistema de ranking novamente."; $lang['isntwiconf'] = "Abra o %s para configurar o Sistema de ranking!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Há um erro na configuração do Sistema de ranking. Acesse a interface da web e corrija as Configurações do núcleo. Especialmente verifique o config 'Classificações'!!"; $lang['widaform'] = "Formato de data"; $lang['widaformdesc'] = "Escolha o formato da data de exibição.

Exemplo:
%a Dias, %h horas, %i minutos, %s segundos"; -$lang['widbcfgerr'] = "Erro ao salvar as configurações do banco de dados! A conexão falhou ou escreveu erro para 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Erro ao salvar as configurações do banco de dados! A conexão falhou ou escreveu erro para 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Configurações de banco de dados salvas com sucesso."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Configurar o nível de log do sistema de ranking. Com isso, você pode decidir quanta informação deve ser gravada no arquivo \"ranksystem.log\"

Quanto maior o nível de log, mais informações você obterá.

Alterar o nível de log entrará em vigor com a próxima reinicialização do sistema de ranking.

Por favor, não deixe o Ranksystem funcionando por muito tempo com \"6 - DEBUG\" isso pode prejudicar seu sistema de arquivos!"; @@ -705,4 +705,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..b1829b2 100644 --- "a/languages/core_ro_Rom\303\242n\304\203_ro.php" +++ "b/languages/core_ro_Rom\303\242n\304\203_ro.php" @@ -109,7 +109,7 @@ $lang['insterr2'] = "%1\$s este necesar, dar nu pare sa fie instalat. Instalare %1\$s si incearca din nou!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr3'] = "Functia PHP %1\$s trebuie sa fie activata, dar pare sa fie dezactivata. Activati funcia PHP %1\$s si incearca din nou!
Path to your PHP config file, if one is defined and loaded: %3\$s"; $lang['insterr4'] = "Versiunea dvs. PHP (%s) este sub 5.5.0. Actualizati-va PHP-ul si ?ercati din nou!"; -$lang['isntwicfg'] = "Nu se poate salva configura?ia bazei de date ! Va rugam sa modifica?i 'other/dbconfig.php' cu acces chmod 740 (windows 'full access') ?i incerca?i iar."; +$lang['isntwicfg'] = "Nu se poate salva configura?ia bazei de date ! Va rugam sa modifica?i 'configs/dbconfig.php' cu acces chmod 740 (windows 'full access') ?i incerca?i iar."; $lang['isntwicfg2'] = "Configure Webinterface"; $lang['isntwichm'] = "Scrierea permisiunilor a esuat in dosarul \"%s\". Va rugam sa le dati un chmod 740 (pe accesul complet la ferestre) ?i sa ?erca?i sa porni?i din nou sistemul Ranks."; $lang['isntwiconf'] = "Deschide?i %s sa configura?i Ranksystem!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "There is an error in the configuration of the Ranksystem. Please go to the webinterface and correct the rank settings!"; $lang['widaform'] = "Format data"; $lang['widaformdesc'] = "Choose the showing date format.

Example:
%a days, %h hours, %i mins, %s secs"; -$lang['widbcfgerr'] = "Error while saving the database configurations! Connection failed or writeout error for 'other/dbconfig.php'"; +$lang['widbcfgerr'] = "Error while saving the database configurations! Connection failed or writeout error for 'configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Database configurations saved successfully."; $lang['widbg'] = "Log-Level"; $lang['widbgdesc'] = "Set up the Log-Level of the Ranksystem. With this you can decide, how much information should be written to the file \"ranksystem.log\"

The higher the Log-Level, the more information you'll get.

Changing the Log-Level will take effect with the next restart of the Ranksystem bot.

Please don't let the Ranksystem running longer on \"6 - DEBUG\" this could impair your filesystem!"; @@ -705,4 +705,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..d0232af 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" @@ -109,7 +109,7 @@ $lang['insterr2'] = "Для работы системы рангов требуется наличие модуля %1\$s. Пожалуйста, установите %1\$s модуль и попробуйте заново!
Путь к конфигурационному файлу PHP, если он указан и загружен, таков: %3\$s"; $lang['insterr3'] = "Для работы системы рангов требуется наличие включеной функции PHP %1\$s. Пожалуйста, включите данную %1\$s функцию и попробуйте заново!
Путь к конфигурационному файлу PHP, если он указан и загружен, таков: %3\$s"; $lang['insterr4'] = "Ваша версия PHP (%s) ниже допустимой 5.5.0. Пожалуйста, обновите версию PHP и попробуйте заново!"; -$lang['isntwicfg'] = "Не получилось записать настройки базы данных! Пожалуйста, установите права на запись 'other/dbconfig.php' chmod 740 (В windows 'Полный доступ') и попробуйте заново."; +$lang['isntwicfg'] = "Не получилось записать настройки базы данных! Пожалуйста, установите права на запись 'configs/dbconfig.php' chmod 740 (В windows 'Полный доступ') и попробуйте заново."; $lang['isntwicfg2'] = "Конфигурирование веб-интерфейса"; $lang['isntwichm'] = "Отсутствуют права на запись в папку \"%s\". Пожалуйста, установите на эту папку права chmod 740 (В windows 'полный доступ') и повторите этот этап заново."; $lang['isntwiconf'] = "Затем откройте страницу %s для настройки системы рангов!"; @@ -461,7 +461,7 @@ $lang['wiconferr'] = "Есть ошибка в конфигурации системы рангов. Пожалуйста, выполните вход в панель управления и проверьте настройки раздела 'Настройка системы рангов'. Особенно тщательно проверьте 'Ранги'!"; $lang['widaform'] = "Формат даты"; $lang['widaformdesc'] = "Выберите формат показа даты.

Пример:
%a дней, %h часов, %i минут, %s секунд"; -$lang['widbcfgerr'] = "Ошибка сохранения настроек в базе данных! Ошибка подключения, проверьте на правильность настройки '/other/dbconfig.php'"; +$lang['widbcfgerr'] = "Ошибка сохранения настроек в базе данных! Ошибка подключения, проверьте на правильность настройки '/configs/dbconfig.php'"; $lang['widbcfgsuc'] = "Настройки базы данных успешно сохранены."; $lang['widbg'] = "Уровень логирования"; $lang['widbgdesc'] = "Настройка уровня логирования системы рангов. Вы можете решить, какую информацию необходимо записывать в лог-файл \"ranksystem.log\"

Чем выше уровень, тем больше информации будет записано.

Изменения данного параметра будут применены только после перезапуска системы рангов.

Не рекомендуется использовать \"6 - DEBUG\" на постоянной основе. Может привести к большому количеству записи в лог и замедлению работы системы рангов!"; @@ -705,4 +705,4 @@ $lang['wiverifydesc'] = "Здесь необходимо указать ID канала, в котором будет проходить проверка пользователей.

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

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

Язык сайта по-прежнему будет доступен для переключения всем пользователям."; -?> \ No newline at end of file +?> diff --git a/other/config.php b/other/config.php index 06ad353..ad3bcf6 100644 --- a/other/config.php +++ b/other/config.php @@ -1,5 +1,5 @@ \ No newline at end of file +?> diff --git a/webinterface/db.php b/webinterface/db.php index 02c801c..f3e6815 100644 --- a/webinterface/db.php +++ b/webinterface/db.php @@ -25,7 +25,7 @@ $dbserver = $_POST['dbtype'].':host='.$_POST['dbhost'].';dbname='.$_POST['dbname'].';charset=utf8mb4'; try { $mysqlcon = new PDO($dbserver, $_POST['dbuser'], $_POST['dbpass']); - $handle=fopen('../other/dbconfig.php','w'); + $handle=fopen('../configs/dbconfig.php','w'); if(!fwrite($handle,$newconfig)) { $err_msg = sprintf($lang['widbcfgerr']); @@ -244,4 +244,4 @@ \ No newline at end of file +?> diff --git a/webinterface/index.php b/webinterface/index.php index 34523f0..2b77cde 100644 --- a/webinterface/index.php +++ b/webinterface/index.php @@ -46,12 +46,12 @@ $output = ''; foreach($phpversioncheck as $line) $output .= print_r($line, true).'
'; if(empty($phpversioncheck) || strtoupper(substr($phpversioncheck[0], 0, 3)) != "PHP") { - $err_msg = sprintf($lang['chkphpcmd'], "\"other/phpcommand.php\"", "\"other/phpcommand.php\"", '
'.$phpcommand.'
', '
'.$output.'


', '
php -v
'); + $err_msg = sprintf($lang['chkphpcmd'], "\"configs/phpcommand.php\"", "\"configs/phpcommand.php\"", '
'.$phpcommand.'
', '
'.$output.'


', '
php -v
'); $err_lvl = 3; $dis_login = 1; } else { $exploded = explode(' ',$phpversioncheck[0]); if($exploded[1] != phpversion()) { - $err_msg = sprintf($lang['chkphpmulti'], phpversion(), "\"other/phpcommand.php\"", $exploded[1], "\"other/phpcommand.php\"", "\"other/phpcommand.php\"", '
'.$phpcommand.'
'); + $err_msg = sprintf($lang['chkphpmulti'], phpversion(), "\"configs/phpcommand.php\"", $exploded[1], "\"configs/phpcommand.php\"", "\"configs/phpcommand.php\"", '
'.$phpcommand.'
'); if(getenv('PATH')!='') { $err_msg .= "

".sprintf($lang['chkphpmulti2'], '
'.getenv('PATH')); } @@ -156,4 +156,4 @@ \ No newline at end of file +?> diff --git a/worker.php b/worker.php index fefb70c..df595bd 100644 --- a/worker.php +++ b/worker.php @@ -1,7 +1,7 @@ \ No newline at end of file +?>