| View previous topic :: View next topic |
| Author |
Message |
mx
Joined: 04 Feb 2008 Posts: 8
|
Posted: Sep 09, 2008 7:28 am Post subject: 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. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1055 Location: Undisclosed location
|
Posted: Sep 10, 2008 6:59 am Post subject: |
|
|
To initially add 30 premium days do next hack: in index.cgi find
| Code: | | usr_password=ENCODE(?,?), |
and add the line below:
| Code: | | usr_premium_expire=NOW()+INTERVAL 30 DAY, |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|