On Friday 03 January 2003 01:49, [EMAIL PROTECTED] wrote:

> Thanks a lot for fixing the problem in Vadmin (re: expiration date). I
> really appreciate your help and help of all the SM list users.
>
> There is a small typo here:
>
> Edit getuser.mod, Line 33
>
> To:
>
>   if ($user_ary[10]!="-") $ExpiryTime=intval(($user_ary[10] -
> time())/(60*60*24));
>
> It should say:
>
>   if ($user_ary[10]!="-") $ExpiryTime=intval(($user_ary[10] -
> time()/(60*60*24));

But that would result in a parse error because you have unbalanced 
parantheses.

Anyway my original is correct (it works for me!). 

$user_ary[10] contains the unix timestamp of the expiry date, thus you need to 
subtract the current time then divide the result by 86400 to get the number 
of days until it expires.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
A diva who specializes in risque arias is an off-coloratura soprano.
*/



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to