Added function to test if an account is expired or not

This commit is contained in:
jengo 2001-06-10 09:43:11 +00:00
parent d1ed14ae63
commit d1eaa5b619

View File

@ -46,6 +46,18 @@
}
}
function is_expired()
{
if ($this->data['expires'] != -1 && $this->data['expires'] < time())
{
return True;
}
else
{
return False;
}
}
function read()
{
if (count($this->data) == 0)