Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Stefan1200

Pages: 1 2 [3] 4 5 6
31
Since the next version 6.1.3 needs some more days to get released, I want to write down the next JTS3ServerMod changes for my donators.

As you can see at the version number, it will be no big jump, but some of you might be very happy with version 6.1.3. Here is the current changelog:

Version 6.1.3 (??.04.2016)
Code: [Select]
! Plugin API build is now 2, check out the new plugin API documentation.
  API changes:
  HandleTS3Events: Renamed handleClientEvents to handleTS3Events
  JTS3ServerMod_Interface: Changed parameter type from getClientListEntry(String clientID) to getClientListEntry(int clientID)
  API add:
  JTS3ServerMod_Interface: removeClientListEntry(int clientID)
  JTS3ServerMod_Interface: setChannelName(int channelID , String newName)
  JTS3ServerMod_Interface: removeChannelListEntry(int channelID)
+ New JTS3ServerMod config value bot_timezone to set the timezone of a bot.
  By default, the default timezone of the operating system will be used (like older JTS3ServerMod versions).
+ Added a new chat command findrule for BadChannelNameCheck and BadNicknameCheck.
  This allows you to find all matching regex rules for a name, good for testing if a regex rule is working (or not :)).
+ JTS3ServerMod start argument -versioncheck has different exit codes now. Very useful for an JTS3ServerMod update check in shell scripts.
  Exit code list:
  -1 = Error while requesting version information from www.stefan1200.de
   0 = No update available
   1 = New stable version is available
   2 = New development version is available
- Bugfix at Bad Channel Name Check: If more than one regex rule is matching a channel name at the same time,
                                    multiple error messages will be written into the bot log (invalid channelID / invalid clientID). (thx to Alexander S.)
o Changed the output of the chat command !botversioncheck a little bit.

Web Interface 3.0 Build 3019 (??.04.2016)
Code: [Select]
+ Complete redesign of the web interface settings.
+ You can set the timezone of the web interface now. By default, the timezone of the PHP installation will be used (like in older versions).

Current ETA: Sunday evening (CEST) 30. April / 1. May

32
JTS3ServerMod MySQL & WebInterface / Old PHP versions?
« on: April 16, 2016, 11:47:36 AM »
I know that one person is using PHP 5.2, which would be okay for me to implement a small new feature.

But is someone using PHP 5.0 or 5.1? Because the web interface build 3019 will require at least PHP version 5.2. Since PHP 5.0 and 5.1 are already out of support for 10 years now, it should be the time to update your web server now!

33
FAQ / How To ... / Change the timezone of the web interface
« on: April 16, 2016, 09:28:02 AM »
*** English ***
You noticed, that the web interface use a different timezone, as your server? Or your server has to be in a different timezone than your web interface?

Just open the php.ini file of your web server and look at the value of date.timezone. Change this to a timezone you want, valid values can be found there: http://php.net/manual/en/timezones.php

You can change the timezone also in the settings of the Web Interface build 3019 and newer.


*** German ***
Du hast festgestellt, dass das Web Interface eine andere Zeitzone verwendet, als der Server? Oder der Server muss eine andere Zeitzone verwenden, als das Web Interface?

Öffne die php.ini Datei von deinem Web Server und schaue auf den Wert von date.timezone.  Ändere dies in eine Zeitzone, die du haben möchtest. Gültige Werte sind dort aufgelistet: http://php.net/manual/de/timezones.php

Die Zeitzone kann auch in den Einstellungen vom Web Interface build 3019 oder neuer geändert werden.

34
This information are only valid for the JTS3ServerMod Hosting Edition up to version 6.5.7!


What is the Licence Key?
The Licence Key is unique for every person and is created with your email address. You need this Licence Key to start the JTS3ServerMod Hosting Edition since version 6.0.


Where I get my personal Licence Key?
Just visit this page, after you visit this forum: https://www.stefan1200.de/licencemanagement/
On this page you can also see all started JTS3ServerMod instances with your Licence Key. You can also see the maximum allowed amount of running JTS3ServerMod instances with your Licence Key.


How many bots I can start with my Licence Key?
This is only limited to your system memory, CPU power and the disk space of your database. If you have a very powerful machine, you can run many thousands of bots (which can connect even to different TS3 servers) on it using a single JTS3ServerMod process.


My Licence Key is limited to X installations. What does that mean?
Depends on the amount of your donation, you can only run up to X JTS3ServerMod processes at the same time. But this do not limit the amount of bots (see last question above), because a single JTS3ServerMod process can run multiple bots at the same time.


