![]() |
Alexey admin 3/20/2008 |
Chris, $values["Datecreated"]=date("Y-m-d"); $values["Dateexpiry"]=date("Y-m-d",time()+30243600);
|
C
|
ckapote author 3/20/2008 |
Chris, you can do this with Events. In the BeforeRegisterevent save the dates in the $values array. I.e. Then use BeforeLoginevent to check if account expired or not. Return falsethere if account expired and trueif not.
|
![]() |
Alexey admin 3/20/2008 |
Chris, |
C
|
ckapote author 3/21/2008 |
Chris, unfortunately we don' t have a ready to go solution for this. Inspect this article, you can find some examples there: http://www.xlinesoft.com/articles/system_access_lock.htm
|
J
|
Jane 3/21/2008 |
Chris, $sql = "select expire from tbluser where UserName='".$userdata["UserName"]."'"; echo $sql; $rs = db_query($sql,$conn); $data = db_fetch_array($rs); print_r($data); |
C
|
ckapote author 3/21/2008 |
Chris, make sure that all field names are correct and your query returns value:
|