From d1eaa5b619e04aedc5b4ef3faa11ac1392405d15 Mon Sep 17 00:00:00 2001 From: jengo Date: Sun, 10 Jun 2001 09:43:11 +0000 Subject: [PATCH] Added function to test if an account is expired or not --- phpgwapi/inc/class.accounts_shared.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index 8c3c0a20e6..59f59c68f4 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -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)