Which connections are needed for the Licence Check of the JTS3ServerMod?
Just a TCP HTTPS connection to www.stefan1200.de (default HTTPS port).


What happens if the connection to www.stefan1200.de is not possible?
If this happens while you start the JTS3ServerMod Hosting Edition, the JTS3ServerMod will not start. Just check if you can reach the Licence Management with your browser. If this is possible, it is maybe an issue with your firewall settings. Feel free to contact me by email, if you have also problems to open the Licence Management with your browser.

The JTS3ServerMod also checks every 4 hours if the Licence Key is still valid. If this connection is not possible, the JTS3ServerMod tries again 4 hours later without stopping. If to many sequential validations are not possible, the JTS3ServerMod stops.


While the JTS3ServerMod checks the Licence Key, what data will be transmitted to you?
The JTS3ServerMod transmits the JTS3ServerMod build number, the Licence Key and a hashed installation token to identify the installation. No passwords or any other stuff will be transferred to my server. This is needed to check, if you have a valid licence. The IP address of the TCP source will be saved to this JTS3ServerMod installation token. But no information will be forwarded to other companies or persons. The connection to my web site is secured by HTTPS using TLS encryption.

35
FAQ / How To ... / Web Interface can't send mails (Linux)
« on: March 19, 2016, 01:12:23 PM »
The JTS3ServerMod Web Interface is using the PHP mail function to send mails, if someone registered to the Web Interface or used the resend password function. PHP itself requires an SMTP client to send a mail. In most cases a fully configured web server should have this.

If you don't have a mail server installed, you could install a full-featured mail transfer agent (MTA) like Postfix to serve this function. But it's overkill if you only need to send mail through PHP, instead just install msmtp. It's lightweight and much simpler to configure.


Install msmtp
Install the packages msmtp and ca-certificates
Example on Debian:
Code: [Select]
apt-get install msmtp ca-certificates

Configure msmtp
Create a new configuration file at /etc/msmtprc with the following configuration information:
Code: [Select]
# Set default values for all following accounts.
defaults

# Enable or disable TLS/SSL encryption.
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

# Set up a default account's settings.
account default
host <smtp.example.net>
port 587
auth on
user <username@example.net>
password <password>
from <address-to-receive-bounces@example.net>
logfile /var/log/msmtp/msmtp.log

You need to put your own configuration information at host/username/password/from, make sure that you removed the brackets as well. For host/username/password, use your normal credentials for sending mail through your mail provider.

Tell PHP to use it, open your php.ini file, might be at /etc/php5/apache2/php.ini
To know the real path, check out the phpinfo() output at: Loaded Configuration File

Add/replace this single line:
Code: [Select]
sendmail_path = /usr/bin/msmtp -t

Set up logging
Code: [Select]
mkdir /var/log/msmtp
chown www-data:adm /var/log/msmtp
nano /etc/logrotate.d/msmtp

