I use openwebmail for access to my home network, as do a few others. In
the openwebmail-main.pl file, the logout function will redirect users BACK
to the login page. I want to edit that to http://some.where.else.
Is this as simple as changing
my $temphtml = startform(-action=>"$config{'ow_cgiurl'}/openwebmail.pl")
to my $temphtml = startform(-action=>"a href="http://somewhere.else"")
or something along those lines?
The logout sub is below.
#################### LOGOUT ########################
sub logout {
openwebmailerror("Session ID $lang_err{'has_illegal_chars'}") unless
(($thissession =~ /^(.+?\-\d?\.\d+)$/) && ($thissession = $1));
$thissession =~ s/\///g; # just in case someone gets tricky ...
unlink "$config{'ow_etcdir'}/sessions/$thissession";
writelog("logout - $thissession");
writehistory("logout - $thissession");
printheader();
my $html = '';
open (LOGINOUT,
"$config{'ow_etcdir'}/templates/$prefs{'language'}/logout.template") or
openwebmailerror("$lang_err{'couldnt_open'}
$config{'ow_etcdir'}/templates/$prefs{'language'}/logout.template!");
while (<LOGINOUT>) {
$html .= $_;
}
close (LOGINOUT);
$html = applystyle($html);
my $temphtml =
startform(-action=>"$config{'ow_cgiurl'}/openwebmail.pl") .
submit("$lang_text{'continue'}").
" ".
button(-name=>"exit",
-value=>$lang_text{'exit'},
-onclick=>'window.close();',
-override=>'1').
end_form();
$html =~ s/\@\@\@BUTTONS\@\@\@/$temphtml/;
print $html;
printfooter();
}
KeN
_____________________________________
http://quantifier.org GnuPG: 7C828670
2:30pm up 8 days, 22:15
Your aim is high and to the right.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]