XFileSharing Pro - Premium Auto-Set

Message
Author
djones
Posts: 13
Joined: Jun 20, 2008 3:34 am

Premium Auto-Set

#1 Postby djones » Jun 07, 2011 5:21 pm

I would like new users to be automatically set-up as premium. Is there a CGI setting to change or perhaps just a way to add a date which activates this premium account when a user signs up.

admin
Site Admin
Posts: 1808
Joined: Mar 22, 2006 12:32 pm

#2 Postby admin » Jun 08, 2011 1:18 pm

You need to edit mysql insert query in function RegisterSave in index.cgi. You need to set usr_adm field to 1 there.

djones
Posts: 13
Joined: Jun 20, 2008 3:34 am

Thanx

#3 Postby djones » Jun 09, 2011 6:27 am

Thanx for your help

admin
Site Admin
Posts: 1808
Joined: Mar 22, 2006 12:32 pm

#4 Postby admin » Jun 09, 2011 6:37 am

I actually gave you wrong info :) this field is for admin flag.
In order to set user premium - you need to set usr_premium_expire field there.


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests