Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Redirect if not a User or not logged in

Quote Reply
Redirect if not a User or not logged in
In Modify.pm there is a routine at the very top to check if the user is logged in as follows:

sub handle {
# ---------------------------------------------------
# Determine what to do.
#
my $link_id = $IN->param('LinkID');
if ($CFG->{user_required} and ! $USER) {
print $IN->redirect( Links::redirect_login_url('modify') );
return;
}


If someone is not a user or not logged in, it redirects them to the login page via user.cgi although I cannot find where redirect_login_url is actually located.

Anyway, instead of redirecting them to the login page at user.cgi I want them redirected to a new script that I have called signup.cgi (or to another template name singnup.html) - how can I do this?

Thanks
Subject Author Views Date
Thread Redirect if not a User or not logged in socrates 2560 Nov 3, 2005, 10:11 PM
Thread Re: [socrates] Redirect if not a User or not logged in
Jag 2481 Nov 4, 2005, 2:41 AM
Post Post deleted by socrates
socrates 2449 Nov 4, 2005, 6:14 PM
Post Re: [socrates] Redirect if not a User or not logged in
brewt 2416 Nov 10, 2005, 12:51 PM