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
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