Add these lines to the new file:
Code: [Select]
/var/log/msmtp/*.log {
  rotate 12
  monthly
  compress
  missingok
  notifempty
}

If you'd like to be able to view the logs as yourself, you should add yourself to the www-data group.


Full msmtp documentation: http://msmtp.sourceforge.net/documentation.html

36
General Discussions / Exception Error Notification using Poke/Chat
« on: February 29, 2016, 09:52:37 AM »
To all Teamspeak 3 hosters out there:
By default a normal TS3 server admin has the permission b_virtualserver_start.
Does your customers have the permission b_virtualserver_start too, or do you remove this permission from the server admin group?


*** German ***
An alle Teamspeak 3 Hoster da draußen:
Normalerweise hat ein normaler TS3 Server Admin das Recht b_virtualserver_start gesetzt.
Haben eure Kunden das Recht b_virtualserver_start auch gesetzt, oder entfernt ihr das von der Server Admin Gruppe?

37
The JTS3ServerMod itself allows to set a different MySQL port. The current version of the Web Interface just use the default MySQL port, which is set at the MySQLi module in the php.ini, value name: mysqli.default_port

If you can't change that value (maybe it's not your web server or you use different MySQL servers for hosted web pages), you can't change that value in the current version of the JTS3ServerMod Web Interface. But you can hard code the MySQL port number by doing a simple change to two PHP files.

Open the file class/dbconnect.php, line 22
Code: [Select]
$this->link = mysqli_connect($config[1], $config[2], $config[3], $config[4]);change to (example port 3307)
Code: [Select]
$this->link = mysqli_connect($config[1], $config[2], $config[3], $config[4], 3307);
Open the file install.php, line 230
Code: [Select]
$dblink = mysqli_connect($_POST['mysqlhost'], $_POST['mysqluser'], $_POST['mysqlpassword'], $_POST['mysqldatabase']);change to (example port 3307)
Code: [Select]
$dblink = mysqli_connect($_POST['mysqlhost'], $_POST['mysqluser'], $_POST['mysqlpassword'], $_POST['mysqldatabase'], 3307);
After doing this two changes, just start the installation of the Web Interface using the install.php file. The line number might change in future versions, just make sure to find the mysqli_connect line. Make sure to redo this changes, if you update this files of the Web Interface in the future.

If more people write to me, that they need this option implemented by default, I can add this. But I think this manual change is quite easy and the 1 or 2 people, who don't use the default MySQL port, can do it.

38
FAQ / How To ... / Unblock / Unban Web Interface account
« on: January 24, 2016, 08:34:10 PM »
Open the MySQL database of the web interface with your MySQL Administration Tool (like PHPMyAdmin) and open the jts3servermodwebui_users table. Now search for the blocked user account. At the blocked user account just set the column logintrycount to 0. Now the user can login again (of course, only with the right password this time :) ).

39
Update:
  • Since version 6.0 the Hosting Edition of the JTS3ServerMod needs a licence key. You can find more information at the download link.
  • Seit der Version 6.0 benötigt die Hosting Edition vom JTS3ServerMod einen Lizenzschlüssel. Weitere Informationen sind beim Download Link zu finden.



*** English ***
Today I got the information and a proof, that the current JTS3ServerMod Hosting Edition from 27. December 2015 was released in an illegal underground board. Everyone knows that this is not allowed!

Now there are two possibilities:
  • The person who did this, write a private message or e-mail to me. Nothing will happen to other users.
  • If no one sends me a message in the next 7 days, I remove the access to the Hosting Edition (and forum) from all persons who downloaded the Hosting Editions since the 27. December 2015 and 7. January 2016. All affected persons can request a personal Hosting Edition version, which is trackable for me!

I don't like this, but I hate to get pranked!



*** Deutsch ***
Heute habe ich Informationen und einen Beweis erhalten, dass die JTS3ServerMod Hosting Edition vom 27. Dezember 2015 in einem illegalen Untergrund Board herunterladbar ist. Jeder hier weiß, dass dies nicht erlaubt ist.

Nun gibt es zwei Möglichkeiten:
  • Die Person, die dafür verantwortlich ist, meldet sich bei mir (Privatnachricht oder E-Mail). Dann passiert mit allen anderen Anwendern nichts.
  • Wenn ich keine Rückmeldung hierzu in den nächsten 7 Tagen erhalte, werde ich allen Personen den Zugriff zum Forum und der Hosting Edition sperren, die diesen zwischen dem 27. Dezember 2015 und dem 7. Januar 2016 heruntergeladen haben. Alle betroffene Personen können dann eine personalisierte Hosting Edition bei mir anfordern, die für mich zurück verfolgbar ist.

I mag diesen Schritt nicht, aber ich hasse es verarscht zu werden!

40
Allgemeine Diskussionen / Mehr Sicherheit auf www.stefan1200.de
« on: November 29, 2015, 02:40:39 PM »
Meine Webseite nutzt nun seit 30 Stunden eine mit HTTPS gesicherte Verbindung. Beim Besuch des Forums wird die HTTPS Verbindung sogar vom Webserver erzwungen. Ungesicherte HTTP Forum Links werden nun umgeleitet auf das gesicherte HTTPS Forum. Alle Links zu meiner Webseite in bereits bestehenden Forum Beiträgen wurden aktualisiert mit den HTTPS Links. Dies gibt allen Forum Accounts mehr Sicherheit, insbesondere wenn meine Webseite in einem öffentlichen Netzwerk besucht wird.

Da es nur ein Klasse 1 Zertifikat ist, zeigen nicht alle Browser ein geschlossenes Schloss in der Adressleiste an. Klickt man aber auf die Verbindungsinformationen der Webseite, sollte eine gültige verschlüsselte Verbindung angezeigt werden. Dies habe ich getestet mit Chrome, Edge und Internet Explorer.

Links zu den ZIP, Bild und Readme Dateien funktionieren mit beiden Methoden, HTTP und HTTPS.

41
General Discussions / More security on www.stefan1200.de
« on: November 29, 2015, 02:32:36 PM »
My website use an encrypted connection using HTTPS since 30 hours now. If you visit my forum, the HTTPS connection is enforced by the web server. Unsecured HTTP forum links will be redirected to the secured HTTPS forum. All links to my web site in existing forum posts was updated with the HTTPS link. This adds more security to your forum account, especially if you visit my website on a public network.

Since it is just a class 1 certificate, some browsers don't show a closed lock at the address bar. But if you click on the details of the web site connection in the browser, it should display a valid encrypted connection! Tested this with Chrome, Edge and Internet Explorer.

Links to the zip, image and readme files will work with both methods, HTTP and HTTPS.

42
FAQ / How To ... / Add another language to the web interface
« on: October 29, 2015, 07:54:10 PM »
All messages are stored in the MySQL database.

First start with this line (correct the values at the end) to add another language (example for Italian):
Code: [Select]
INSERT INTO `jts3servermodwebui_language` (`id`, `name`, `image`, `showLanguage`, `dateCountry`, `dateFormat`) VALUES(3, 'Italiano', 'IT.png', 1, 'it_IT', '%d.%m.%Y %H:%M:%S');
After you did this, every translation in the table jts3servermodwebui_translation needs the language_id = 3 (same id as in the table jts3servermodwebui_language).

In the table jts3servermodwebui_language you can also change the date format for a language (column dateFormat), or just hide this language from the language chooser at the top header of the web interface (column showLanguage).

In the far future I plan to implement a web interface to create a translation for the web interface. But currently this is the only way.
If you want, you can provide an SQL export of the new language for other users in this forum, post it in this board: https://www.stefan1200.de/forum/index.php?board=11.0

43
Some of you might not know, that the JTS3ServerMod also allows to protect the Admin Server Query group using the function Server Group Protection. The only exception: add_missing_groups is not working for query groups (because of security reasons). But the Web Interface is not displaying the query groups, because in most cases it is not useful to display that groups to a customer.

But if you want to allow Web Interface users to select this query server groups, you can enable it by changing one PHP file and fire one SQL command.

Enable Admin Server Query at Server Group Protection

Execute MySQL command
Code: [Select]
UPDATE `jts3servermodwebui_functionpage` SET `options` = 'multiple,showquerytype' WHERE `botfunction_id` = 12 AND `configkey` = '_groups'
Open file include/functions/servergroupprotection.php and find both lines with getServerGroupComboBoxDef and change the last argument from false to true.

include/functions/servergroupprotection.php - Line 33
Code: [Select]
$groupprotInput .= "<tr><td>".getServerGroupComboBoxDef($botid, $class_db, $prefix."_group".$row[0], $row[1], false, true)."</td><td>";
include/functions/servergroupprotection.php - Line 37
Code: [Select]
$groupprotInput .= "<tr><td>".getServerGroupComboBoxDef($botid, $class_db, $prefix."_group_new", $row[1], false, true)."</td><td>";



Disable Admin Server Query at Server Group Protection (default)

Execute MySQL command
Code: [Select]
UPDATE `jts3servermodwebui_functionpage` SET `options` = 'multiple' WHERE `botfunction_id` = 12 AND `configkey` = '_groups'
Open file include/functions/servergroupprotection.php and find both lines with getServerGroupComboBoxDef and change the last argument from true to false.

include/functions/servergroupprotection.php - Line 33
Code: [Select]
$groupprotInput .= "<tr><td>".getServerGroupComboBoxDef($botid, $class_db, $prefix."_group".$row[0], $row[1], false, false)."</td><td>";
include/functions/servergroupprotection.php - Line 37
Code: [Select]
$groupprotInput .= "<tr><td>".getServerGroupComboBoxDef($botid, $class_db, $prefix."_group_new", $row[1], false, false)."</td><td>";

Last updated for Web Interface 3.0 build 3010! On newer or older versions the line numbers may not match.

44
Please give me feedback, do you like the dark theme from web interface build 3010 (included in JTS3ServerMod 5.5.4 release).

Bitte gibt mir Rückmeldung wie euch das dunkle Theme im Web Interface Build 3010 gefällt (ist beim JTS3ServerMod 5.5.4 enthalten).

Bot Settings / Manager - Desktop - Dark Theme
Bot Settings - Away Mover - Desktop - Dark Theme
Settings - Desktop - Dark Theme

45
Important notice: This change have affect to all users of the web interface. Everyone will (not) be able to select the Query Server Groups at the Server Group Protection configuration page!

Execute the following SQL command to the database to allow selection of Query Server Groups at the Server Group Protection configuration page:
Code: [Select]
UPDATE jts3servermodwebui_functionpage SET options = 'multiple,showquerytype' WHERE botfunction_id = 12 AND configkey = '_groups'
To remove this ability just execute the following SQL command:
Code: [Select]
UPDATE jts3servermodwebui_functionpage SET options = 'multiple' WHERE botfunction_id = 12 AND configkey = '_groups'

Pages: 1 2 [3] 4 5 6