03.10.2012, 11:27
you should use timestamp for this.
instead of saving the data, save the timestamp
instead of saving the data, save the timestamp
Код:
expiretimestamp = gettime() + TOTAL DAYS HE WILL BE VIP * 24 * 60 * 60; // remove the TOTAL DAYS HE WILL BE VIP to the days he will be vip. // save expiretimestamp into the dini as 'vipdate'
Код:
// For exampe at every login you use this: if(dini_Int(path,"vipdate") < gettime()) { // expired }