From 114633ab86896ccfa19095767a4a7184e7cf523b Mon Sep 17 00:00:00 2001 From: root Date: Wed, 2 Nov 2016 20:41:45 +0100 Subject: [PATCH] release 1.1.3 --- install.php | 17 ++++++++++------- jobs/bot.php | 8 ++++++++ jobs/check_db.php | 21 +++++++++++---------- jobs/handle_messages.php | 28 +++++++++++++++------------- languages/core_ar.php | 12 ++++++++---- languages/core_de.php | 13 +++++++++---- languages/core_en.php | 14 +++++++++----- languages/core_it.php | 12 ++++++++---- languages/core_ro.php | 12 ++++++++---- languages/core_ru.php | 12 ++++++++---- stats/index.php | 10 +++++----- webinterface/bot.php | 40 ++++++++++++++++++++++++---------------- webinterface/msg.php | 14 ++++++++------ worker.php | 7 +++++++ 14 files changed, 138 insertions(+), 82 deletions(-) diff --git a/install.php b/install.php index 86867dd..54e9395 100644 --- a/install.php +++ b/install.php @@ -254,7 +254,7 @@ if(isset($_POST['confweb'])) { $nextupinfomsg3 = $mysqlcon->quote("You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."); $servernews = $mysqlcon->quote("Message
This is an example Message.
Change this Message inside the webinterface."); $rankupmsg = $mysqlcon->quote('Hey, you reached a higher rank, since you already connected for %1$s days, %2$s hours and %3$s minutes to our TS3 server.[B]Keep it up![/B] ;-) '); - if($mysqlcon->exec("INSERT INTO $dbname.config (webuser,webpass,tshost,tsquery,tsvoice,tsuser,language,queryname,queryname2,grouptime,resetbydbchange,msgtouser,upcheck,uniqueid,updateinfotime,currvers,exceptuuid,exceptgroup,dateformat,showexcld,showcolcld,showcoluuid,showcoldbid,showcolot,showcolit,showcolat,showcolnx,showcolsg,showcolrg,showcolls,slowmode,cleanclients,cleanperiod,showhighest,showcolas,defchid,timezone,logpath,ignoreidle,rankupmsg,newversion,servernews,nextupinfo,nextupinfomsg1,nextupinfomsg2,nextupinfomsg3,shownav,showgrpsince) VALUES ('$user','$pass','localhost','10011','9987','serveradmin','en','Ranksystem','RankSystem','31536000=>47,31536060=>50','1','1','1','xrTKhT/HDl4ea0WoFDQH2zOpmKg=,9odBYAU7z2E2feUz965sL0/Myom=','7200','1.1.2','xrTKhT/HDl4ea0WoFDQH2zOpmKg=','2,6','%a days, %h hours, %i mins, %s secs','1','1','1','1','1','1','1','1','1','1','1','0','1','86400','1','1','0','Europe/Berlin','$logpath','600',$rankupmsg,'1.1.2',$servernews,'1',$nextupinfomsg1,$nextupinfomsg2,$nextupinfomsg3,'1','1')") === false) { + if($mysqlcon->exec("INSERT INTO $dbname.config (webuser,webpass,tshost,tsquery,tsvoice,tsuser,language,queryname,queryname2,grouptime,resetbydbchange,msgtouser,upcheck,uniqueid,updateinfotime,currvers,exceptuuid,exceptgroup,dateformat,showexcld,showcolcld,showcoluuid,showcoldbid,showcolot,showcolit,showcolat,showcolnx,showcolsg,showcolrg,showcolls,slowmode,cleanclients,cleanperiod,showhighest,showcolas,defchid,timezone,logpath,ignoreidle,rankupmsg,newversion,servernews,nextupinfo,nextupinfomsg1,nextupinfomsg2,nextupinfomsg3,shownav,showgrpsince) VALUES ('$user','$pass','localhost','10011','9987','serveradmin','en','Ranksystem','RankSystem','31536000=>47,31536060=>50','1','1','1','xrTKhT/HDl4ea0WoFDQH2zOpmKg=,9odBYAU7z2E2feUz965sL0/Myom=','7200','1.1.3','xrTKhT/HDl4ea0WoFDQH2zOpmKg=','2,6','%a days, %h hours, %i mins, %s secs','1','1','1','1','1','1','1','1','1','1','1','0','1','86400','1','1','0','Europe/Berlin','$logpath','600',$rankupmsg,'1.1.3',$servernews,'1',$nextupinfomsg1,$nextupinfomsg2,$nextupinfomsg3,'1','1')") === false) { $err_msg = $lang['isntwidbmsg'].$mysqlcon->errorCode()." ".print_r($mysqlcon->errorInfo(), true); $err_lvl = 2; } else { $err_msg = $lang['isntwiusr'].'

'; @@ -278,27 +278,30 @@ if (!isset($_POST['install']) && !isset($_POST['confweb'])) { if(!is_writeable('./other/dbconfig.php')) { $err_msg .= "
".$lang['isntwicfg']; $err_lvl = 3; } - if (substr(sprintf('%o', fileperms('./avatars/')), -4)!='0777') { + if(substr(sprintf('%o', fileperms('./avatars/')), -4)!='0777') { $err_msg .= "
".sprintf($lang['isntwichm'],"avatars"); $err_lvl = 3; } - if (substr(sprintf('%o', fileperms('./icons/')), -4)!='0777') { + if(substr(sprintf('%o', fileperms('./icons/')), -4)!='0777') { $err_msg .= "
".sprintf($lang['isntwichm'],"icons"); $err_lvl = 3; } - if (substr(sprintf('%o', fileperms('./logs/')), -4)!='0777') { + if(substr(sprintf('%o', fileperms('./logs/')), -4)!='0777') { $err_msg .= "
".sprintf($lang['isntwichm'],"logs"); $err_lvl = 3; } - if (!class_exists('PDO')) { + if(!class_exists('PDO')) { $err_msg .= "
".$lang['insterr2']; $err_lvl = 3; } - if (!function_exists('exec')) { + if(!function_exists('exec')) { $err_msg .= "
".$lang['insterr3']; $err_lvl = 3; } if(version_compare(phpversion(), '5.5.0', '<')) { $err_msg .= "
".sprintf($lang['insterr4'],phpversion()); $err_lvl = 3; } - if (!function_exists('simplexml_load_file')) { + if(!function_exists('simplexml_load_file')) { $err_msg .= "
".$lang['insterr5']; $err_lvl = 3; } + if(!in_array('curl', get_loaded_extensions())) { + $err_msg .= "
".$lang['insterr6']; $err_lvl = 3; + } if(!isset($err_lvl)) { unset($err_msg); } diff --git a/jobs/bot.php b/jobs/bot.php index b98c212..ced108b 100644 --- a/jobs/bot.php +++ b/jobs/bot.php @@ -52,6 +52,14 @@ if(version_compare(phpversion(), '5.5.0', '<')) { enter_logfile($logpath,$timezone,1,"Your PHP version (".phpversion().") is below 5.5.0. Update of PHP needed! Shuttin down!\n\n"); exit; } +if(!function_exists('simplexml_load_file')) { + enter_logfile($logpath,$timezone,1,"SimpleXML is missed. Installation of SimpleXML is needed! Shuttin down!\n\n"); + exit; +} +if(!in_array('curl', get_loaded_extensions())) { + enter_logfile($logpath,$timezone,1,"PHP cURL is missed. Installation of PHP cURL is needed! Shuttin down!\n\n"); + exit; +} enter_logfile($logpath,$timezone,5,"Initialize Bot..."); require_once(substr(__DIR__,0,-4).'ts3_lib/TeamSpeak3.php'); diff --git a/jobs/check_db.php b/jobs/check_db.php index 2cad20f..e6b00d6 100644 --- a/jobs/check_db.php +++ b/jobs/check_db.php @@ -1,6 +1,6 @@ exec("ALTER TABLE $dbname.config ADD (shownav int(1) NOT NULL default '0', showgrpsince int(1) NOT NULL default '0')") === false) { } else { if($mysqlcon->exec("UPDATE $dbname.config set shownav='1', showgrpsince='1'") === false) { } else { enter_logfile($logpath,$timezone,4," [1.1.2] Adjusted table config (part2) successfully."); @@ -346,9 +344,12 @@ function check_db($mysqlcon,$lang,$dbname,$timezone,$currvers,$logpath) { enter_logfile($logpath,$timezone,4," [1.1.2] Adjusted table user successfully."); } } + if(version_compare($currvers, '1.1.2', '<=')) { + enter_logfile($logpath,$timezone,4," [1.1.3] No database changes needed."); + } $currvers = set_new_version($mysqlcon,$dbname,$timezone,$newversion,$logpath); old_files($timezone,$logpath); - check_chmod($timezone); + check_chmod($timezone,$logpath,$lang); check_config($mysqlcon,$dbname); } return $currvers; diff --git a/jobs/handle_messages.php b/jobs/handle_messages.php index 939e296..9f8c8e4 100644 --- a/jobs/handle_messages.php +++ b/jobs/handle_messages.php @@ -5,19 +5,12 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3 $uuid = $event["invokeruid"]; - if(strstr($event["msg"], 'nextup') && $nextupinfo == 1) { + if(strstr($event["msg"], 'nextup') && $nextupinfo != 0) { //enter_logfile($logpath,$timezone,6,"Client ".$event["invokername"]." (".$event["invokeruid"].") sent textmessage: ".$event["msg"]); if(($dbuserdata = $mysqlcon->query("SELECT count,nextup,idle,except FROM $dbname.user WHERE uuid='$uuid'")) === false) { enter_logfile($logpath,$timezone,2,"handle_messages 1:".print_r($mysqlcon->errorInfo(), true)); } $user = $dbuserdata->fetchAll(PDO::FETCH_ASSOC); - $nextup = $user[0]['nextup']; - $dtF = new DateTime("@0"); - $dtT = new DateTime("@$nextup"); - $days = $dtF->diff($dtT)->format('%a'); - $hours = $dtF->diff($dtT)->format('%h'); - $mins = $dtF->diff($dtT)->format('%i'); - $secs = $dtF->diff($dtT)->format('%s'); if(($dbgroups = $mysqlcon->query("SELECT * FROM $dbname.groups")) === false) { enter_logfile($logpath,$timezone,2,"handle_messages 2:".print_r($mysqlcon->errorInfo(), true)); @@ -31,15 +24,21 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3 $countgrp = count($grouptime); $grpcount=0; foreach ($grouptime as $time => $groupid) { - $grpcount++; if ($substridle == 1) { - $activetime = $user[0]['count'] - $user[0]['idle']; + $nextup = $time - $user[0]['count'] - $user[0]['idle']; } else { - $activetime = $user[0]['count']; + $nextup = $time - $user[0]['count']; } - if ($activetime < $time || $grpcount == $countgrp && $nextup <= 0) { + $dtF = new DateTime("@0"); + $dtT = new DateTime("@$nextup"); + $days = $dtF->diff($dtT)->format('%a'); + $hours = $dtF->diff($dtT)->format('%h'); + $mins = $dtF->diff($dtT)->format('%i'); + $secs = $dtF->diff($dtT)->format('%s'); + $grpcount++; + if ($nextup > 0 && $nextup < $time || $grpcount == $countgrp && $nextup <= 0) { check_shutdown($timezone,$logpath); usleep($slowmode); - if ($grpcount == $countgrp && $nextup == 0) { + if ($grpcount == $countgrp && $nextup <= 0) { try { $host->serverGetSelected()->clientGetByUid($event["invokeruid"])->message(sprintf($nextupinfomsg2, $days, $hours, $mins, $secs, $sqlhisgroup[$groupid])); } catch (Exception $e) { @@ -58,6 +57,9 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3 enter_logfile($logpath,$timezone,2,"handle_messages 5:".$e->getCode().': '.$e->getMessage()); } } + if($nextupinfo == 1) { + break; + } } } } diff --git a/languages/core_ar.php b/languages/core_ar.php index 86be174..7282924 100644 --- a/languages/core_ar.php +++ b/languages/core_ar.php @@ -37,6 +37,7 @@ $lang['insterr2'] = "PDO is needed but seems not installed. Install exec function and try it again!"; $lang['insterr4'] = "Your PHP version (%s) is below 5.5.0. Update your PHP and try it again!"; $lang['insterr5'] = "SimpleXML is needed but seems not available. Install simpleXML and try it again!"; +$lang['insterr6'] = "PHP cURL is needed but seems not available. Install PHP cURL and try it again!"; $lang['isntwicfg'] = "Can't save the database configuration! Please edit the 'other/dbconfig.php' with a chmod 0777 (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 777 (on windows 'full access') and try to start the Ranksystem again."; @@ -335,13 +336,16 @@ $lang['winav9'] = "Update available!"; $lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to ensure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection."; $lang['winav11'] = "Please enter the unique Client-ID of the admin of the Ranksystem (Other -> admin ID). This is very important in case you lost your login details for the webinterface (to reset these)."; $lang['winxinfo'] = "Command \"nextup\""; -$lang['winxinfodesc'] = "Allows the user on the TS3 server to write the command \"nextup\" to the Ranksystem (query) bot as private textmessage.

As answer the user will get a defined text message with the needed time for the next rankup."; +$lang['winxinfodesc'] = "Allows the user on the TS3 server to write the command \"nextup\" to the Ranksystem (query) bot as private textmessage.

As answer the user will get a defined text message with the needed time for the next rankup.

deactivated - The function is deactivated. The command 'nextup' will be ignored.
allowed - only next rank - Gives back the needed time for the next group.
allowed - all next ranks - Gives back the needed time for all higher ranks."; +$lang['winxmode1'] = "deactivated"; +$lang['winxmode2'] = "allowed - only next rank"; +$lang['winxmode3'] = "allowed - all next ranks"; $lang['winxmsg1'] = "Message"; -$lang['winxmsgdesc1'] = "Define a message, which the user will get as answer at the command \"nextup\".

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
Your next rank up will be in %1\$s days, %2\$s hours and %3\$s minutes and %4\$s seconds. The next servergroup you will reach is [B]%5\$s[/B]."; +$lang['winxmsgdesc1'] = "Define a message, which the user will get as answer at the command \"nextup\".

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
Your next rank up will be in %1$s days, %2$s hours and %3$s minutes and %4$s seconds. The next servergroup you will reach is [B]%5$s[/B]."; $lang['winxmsg2'] = "Message (highest)"; -$lang['winxmsgdesc2'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user already reached the highest rank.

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
You have already reached the highest rank."; +$lang['winxmsgdesc2'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user already reached the highest rank.

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
You have been reached the highest rank for %1$s days, %2$s hours and %3$s minutes and %4$s seconds."; $lang['winxmsg3'] = "Message (excepted)"; -$lang['winxmsgdesc3'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user is excepted from the Ranksystem.

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."; +$lang['winxmsgdesc3'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user is excepted from the Ranksystem.

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."; $lang['wirtpw1'] = "Sorry Bro, you have forgotten to enter your admin ID inside the webinterface before. There is no way to reset the password!"; $lang['wirtpw2'] = "Admin ID not found on TS3 server. You need to be online with the unique Client ID, which is saved as admin ID."; $lang['wirtpw3'] = "Your IP address do not match with the IP address of the admin on the TS3 server. Be sure you are with the same IP address online on the TS3 server and also on this page (same protocol IPv4 / IPv6 is also needed)."; diff --git a/languages/core_de.php b/languages/core_de.php index 53c8f08..c1f33e4 100644 --- a/languages/core_de.php +++ b/languages/core_de.php @@ -37,6 +37,7 @@ $lang['insterr2'] = "PDO wird benötigt, scheint jedoch nicht installiert zu s $lang['insterr3'] = "PHP exec wird benötigt, scheint jedoch deaktiviert zu sein. Bitte aktiviere PHP exec und versuche es erneut!"; $lang['insterr4'] = "Deine PHP Version (%s) ist unter 5.5.0. Aktualisiere dein PHP und versuche es erneut!"; $lang['insterr5'] = "SimpleXML wird benötigt, scheint jedoch nicht verfügbar zu sein. Bitte installiere simpleXML und versuche es erneut!"; +$lang['insterr6'] = "PHP cURL wird benötigt, scheint jedoch nicht verfügbar zu sein. Bitte installiere PHP cURL und versuche es erneut!"; $lang['isntwicfg'] = "Die Datenbankkonfigurationen konnten nicht gespeichert werden! Bitte versehe die 'other/dbconfig.php' mit einem chmod 0777 (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 777 (für Windows 'Vollzugriff') und starte anschließend das Ranksystem erneut."; @@ -335,13 +336,17 @@ $lang['winav9'] = "Update verfügbar!"; $lang['winav10'] = "Bitte nutze das Webinterface nur via %s HTTPS%s Eine Verschlüsselung ist wichtig um die Privatsphäre und Sicherheit zu gewährleisten.%sUm HTTPS nutzen zu können, muss der Webserver eine SSL Verbindung unterstützen."; $lang['winav11'] = "Bitte hinterlege die eindeutige Client-ID des Admins des Ranksystems (Anderes -> admin ID). Dies ist sehr wichtig im Falle des Verlustes der Logindaten für das Webinterface."; $lang['winxinfo'] = "Befehl \"nextup\""; -$lang['winxinfodesc'] = "Erlaubt einen User auf dem TeamSpeak3 Server den Befehl \"nextup\" dem Ranksystem (Query) Bot als private Textnachricht zu schreiben.

Als Antwort erhält der User eine Nachricht mit der benötigten Zeit zur nächsten Rangsteigerung.

Unter folgender URL ein Beispiel zum Setzen einer Verlinkung mit \"client://\" für den Ranksystem (Query) Bot, da nicht unbedingt für alle die Query-User sichtbar sind:
http://ts-n.net/lexicon.php?showid=98#lexindex

Dieser kann dann mit dem [URL] Tag in einem Channel als Link eingefügt werden.
http://ts-n.net/lexicon.php?showid=97#lexindex"; +$lang['winxinfodesc'] = "Erlaubt einen User auf dem TeamSpeak3 Server den Befehl \"nextup\" dem Ranksystem (Query) Bot als private Textnachricht zu schreiben.

Als Antwort erhält der User eine Nachricht mit der benötigten Zeit zur nächsten Rangsteigerung. +

deaktiviert - Die Funktion ist deaktiviert. Der Befehl 'nextup' wird ignoriert.
erlaubt - nur nächsten Rang - Gibt die benötigte Zeit zum nächsten Rang zurück.
erlaubt - alle nächsten Ränge - Gibt die benötigte Zeit für alle höheren Ränge zurück.

Unter folgender URL ein Beispiel zum Setzen einer Verlinkung mit \"client://\" für den Ranksystem (Query) Bot, da nicht unbedingt für alle die Query-User sichtbar sind:
http://ts-n.net/lexicon.php?showid=98#lexindex

Dieser kann dann mit dem [URL] Tag in einem Channel als Link eingefügt werden.
http://ts-n.net/lexicon.php?showid=97#lexindex"; +$lang['winxmode1'] = "deaktiviert"; +$lang['winxmode2'] = "erlaubt - nur nächster Rang"; +$lang['winxmode3'] = "erlaubt - alle nächsten Ränge"; $lang['winxmsg1'] = "Nachricht"; -$lang['winxmsgdesc1'] = "Definiere eine Nachricht, welche ein User als Antwort auf den Befehl \"nextup\" erhält.

Argumente:
%1\$s - Tage zur nächsten Rangsteigerung
%2\$s - Stunden zur nächsten Rangsteigerung
%3\$s - Minuten zur nächsten Rangsteigerung
%4\$s - Sekunden zur nächsten Rangsteigerung
%5\$s - Name der nächsten Servergruppe (Rank)

Beispiel:
Deine nächste Rangsteigerung ist in %1\$s Tagen, %2\$s Stunden, %3\$s Minuten und %4\$s Sekunden. Die nächste Servergruppe, die du erreichst ist [B]%5\$s[/B]."; +$lang['winxmsgdesc1'] = "Definiere eine Nachricht, welche ein User als Antwort auf den Befehl \"nextup\" erhält.

Argumente:
%1$s - Tage zur nächsten Rangsteigerung
%2$s - Stunden zur nächsten Rangsteigerung
%3$s - Minuten zur nächsten Rangsteigerung
%4$s - Sekunden zur nächsten Rangsteigerung
%5\$s - Name der nächsten Servergruppe (Rank)

Beispiel:
Deine nächste Rangsteigerung ist in %1$s Tagen, %2$s Stunden, %3$s Minuten und %4$s Sekunden. Die nächste Servergruppe, die du erreichst ist [B]%5$s[/B]."; $lang['winxmsg2'] = "Nachricht (höchste)"; -$lang['winxmsgdesc2'] = "Definiere eine Nachricht, welche ein User als Antwort auf den Befehl \"nextup\" erhält, wenn der User bereits im höchsten Rang ist.

Argumente:
%1\$s - Tage zur nächsten Rangsteigerung
%2\$s - Stunden zur nächsten Rangsteigerung
%3\$s - Minuten zur nächsten Rangsteigerung
%4\$s - Sekunden zur nächsten Rangsteigerung
%5\$s - Name der nächsten Servergruppe (Rank)

Beispiel:
Du hast bereits den höchsten Rang erreicht."; +$lang['winxmsgdesc2'] = "Definiere eine Nachricht, welche ein User als Antwort auf den Befehl \"nextup\" erhält, wenn der User bereits im höchsten Rang ist.

Argumente:
%1$s - Tage zur nächsten Rangsteigerung
%2$s - Stunden zur nächsten Rangsteigerung
%3$s - Minuten zur nächsten Rangsteigerung
%4$s - Sekunden zur nächsten Rangsteigerung
%5vs - Name der nächsten Servergruppe (Rank)

Beispiel:
Du hast bereits den höchsten Rang erreicht seit %1$s Tagen, %2$s Stunden, %3$s Minuten und %4$s Sekunden."; $lang['winxmsg3'] = "Nachricht (Ausnahme)"; -$lang['winxmsgdesc3'] = "Definiere eine Nachricht, welche ein User als Antwort auf den Befehl \"nextup\" erhält, wemm der User vom Ranksystem ausgeschlossen ist.

Argumente:
%1\$s - Tage zur nächsten Rangsteigerung
%2\$s - Stunden zur nächsten Rangsteigerung
%3\$s - Minuten zur nächsten Rangsteigerung
%4\$s - Sekunden zur nächsten Rangsteigerung
%5\$s - Name der nächsten Servergruppe (Rank)

Beispiel:
Du bist vom Ranksystem ausgeschlossen. Wenn du eine Teilnahme am Ranksystem wünschst, kontaktiere einen Admin auf dem TS3 Server."; +$lang['winxmsgdesc3'] = "Definiere eine Nachricht, welche ein User als Antwort auf den Befehl \"nextup\" erhält, wemm der User vom Ranksystem ausgeschlossen ist.

Argumente:
%1$s - Tage zur nächsten Rangsteigerung
%2$s - Stunden zur nächsten Rangsteigerung
%3$s - Minuten zur nächsten Rangsteigerung
%4$s - Sekunden zur nächsten Rangsteigerung
%5$s - Name der nächsten Servergruppe (Rank)

Beispiel:
Du bist vom Ranksystem ausgeschlossen. Wenn du eine Teilnahme am Ranksystem wünschst, kontaktiere einen Admin auf dem TS3 Server."; $lang['wirtpw1'] = "Sorry Bro, du hast vergessen die admin ID zuvor im Webinterface zu hinterlegen. Nun besteht keine Möglichkeit das Passwort zurückzusetzen!"; $lang['wirtpw2'] = "Admin ID konnte auf dem TS3 Server nicht gefunden werden. Du musst auf dem TS3 mit der hinterlegten admin ID online sein."; $lang['wirtpw3'] = "Deine IP Adresse stimmt nicht mit der IP des Admins auf dem TS3 überein. Bitte stelle sicher, dass du die gleiche IP Adresse auf dem TS3 Server nutzt wie auch hier auf dieser Seite (und auch das gleiche Protokoll IPv4 / IPv6)."; diff --git a/languages/core_en.php b/languages/core_en.php index 4781f25..ad4bde5 100644 --- a/languages/core_en.php +++ b/languages/core_en.php @@ -36,7 +36,8 @@ $lang['insterr1'] = "ATTENTION: You are trying to install the Ranksystem, but $lang['insterr2'] = "PDO is needed but seems not installed. Install PDO and try it again!"; $lang['insterr3'] = "PHP exec function need to be enabled but seems to be disabled. Please enable the PHP exec function and try it again!"; $lang['insterr4'] = "Your PHP version (%s) is below 5.5.0. Update your PHP and try it again!"; -$lang['insterr5'] = "SimpleXML is needed but seems not available. Install simpleXML and try it again!"; +$lang['insterr5'] = "SimpleXML is needed but seems not available. Install simpleXML and try it again!"; +$lang['insterr6'] = "PHP cURL is needed but seems not available. Install PHP cURL and try it again!"; $lang['isntwicfg'] = "Can't save the database configuration! Please edit the 'other/dbconfig.php' with a chmod 0777 (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 777 (on windows 'full access') and try to start the Ranksystem again."; @@ -335,13 +336,16 @@ $lang['winav9'] = "Update available!"; $lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to ensure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection."; $lang['winav11'] = "Please enter the unique Client-ID of the admin of the Ranksystem (Other -> admin ID). This is very important in case you lost your login details for the webinterface (to reset these)."; $lang['winxinfo'] = "Command \"nextup\""; -$lang['winxinfodesc'] = "Allows the user on the TS3 server to write the command \"nextup\" to the Ranksystem (query) bot as private textmessage.

As answer the user will get a defined text message with the needed time for the next rankup."; +$lang['winxinfodesc'] = "Allows the user on the TS3 server to write the command \"nextup\" to the Ranksystem (query) bot as private textmessage.

As answer the user will get a defined text message with the needed time for the next rankup.

deactivated - The function is deactivated. The command 'nextup' will be ignored.
allowed - only next rank - Gives back the needed time for the next group.
allowed - all next ranks - Gives back the needed time for all higher ranks."; +$lang['winxmode1'] = "deactivated"; +$lang['winxmode2'] = "allowed - only next rank"; +$lang['winxmode3'] = "allowed - all next ranks"; $lang['winxmsg1'] = "Message"; -$lang['winxmsgdesc1'] = "Define a message, which the user will get as answer at the command \"nextup\".

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
Your next rank up will be in %1\$s days, %2\$s hours and %3\$s minutes and %4\$s seconds. The next servergroup you will reach is [B]%5\$s[/B]."; +$lang['winxmsgdesc1'] = "Define a message, which the user will get as answer at the command \"nextup\".

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
Your next rank up will be in %1$s days, %2$s hours and %3$s minutes and %4$s seconds. The next servergroup you will reach is [B]%5$s[/B]."; $lang['winxmsg2'] = "Message (highest)"; -$lang['winxmsgdesc2'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user already reached the highest rank.

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
You have already reached the highest rank."; +$lang['winxmsgdesc2'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user already reached the highest rank.

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
You have been reached the highest rank for %1$s days, %2$s hours and %3$s minutes and %4$s seconds."; $lang['winxmsg3'] = "Message (excepted)"; -$lang['winxmsgdesc3'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user is excepted from the Ranksystem.

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."; +$lang['winxmsgdesc3'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user is excepted from the Ranksystem.

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."; $lang['wirtpw1'] = "Sorry Bro, you have forgotten to enter your admin ID inside the webinterface before. There is no way to reset the password!"; $lang['wirtpw2'] = "Admin ID not found on TS3 server. You need to be online with the unique Client ID, which is saved as admin ID."; $lang['wirtpw3'] = "Your IP address do not match with the IP address of the admin on the TS3 server. Be sure you are with the same IP address online on the TS3 server and also on this page (same protocol IPv4 / IPv6 is also needed)."; diff --git a/languages/core_it.php b/languages/core_it.php index 87de447..0b337e6 100644 --- a/languages/core_it.php +++ b/languages/core_it.php @@ -37,6 +37,7 @@ $lang['insterr2'] = "PDO è necessario ma non sembra essere installato. Instal $lang['insterr3'] = "La funzione PHP exec deve essere abilitata, ma sembra non lo sia. Per favore, abilita la funzione PHP exec e prova ancora!"; $lang['insterr4'] = "La tua versione PHP (%s) is antecedente alla 5.5.0. Aggiorna la tua PHP e prova ancora!"; $lang['insterr5'] = "SimpleXML è richiesto, ma non sembra disponibile. Installa simpleXML e provca ancora!"; +$lang['insterr6'] = "PHP cURL is needed but seems not available. Install PHP cURL and try it again!"; $lang['isntwicfg'] = "Impossibile salvare la configurazione del database! Modifica il file 'other/dbconfig.php' dandogli i permessi 0777 (chmod 777 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 777 (on windows 'full access') e prova ad avviare il Ranksystem di nuovo."; @@ -335,13 +336,16 @@ $lang['winav9'] = "Aggiornamento disponibile!"; $lang['winav10'] = "Per favore utilizzare l'interfaccia solo attraverso %s HTTPS%s Una crittografia è fondamentale per garantire la privacy e la sicurezza.%sPer essere in grado di utilizzare HTTPS il vostro web server deve supportare una connessione SSL."; $lang['winav11'] = "Per favore digita lo unique Client-ID dell'admin per il Ranksystem (Altro -> admin ID). Questo è molto importante nel caso perdessi le credenziali di accesso per la webinterface (per effettuarne un reset)."; $lang['winxinfo'] = "Comando \"nextup\""; -$lang['winxinfodesc'] = "Permette all'utente nel server TS3 di scrivere nel comando \"nextup\" al bot del Ranksystem (coda) come messaggio privato.

Come risposta l'utente riceverà un messaggio di testo definito con il tempo rimanente alla prossimo rank."; +$lang['winxinfodesc'] = "Permette all'utente nel server TS3 di scrivere nel comando \"nextup\" al bot del Ranksystem (coda) come messaggio privato.

Come risposta l'utente riceverà un messaggio di testo definito con il tempo rimanente alla prossimo rank.

deactivated - The function is deactivated. The command 'nextup' will be ignored.
allowed - only next rank - Gives back the needed time for the next group.
allowed - all next ranks - Gives back the needed time for all higher ranks."; +$lang['winxmode1'] = "deactivated"; +$lang['winxmode2'] = "allowed - only next rank"; +$lang['winxmode3'] = "allowed - all next ranks"; $lang['winxmsg1'] = "Messaggio"; -$lang['winxmsgdesc1'] = "Definisci il messaggio, che l'utente riceverà come risposta al comando \"nextup\".

Argomenti:
%1\$s - giorni al prossimo aumento di rank
%2\$s - ore al prossimo aumento di rank
%3\$s - minutial prossimo aumento di rank
%4\$s - secondi al prossimo aumento di rank
%5\$s - nome del prossimo servergroup

Esempio:
Il tuo prossimo aumento di rank sarà tra %1\$s giorni, %2\$s ore and %3\$s minuti and %4\$s secondi. Il prossimo servergroup che raggiungerai è [B]%5\$s[/B]."; +$lang['winxmsgdesc1'] = "Definisci il messaggio, che l'utente riceverà come risposta al comando \"nextup\".

Argomenti:
%1$s - giorni al prossimo aumento di rank
%2$s - ore al prossimo aumento di rank
%3$s - minutial prossimo aumento di rank
%4$s - secondi al prossimo aumento di rank
%5$s - nome del prossimo servergroup

Esempio:
Il tuo prossimo aumento di rank sarà tra %1$s giorni, %2$s ore and %3$s minuti and %4$s secondi. Il prossimo servergroup che raggiungerai è [B]%5$s[/B]."; $lang['winxmsg2'] = "Messaggio (highest)"; -$lang['winxmsgdesc2'] = "Definisci un messaggio, che l'utente riceverà come risposta al comando \"nextup\", quando l'utente ha già raggiunto il rank più alto.

Argomenti:
%1\$s - giorni al prossimo aumento di rank
%2\$s - ore al prossimo aumento di rank
%3\$s - minuti al prossimo aumento di rank
%4\$s - secondi al prossimo aumento di rank
%5\$s - nome del prossimo servergroup

Esempio:
Hai già raggiunto il rank più alto."; +$lang['winxmsgdesc2'] = "Definisci un messaggio, che l'utente riceverà come risposta al comando \"nextup\", quando l'utente ha già raggiunto il rank più alto.

Argomenti:
%1$s - giorni al prossimo aumento di rank
%2$s - ore al prossimo aumento di rank
%3$s - minuti al prossimo aumento di rank
%4$s - secondi al prossimo aumento di rank
%5$s - nome del prossimo servergroup

Esempio:
You have been reached the highest rank for %1$s days, %2$s hours and %3$s minutes and %4$s seconds."; $lang['winxmsg3'] = "Messaggio (excepted)"; -$lang['winxmsgdesc3'] = "Definisci un messaggio, che l'utente riceverà come risposta al comando \"nextup\",quando l'utente è escluso dal Ranksystem.

Argomenti:
%1\$s - giorni al prossimo aumento di rank
%2\$s - ore al prossimo aumento di rank
%3\$s - minuti al prossimo aumento di rank
%4\$s - secondi al prossimo aumento di rank
%5\$s - nome del prossimo servergroup

Esempio:
Sei escluso dal Ranksystem. Se desideri un rank contatta un amministratore nel server di TS3."; +$lang['winxmsgdesc3'] = "Definisci un messaggio, che l'utente riceverà come risposta al comando \"nextup\",quando l'utente è escluso dal Ranksystem.

Argomenti:
%1$s - giorni al prossimo aumento di rank
%2$s - ore al prossimo aumento di rank
%3$s - minuti al prossimo aumento di rank
%4$s - secondi al prossimo aumento di rank
%5$s - nome del prossimo servergroup

Esempio:
Sei escluso dal Ranksystem. Se desideri un rank contatta un amministratore nel server di TS3."; $lang['wirtpw1'] = "Scusa Bro, hai dimenticato di inserire il tuo admin ID prima all'interno della webinterface. Non c'è modo di resettare la password!"; $lang['wirtpw2'] = "Admin ID non trovato nel server TS3. Devi essere online con il tuo unique Client ID, che è salvato come admin ID."; $lang['wirtpw3'] = "Il tuo indirizzo IP non coincide con l'indirizzo IP dell'amministratore nel server TS3. Assicurati di avere lo stesso indirizzo IP online nel server TS3 e anche in questa pagina (stesso protocollo IPv4 / IPv6 è inoltre richiesto)."; diff --git a/languages/core_ro.php b/languages/core_ro.php index e76d730..124f00e 100644 --- a/languages/core_ro.php +++ b/languages/core_ro.php @@ -37,6 +37,7 @@ $lang['insterr2'] = "PDO is needed but seems not installed. Install exec function and try it again!"; $lang['insterr4'] = "Your PHP version (%s) is below 5.5.0. Update your PHP and try it again!"; $lang['insterr5'] = "SimpleXML is needed but seems not available. Install simpleXML and try it again!"; +$lang['insterr6'] = "PHP cURL is needed but seems not available. Install PHP cURL and try it again!"; $lang['insttb'] = "Instalăm tabelele:"; $lang['isntwicfg'] = "Nu se poate salva configurația bazei de date ! Vă rugăm să modificați 'other/dbconfig.php' cu acces chmod 0777 (on windows 'full access') și incercați iar."; $lang['isntwichm'] = "Vă rugăm să modificați 'other/dbconfig.php', și folderele 'avatars/', 'icons/' and 'logs/' cu permisiile necesare. Prin urmare, sa editați accesul chmod cu 0777 (on windows 'full access'). Apoi incercați iar (refresh la pagină)."; @@ -335,13 +336,16 @@ $lang['winav9'] = "Update available!"; $lang['winav10'] = "Please use the webinterface only via %s HTTPS%s An encryption is critical to ensure your privacy and security.%sTo be able to use HTTPS your webserver needs to support an SSL connection."; $lang['winav11'] = "Please enter the unique Client-ID of the admin of the Ranksystem (Other -> admin ID). This is very important in case you lost your login details for the webinterface (to reset these)."; $lang['winxinfo'] = "Command \"nextup\""; -$lang['winxinfodesc'] = "Allows the user on the TS3 server to write the command \"nextup\" to the Ranksystem (query) bot as private textmessage.

As answer the user will get a defined text message with the needed time for the next rankup."; +$lang['winxinfodesc'] = "Allows the user on the TS3 server to write the command \"nextup\" to the Ranksystem (query) bot as private textmessage.

As answer the user will get a defined text message with the needed time for the next rankup.

deactivated - The function is deactivated. The command 'nextup' will be ignored.
allowed - only next rank - Gives back the needed time for the next group.
allowed - all next ranks - Gives back the needed time for all higher ranks."; +$lang['winxmode1'] = "deactivated"; +$lang['winxmode2'] = "allowed - only next rank"; +$lang['winxmode3'] = "allowed - all next ranks"; $lang['winxmsg1'] = "Message"; -$lang['winxmsgdesc1'] = "Define a message, which the user will get as answer at the command \"nextup\".

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
Your next rank up will be in %1\$s days, %2\$s hours and %3\$s minutes and %4\$s seconds. The next servergroup you will reach is [B]%5\$s[/B]."; +$lang['winxmsgdesc1'] = "Define a message, which the user will get as answer at the command \"nextup\".

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
Your next rank up will be in %1$s days, %2$s hours and %3$s minutes and %4$s seconds. The next servergroup you will reach is [B]%5$s[/B]."; $lang['winxmsg2'] = "Message (highest)"; -$lang['winxmsgdesc2'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user already reached the highest rank.

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
You have already reached the highest rank."; +$lang['winxmsgdesc2'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user already reached the highest rank.

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
You have been reached the highest rank for %1$s days, %2$s hours and %3$s minutes and %4$s seconds."; $lang['winxmsg3'] = "Message (excepted)"; -$lang['winxmsgdesc3'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user is excepted from the Ranksystem.

Arguments:
%1\$s - days to next rankup
%2\$s - hours to next rankup
%3\$s - minutes to next rankup
%4\$s - seconds to next rankup
%5\$s - name of the next servergroup

Example:
You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."; +$lang['winxmsgdesc3'] = "Define a message, which the user will get as answer at the command \"nextup\", when the user is excepted from the Ranksystem.

Arguments:
%1$s - days to next rankup
%2$s - hours to next rankup
%3$s - minutes to next rankup
%4$s - seconds to next rankup
%5$s - name of the next servergroup

Example:
You are excepted from the Ranksystem. If you wish to rank contact an admin on the TS3 server."; $lang['wirtpw1'] = "Sorry Bro, you have forgotten to enter your admin ID inside the webinterface before. There is no way to reset the password!"; $lang['wirtpw2'] = "Admin ID not found on TS3 server. You need to be online with the unique Client ID, which is saved as admin ID."; $lang['wirtpw3'] = "Your IP address do not match with the IP address of the admin on the TS3 server. Be sure you are with the same IP address online on the TS3 server and also on this page (same protocol IPv4 / IPv6 is also needed)."; diff --git a/languages/core_ru.php b/languages/core_ru.php index 62ef3e0..be82167 100644 --- a/languages/core_ru.php +++ b/languages/core_ru.php @@ -37,6 +37,7 @@ $lang['insterr2'] = "Для работы RankSystem требуется нал $lang['insterr3'] = "Для работы RankSystem требуется наличие включеной функции PHP exec. Пожалуйста, включите данную exec функцию и попробуйте заново!"; $lang['insterr4'] = "Ваша версия PHP (%s) ниже допустимой 5.5.0. Пожалуйста, обновите версию PHP и попробуйте заново!"; $lang['insterr5'] = "Для установки требуется SimpleXML. Пожалуйста, установите simpleXML и попробуйте заново!"; +$lang['insterr6'] = "PHP cURL is needed but seems not available. Install PHP cURL and try it again!"; $lang['isntwicfg'] = "Не получилось записать настройки базы данных! Пожалуйста, установите права на запись 'other/dbconfig.php' chmod 0777 (В windows 'Полный доступ') и попробуйте заново."; $lang['isntwicfg2'] = "Конфигурирование веб-интерфейса"; $lang['isntwichm'] = "Отсутствуют права на запись в папку \"%s\". Пожалуйста, установите на эту папку права chmod 0777 (В windows 'полный доступ') и повторите этот этап заново."; @@ -335,13 +336,16 @@ $lang['winav9'] = "Доступно обновление!"; $lang['winav10'] = "Соединение с данным сайтом не защищено с помощью %s HTTPS%sЭто может повлечь за собой проблемы для вашей приватности и безопасности! %sДля использования HTTPS ваш веб-сервер должен поддерживать SSL-соединение."; $lang['winav11'] = "Пожалуйста, укажите ваш уникальный идентификатор(UID) в разделе меню \"Прочее\". Это очень важно, на случай, если вы потеряете пароль от аккаунта веб-панели."; $lang['winxinfo'] = "Команда \"nextup\""; -$lang['winxinfodesc'] = "Разрешает отправлять RankSytem-боту команду \"nextup\" личным сообщением.

После отправки команды пользователю будет отправлено ответное сообщение с информацией о требуемом времени до следующего повышения."; +$lang['winxinfodesc'] = "Разрешает отправлять RankSytem-боту команду \"nextup\" личным сообщением.

После отправки команды пользователю будет отправлено ответное сообщение с информацией о требуемом времени до следующего повышения.

deactivated - The function is deactivated. The command 'nextup' will be ignored.
allowed - only next rank - Gives back the needed time for the next group.
allowed - all next ranks - Gives back the needed time for all higher ranks."; +$lang['winxmode1'] = "deactivated"; +$lang['winxmode2'] = "allowed - only next rank"; +$lang['winxmode3'] = "allowed - all next ranks"; $lang['winxmsg1'] = "Сообщение-ответ"; -$lang['winxmsgdesc1'] = "Задайте форматирование и текст для сообщения, которое будет отправлено ответом на команду \"nextup\".

Аргументы:
%1\$s - Оставшиеся дни до повышения
%2\$s - часы
%3\$s - минуты
%4\$s - секунды
%5\$s - Имя следующей группы-ранга

Пример:
Вы достигнете следующего ранга через: %1\$s дней, %2\$s часов, %3\$s минут и %4\$s секунд. Название следующей группы-ранга: [B]%5\$s[/B]."; +$lang['winxmsgdesc1'] = "Задайте форматирование и текст для сообщения, которое будет отправлено ответом на команду \"nextup\".

Аргументы:
%1$s - Оставшиеся дни до повышения
%2$s - часы
%3$s - минуты
%4$s - секунды
%5$s - Имя следующей группы-ранга

Пример:
Вы достигнете следующего ранга через: %1$s дней, %2$s часов, %3$s минут и %4$s секунд. Название следующей группы-ранга: [B]%5$s[/B]."; $lang['winxmsg2'] = "Сообщ. о макс.ранге"; -$lang['winxmsgdesc2'] = "Данный текст будет отправлен пользователю при вводе команды \"nextup\", если пользователь уже достиг высшего ранга

Аргументы:
%1\$s - Оставшиеся дни до повышения
%2\$s - часы
%3\$s - минуты
%4\$s - секунды

Пример:Вы достигли высшего ранга."; +$lang['winxmsgdesc2'] = "Данный текст будет отправлен пользователю при вводе команды \"nextup\", если пользователь уже достиг высшего ранга

Аргументы:
%1$s - Оставшиеся дни до повышения
%2$s - часы
%3$s - минуты
%4$s - секунды

Пример:
You have been reached the highest rank for %1$s days, %2$s hours and %3$s minutes and %4$s seconds."; $lang['winxmsg3'] = "Сообщ. о исключении"; -$lang['winxmsgdesc3'] = "Данный текст будет отправлен пользователю при вводе команды \"nextup\", если пользователь исключен из системы рангов RankSystem(Исключенный канал, группа, UID)

Аргументы:
%1\$s - Оставшиеся дни до повышения
%2\$s - часы
%3\$s - минуты
%4\$s - секунды
%5\$s - Имя следующей группы-ранга

Пример:
Вы исключены из системы рангов RankSystem. Такое могло произойти, если Вы находитесь в \"Исключенном канале\", группе сервера или ваш идентификатор был вручную добавлен в исключение. За подробной информацией обратитесь к администратору сервера."; +$lang['winxmsgdesc3'] = "Данный текст будет отправлен пользователю при вводе команды \"nextup\", если пользователь исключен из системы рангов RankSystem(Исключенный канал, группа, UID)

Аргументы:
%1$s - Оставшиеся дни до повышения
%2$s - часы
%3$s - минуты
%4$s - секунды
%5$s - Имя следующей группы-ранга

Пример:
Вы исключены из системы рангов RankSystem. Такое могло произойти, если Вы находитесь в \"Исключенном канале\", группе сервера или ваш идентификатор был вручную добавлен в исключение. За подробной информацией обратитесь к администратору сервера."; $lang['wirtpw1'] = "Увы. Вами ранее не был указан UID администратора, с помощью которого должно производиться восстановление пароля от веб-панели. В данном случае, восстановление пароля невозможно средствами RankSystem.
Вы можете попробовать вручную изменить пароль от аккаунта через базу данных, но не забудьте при этом, что там хранится md5-хеш пароля( md5(\"password\") -> d41d8cd98f00b204e9800998ecf8427e )."; $lang['wirtpw2'] = "Администратор с заданным UID не был найден среди пользователей онлайн на сервере. Вам необходимо подключиться к серверу с заданного в веб-панели уникального идентификатора(UID)!"; $lang['wirtpw3'] = "Ваш IP-адрес не совпадает с IP Администратора. Такое могло произойти, если ваш траффик в браузере перенаправлен на прокси-сервер или VPN(протоколы IPv4 / IPv6 также учитываются при сверке IP)."; diff --git a/stats/index.php b/stats/index.php index fd4b36f..96352b1 100644 --- a/stats/index.php +++ b/stats/index.php @@ -369,8 +369,8 @@ require_once('nav.php'); Morris.Donut({ element: 'time-gap-donut', data: [ - {label: "Active Time (in Days)", value: }, - {label: "Inactive Time (in Days)", value: }, + {label: "", value: }, + {label: "", value: }, ] }); Morris.Donut({ @@ -381,7 +381,7 @@ require_once('nav.php'); {label: "", value: }, {label: "", value: }, {label: "", value: }, - {label: "Others", value: }, + {label: "", value: }, ], colors: [ '#5cb85c', @@ -399,7 +399,7 @@ require_once('nav.php'); {label: "", value: }, {label: "", value: }, {label: "", value: }, - {label: "Others", value: } + {label: "", value: } ], colors: [ '#f0ad4e', @@ -418,7 +418,7 @@ require_once('nav.php'); {label: "Android", value: }, {label: "iOS", value: }, {label: "OS X", value: }, - {label: "Others", value: }, + {label: "", value: }, ], colors: [ '#d9534f', diff --git a/webinterface/bot.php b/webinterface/bot.php index 7471c88..c01367f 100644 --- a/webinterface/bot.php +++ b/webinterface/bot.php @@ -119,16 +119,20 @@ require_once('nav.php'); $logoutput = getlog($logpath,$number_lines,$filters); if (isset($_POST['start']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) { - if (substr(php_uname(), 0, 7) == "Windows") { - $WshShell = new COM("WScript.Shell"); - $oExec = $WshShell->Run("cmd /C php ".substr(__DIR__,0,-12)."\worker.php start", 0, false); + if(substr(sprintf('%o', fileperms($logpath)), -3, 1)!='7') { + $err_msg = "!!!! Logs folder is not writable !!!!
Cancel start request!"; $err_lvl = 3; } else { - exec("php ".substr(__DIR__,0,-12)."worker.php start"); + if (substr(php_uname(), 0, 7) == "Windows") { + $WshShell = new COM("WScript.Shell"); + $oExec = $WshShell->Run("cmd /C php ".substr(__DIR__,0,-12)."\worker.php start", 0, false); + } else { + exec("php ".substr(__DIR__,0,-12)."worker.php start"); + } + $err_msg = $lang['wibot2']; + $err_lvl = 1; + usleep(80000); + $logoutput = getlog($logpath,$number_lines,$filters); } - $err_msg = $lang['wibot2']; - $err_lvl = 1; - usleep(80000); - $logoutput = getlog($logpath,$number_lines,$filters); } if (isset($_POST['stop']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) { @@ -145,16 +149,20 @@ if (isset($_POST['stop']) && $_SESSION['username'] == $webuser && $_SESSION['pas } if (isset($_POST['restart']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) { - if (substr(php_uname(), 0, 7) == "Windows") { - $WshShell = new COM("WScript.Shell"); - $oExec = $WshShell->Run("cmd /C php ".substr(__DIR__,0,-12)."\worker.php restart", 0, false); + if(substr(sprintf('%o', fileperms($logpath)), -3, 1)!='7') { + $err_msg = "!!!! Logs folder is not writable !!!!
Cancel restart request!"; $err_lvl = 3; } else { - exec("php ".substr(__DIR__,0,-12)."worker.php restart"); + if (substr(php_uname(), 0, 7) == "Windows") { + $WshShell = new COM("WScript.Shell"); + $oExec = $WshShell->Run("cmd /C php ".substr(__DIR__,0,-12)."\worker.php restart", 0, false); + } else { + exec("php ".substr(__DIR__,0,-12)."worker.php restart"); + } + $err_msg = $lang['wibot3']; + $err_lvl = 1; + usleep(80000); + $logoutput = getlog($logpath,$number_lines,$filters); } - $err_msg = $lang['wibot3']; - $err_lvl = 1; - usleep(80000); - $logoutput = getlog($logpath,$number_lines,$filters); } $disabled = ''; diff --git a/webinterface/msg.php b/webinterface/msg.php index 42fc298..eff038f 100644 --- a/webinterface/msg.php +++ b/webinterface/msg.php @@ -48,8 +48,8 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p $nextupinfomsg1 = addslashes($_POST['nextupinfomsg1']); $nextupinfomsg2 = addslashes($_POST['nextupinfomsg2']); $nextupinfomsg3 = addslashes($_POST['nextupinfomsg3']); + $nextupinfo = $_POST['nextupinfo']; if (isset($_POST['msgtouser'])) $msgtouser = 1; else $msgtouser = 0; - if (isset($_POST['nextupinfo'])) $nextupinfo = 1; else $nextupinfo = 0; if ($mysqlcon->exec("UPDATE $dbname.config set msgtouser='$msgtouser',rankupmsg='$rankupmsg',servernews='$servernews',nextupinfo='$nextupinfo',nextupinfomsg1='$nextupinfomsg1',nextupinfomsg2='$nextupinfomsg2',nextupinfomsg3='$nextupinfomsg3'") === false) { $err_msg = print_r($mysqlcon->errorInfo(), true); $err_lvl = 3; @@ -112,11 +112,13 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
- '; - } else { - echo ''; - } ?> +
diff --git a/worker.php b/worker.php index 23b90aa..327c518 100644 --- a/worker.php +++ b/worker.php @@ -66,6 +66,13 @@ function checkProcess($pid = null) { } function start() { + global $logpath; + if(substr(sprintf('%o', fileperms($logpath)), -3, 1)!='7') { + echo "\n !!!! Logs folder is not writable !!!!\n\n"; + echo " Cancel start request...\n\n"; + exit; + } + if (substr(php_uname(), 0, 7) == "Windows") { if (checkProcess() == FALSE) { echo "Starting the Ranksystem Bot.";