PHP Scripts (TS3) [Request] **activity / stop server some-else Script**

mkll11one

ServerGeek
VIP
Apr 26, 2016
262
136
157
Hi,

I'm searching after some PHP scripts for TS3 virtual servers (multiple)

Where it needs to check activity, about the virtual server has been used.

If virtual-server don't have been used in 1 week, (aka): it should check from UserDB (Last Visit), if possible?

Example:
Server1 - 20 people have used it.
Script checking Server1 (virtual-server)
Script means, no one has connected to the virtual server after 1 week (via Last Visit on ts3server)
The script will make changes on virtual-server with a "popup window when they connecting": "Your TS3 server don't have been used, we will maybe turn it off after 1 week again"

Script2: After 1 week again (let's say 2 weeks) it will connect to ts3server, and turn off (set virtual-server) just offline (aka stopped) without to delete.

Is this possible? //Tired to checking YATQA 24/7 for a check on UserDB every day.

Sorry for bad English hahaha <3
 

BIOS

Knowledge Seeker
VIP
Oct 10, 2015
447
848
208

use it as cronjob
 

mkll11one

ServerGeek
VIP
Apr 26, 2016
262
136
157

use it as cronjob
Can it check, about virtual-server has been used under/after 1 week e.g?
 

BIOS

Knowledge Seeker
VIP
Oct 10, 2015
447
848
208
i have used it a long time with an cronjob. so it has checked all virtual servers all 2 weeks ans has renamed all afk servers as "Server is AFK"
 

mkll11one

ServerGeek
VIP
Apr 26, 2016
262
136
157
i have used it a long time with an cronjob. so it has checked all virtual servers all 2 weeks ans has renamed all afk servers as "Server is AFK"
So it's actually, checked, and after 2 weeks it will change servername, right? ;) or how? ;) Since I can't see.. how it will "calc" 2 weeks. when I check on the "script" :D
 

BIOS

Knowledge Seeker
VIP
Oct 10, 2015
447
848
208
thats the cronjob for 14 days check. place the afk checker in your webspace

Code:
0 5 */14 * * php -q /path/to/file/php_file.php
 

mkll11one

ServerGeek
VIP
Apr 26, 2016
262
136
157
thats the cronjob for 14 days check. place the afk checker in your webspace

Code:
0 5 */14 * * php -q /path/to/file/php_file.php
Oh cool.

btw @BIOS; is it possible for make it. it's changed servername on virtual-server but too give a message (on connecting with popup) about some text from the script?
 
Top