Question about maintanence.php

Ideas that are to be implemented eventually; accepted suggestions.
Post Reply
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

I need to change the length of time that players have before they are marked dead for being inactive.
This is the query in maintanence.php:

code: Select all

if(howmanytimes(lasttime('tidying'), $perminutes)) {
    # Delete dead people
    $delusers = mysql_safe_query("SELECT * FROM $playerdb WHERE
(disabled<=1 AND vacation=0 AND
land>0 AND idle<($time-86400*7)) OR
land=0 AND disabled=1 AND
ip!='0.0.0.0' AND idle<($time-86400*3)) OR
(disabled=4);");
Now if I change:
idle<($time-86400*7)

To:
idle<($time-86400*21)

Is that all that is needed? I didn't see anywhere else in the program that had to do with deleting of empires.

User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Yes, that is all. :)
:wq
Turock
Forum Maniac
Posts: 289
Joined: Sat Jan 07, 2006 12:45 am
Contact:

Post by Turock »

Thanks Beatles. I thought that was all but I wanted to ask the masters :)
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

TODO: Make this a config option. (E.g. empires deleted after X days, 0 for infinity.)
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members