pahabol ko nga pala..
eto yung file structures
//format
//for users
//username User-Password == "password", Simultaneous-Use +=1, Expiration := "Mmm dd yyyy"
//for captiveportal.db
//accesstime,userid,ipaddress,macaddress,username ...
users_1 = explode(users,",")
users_2 = explode(users_1,":=")
date_of_expiration = users_2[x][1]
captiveporatal.db[x][1] = userid
now yung loop of comparition will be;
loop at the users database then check the Expiration compares with the current date
if date_of_expiration >= today //any function to extract today date into "Mmm dd yyyy" format will do.
then disconnect the client