|
Posted by Connector5 on 12/21/05 17:50
switch ($group)
{
case '1':
$mintime = 15;
$maxtime = 18;
break;
case '2':
$mintime = 18;
$maxtime = 20;
break;
default:
$mintime = 0;
$maxtime = 0;
}
if (max($mintime, $maxtime) > 0)
{
$curdate = getdate();
if (($curdate['hours'] >= $mintime) && ($curdate['hours'] <= $maxtime))
{
// allow login
}
else
{
// reject login
}
}
else
{
// Reject login.
}
"Maurice Newton" <maurice@cfl.rr.com> wrote in message
news:zedqf.39889$8d.4836@tornado.tampabay.rr.com...
> I need to write a login script that will allow access to a web page for 2
> user groups:
> Group 1: Can access web page from 3 PM - 6 PM
> Group 2: Can access web page from 6 PM - 8 PM
>
> Database = MySQL
>
> Any ideas? Thanks
>
>
Navigation:
[Reply to this message]
|