version 1.42, 2011/06/13 17:41:01
|
version 1.42.2.2.2.3, 2012/02/10 19:20:29
|
Line 89 sub handler {
|
Line 89 sub handler {
|
return OK if $r->header_only; |
return OK if $r->header_only; |
# -------------------------------------------------------- Menu script and info |
# -------------------------------------------------------- Menu script and info |
|
|
|
my $windowinfo=&Apache::lonmenu::close(); |
|
$windowinfo.=&Apache::lonnavmaps::close(); |
# ---------------------------------------------------------------- Get handover |
# ---------------------------------------------------------------- Get handover |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['handover']); |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['handover']); |
my $switch=''; |
my $switch=''; |
Line 101 sub handler {
|
Line 103 sub handler {
|
$switch); |
$switch); |
} else { |
} else { |
$start_page=&Apache::loncommon::start_page('Logged Out',undef, |
$start_page=&Apache::loncommon::start_page('Logged Out',undef, |
{'no_nav_bar' => 1,}); |
{'no_inline_link' => 1, |
|
'no_nav_bar' => 1,}); |
|
|
$relogmessage.='<h1>'.&mt('Goodbye').'</h1>' |
$relogmessage.='<h1>'.&mt('Goodbye').'</h1>' |
.'<p>'.&mt('Thank you for using LON-CAPA.').'</p>'; |
.'<p>'.&mt('Thank you for using LON-CAPA.').'</p>'; |
Line 117 sub handler {
|
Line 120 sub handler {
|
$login_url = $domdefaults{'portal_def'}; |
$login_url = $domdefaults{'portal_def'}; |
} else { |
} else { |
my $checkloginvia = 1; |
my $checkloginvia = 1; |
my ($lonhost,$server,$path) = |
my ($lonhost,$server,$path,$isredirect) = |
&Apache::lonnet::choose_server($domain,$checkloginvia); |
&Apache::lonnet::choose_server($domain,$checkloginvia); |
if ($server && $lonhost) { |
if ($server && $lonhost) { |
$login_url = $Apache::lonnet::protocol{$lonhost}. |
$login_url = $Apache::lonnet::protocol{$lonhost}. |
'://'.$server.$path; |
'://'.$server.$path; |
|
if (($path eq '') && (!$isredirect)) { |
|
my $serverhomeID = |
|
&Apache::lonnet::get_server_homeID($lonhost); |
|
my $serverhomedom = |
|
&Apache::lonnet::host_domain($serverhomeID); |
|
if ($serverhomedom ne $domain) { |
|
$path = '/adm/login'; |
|
$login_url .= $path; |
|
} |
|
} |
|
if ($path eq '/adm/login' && $domain ne '') { |
|
$login_url .= '?domain='.$domain; |
|
} |
} |
} |
} |
} |
} |
} |
Line 142 sub handler {
|
Line 158 sub handler {
|
Due to security reasons in new web browsers a window could only be closed with java script, if this window has also been opend with javascript. This is not done here which means that in most cases the close link will not work. Unless we find another solution, this link should not be offered. (Stefan Bisitz, 2008-08-01) |
Due to security reasons in new web browsers a window could only be closed with java script, if this window has also been opend with javascript. This is not done here which means that in most cases the close link will not work. Unless we find another solution, this link should not be offered. (Stefan Bisitz, 2008-08-01) |
|
|
=cut |
=cut |
|
|
$relogmessage.='<p>'.&mt('[_1]Log in again[_2]' |
$relogmessage.='<p>'.&mt('[_1]Log in again[_2]' |
,'<a href="'.$login_url.'">','</a>') |
,'<a href="'.$login_url.'">','</a>') |
|
.(' 'x6).&mt('[_1]Return to course information page[_2]' |
|
,'<a href="http://relate.mit.edu/physicscourse">' |
|
,'</a>') |
.'</p>'; |
.'</p>'; |
} |
} |
if ($env{'request.sso.login'} |
if ($env{'request.sso.login'} |
Line 162 Due to security reasons in new web brows
|
Line 182 Due to security reasons in new web brows
|
# --------------------------------------------------------------- Screen Output |
# --------------------------------------------------------------- Screen Output |
$r->print(<<ENDDOCUMENT); |
$r->print(<<ENDDOCUMENT); |
$start_page |
$start_page |
|
$windowinfo |
$relogmessage |
$relogmessage |
$end_page |
$end_page |
ENDDOCUMENT |
ENDDOCUMENT |