[ic] Members Only -4.9.7 mike demo
interchange-users@icdevgroup.org
interchange-users@icdevgroup.org
Thu Jun 12 17:15:01 2003
This code in the PAGE_INIT variable does'nt seem to work properly, it
always bounces to the login page even when members are logged in.
Version 4.9.7 - demotype=mike
[calc]
$Variable->{MV_DHTML_BROWSER} ||= 'MSIE.*[5-9]\..*Windows|Mozilla.
*Gecko|Opera.*[7-9]\.';
$Scratch->{dhtml_browser} =
$Session->{browser} =~ m{$Variable->{MV_DHTML_BROWSER}};
if($Scratch->{members_only}) {
$Scratch->{mv_successpage} = $Tag->var('MV_PAGE', 1);
$Tag->deliver({ location => $Tag->area('login')});
}
return;
[/calc]
I am thinking it should be something like:
if($Scratch->{members_only}) {
$Scratch->{mv_successpage} = $Tag->var('MV_PAGE', 1);
}
else{
$Tag->deliver({ location => $Tag->area('login')});
}
This however causes an error. Any suggestions would be appreciated.
Cheers,
Gary Benson
Geton.com Technologies Inc.
gary@geton.com