There is a little bug in here
At least if you want this to work 6.4.
Change this
[]
if (!$user['U_Status']) {
$userob = new user;
$user = $userob -> authenticate();
$Status = $user['U_Status'];
}
[/]
to this:
[]
if (!$user['U_Status']) {
$userob = new user;
$user = $userob -> authenticate();
}
$Status = $user['U_Status'];
[/]
Since the the next if statement depends on $Status.