Newcomer1989 / TSN-Ranksystem

A PHP Bot that assigns time based server groups on TeamSpeak3.
https://ts-ranksystem.com
GNU General Public License v3.0
144 stars 60 forks source link

TS user & password #162

Closed XnIcRaM closed 8 years ago

XnIcRaM commented 8 years ago

how/where I can change TS username and password for bot?

Newcomer1989 commented 8 years ago

inside the webinterface

XnIcRaM commented 8 years ago

If you have on mind webpage not php file then I can't do that. When I open webinterface then in top left corner I see message "Not Connected To TS3" and I don't know how to get connected

Newcomer1989 commented 8 years ago

This is the stats page, where you are.

Please take attention on our official webpage -> http://ts-n.net/ranksystem.php

How to use: worker.php This file starts and stops the Bot and also scans the Bot is still running (restart it automatically, if crashed). So its like a startscript.

/webinterface/ Here you can config the main core of the TSN Ranksystem and also the style of part of the TSN Ranksystem (especially the list_rankup.php).

/stats/ Some stats about your server and round about the TSN Ranksystem. On this section you find also a list, which shows the nex rankups.

XnIcRaM commented 8 years ago

Maybe I have old version because I don't have file ranksystem.php in main folder are: update_1-00.php, webinterface.php and worker.php

Shad86 commented 8 years ago

Thats right, the new versions from the ts-n ranksystem triggers on ranksystem/webinterface (if you need to login on your "admin" Webinterface)

XnIcRaM commented 8 years ago

Is there a way to update without lost all data, maybe could I replace all files without other/config.php?

Shad86 commented 8 years ago

which version do you have now? r better to say, from which version you try to update

XnIcRaM commented 8 years ago

in mysql db table config I see "currvers 1.00"

Shad86 commented 8 years ago

Hello,

sorry for my late answer.

Then it should be possible to update it, like on the ts-n.net side stands:

  1. Download and unzip "ranksystem x.x.x.zip".
  2. Backup the "other/dbconfig.php" on your websever. We recommend to backup the whole webspace, the TeamSpeak server and also the database!
  3. Stop the sheduler (cron/task) for the worker.php and also stop the Bot (php worker.php stop). Be sure, there is no TSN Ranksystem connected to your TeamSpeak!
  4. Upload the whole unzipped folder to the your webspace and grant permissions to the webuser (i.E. chown -R www-data /var/www/Ranksystem).
  5. Restore the saved "other/dbconfig.php".
  6. Check php-curl is installed on your webserver (linux: apt-get install php-curl)!
  7. Reactivate the sheduler (cron/task) for the worker.php (see installation point 4). 7.4 (Installation crontab) -> 4. Create a cronjob (here described for debian/ubuntu) for the worker to keepalive the TSN Ranksystem Bot: Login in to your server via ssh. Enter the command "crontab -e" (In vim you have to press "i" to be able to edit the text) Paste the following line in a new line (you have to edit the path): */10 * * * * sudo -u www-data php /path/to/your/websever/path/to/Ranksystem/worker.php check >/dev/null 2>&1 If needed Replace www-data with your webuser! If you want, you can edit the interval. Here it is every 10 minutes. Save and quit the crontable.

As an additional hint maybe you need a specific curl version(depends on how you installed it and which php version you are using):

apt-get install php5-curl or apt-get install php7-curl

If you need more information on installation pls visit: http://ts-n.net/ranksystem.php

there are all informations about install and update

regards

Shad86

Newcomer1989 commented 8 years ago

Please take attention for step 2.. For an old version like you have, it is very important to make a backup of all!

Backup the "other/dbconfig.php" on your websever. We recommend to backup the whole webspace, the TeamSpeak server and also the database!