XFileSharing Pro - Premim User Auto expire
Premim User Auto expire
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.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
To initially add 30 premium days do next hack: in index.cgi find
and add the line below:
Code: Select all
usr_password=ENCODE(?,?),
Code: Select all
usr_premium_expire=NOW()+INTERVAL 30 DAY,