|
|
 |
Re: FN-FORUM: password expiry date check
date posted 7th August 2004 13:25
Nevermind, fixed it now. :)
Where's that cork screw.
----- Original Message -----
From: "Darren Yates" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Saturday, August 07, 2004 2:08 PM
Subject: Re: FN-FORUM: password expiry date check
>
> Forgot to say it's php. :)
> Thought I'd said that in the subject line.
>
>
> ----- Original Message -----
> From: "Darren Yates" [EMAIL REMOVED]
> To: [EMAIL REMOVED]
> Sent: Saturday, August 07, 2004 1:55 PM
> Subject: FN-FORUM: password expiry date check
>
>
> >
> > Hi all,
> >
> > Last job for the day before I crack open the wine for the afternoon,
> > and I'm damn thirsty now.
> >
> > So anyone that can be a pal and let me go indulge (note the spelling) :)
> > my alcoholic bent by giving me a push with this little bit of code would
> > be much appreciated.
> >
> > I'm trying to do a simple redirect, if the expiry date >= today
> > I'm a whisker away from getting it working, but it doesn't
> > seem to be doing the simple math it always goes to the 'out-of-date' url
> > no matter what I set the expiry date too.
> >
> > $today = date("d/m/y");
> > $today = explode("/",$today);
> > $my_time = mktime(0,0,0,$today[0],$today[1],$today[2]);
> > $expire = $_GET['Date'];
> > if ($my_time >= $expire)
> > {
> > Header ("Location:out-of-date.php?expire=" . $expire . "");
> > }else{
> > Header ("Location:main.php");
> > }
> >
> > tia,
> >
> > regards,
> >
> > Darren Yates
> > [EMAIL REMOVED]
> > http://dittodesign.co.uk
> > http://www.how-to-make-money-online.info
> >
> >
> >
> > --
> > Freelancers, contractors earn more with Prosperity4
> > Call 0870 870 4414 or visit www.prosperity4.com
> > and benefit from Inland Revenue approved expenses today.
> >
> > To advertise here: http://www.freelancers.net/advertising.html
> >
> >
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|