XFileSharing Pro - Premim User Auto expire

Message
Author
mx
Posts: 8
Joined: Feb 04, 2008 4:39 pm

Premim User Auto expire

#1 Postby mx » Sep 09, 2008 7:28 am

I need to automate access to the site with all customers receiving an initially free 30 day-period of use, which must expire or be renewed at the end of the 30 days period. I need to create the premium user account ahead of time for each user whose account initially expires after a set period of time, such as 30 days. The account is activated upon first login, which starts the expiration clock, rather than from the time of creation. The point is to prepare several accounts ahead of time whose access information can be given to the customer for later use. The account needs to initially expire at 30 days after first use, at which time the customer has the option of purchasing more time or closing the account. By doing so, I can automate the distribution of time-limited accounts. There are no anonymous or non-premium accounts on the server.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Sep 10, 2008 6:59 am

To initially add 30 premium days do next hack: in index.cgi find

Code: Select all

usr_password=ENCODE(?,?),
and add the line below:

Code: Select all

usr_premium_expire=NOW()+INTERVAL 30 DAY,