version 1.57, 2021/08/10 15:28:13
|
version 1.60, 2022/06/18 02:10:18
|
Line 97 sub flush_course_logs {
|
Line 97 sub flush_course_logs {
|
|
|
sub handler { |
sub handler { |
my ($r) = @_; |
my ($r) = @_; |
|
|
my $handle=&init_env($r); |
my $handle=&init_env($r); |
if (!defined($handle)) { return FORBIDDEN; } |
if (!defined($handle)) { return FORBIDDEN; } |
|
|
Line 294 sub handler {
|
Line 294 sub handler {
|
my $ssologoutscript = ''; |
my $ssologoutscript = ''; |
if ($env{'request.sso.login'}) { |
if ($env{'request.sso.login'}) { |
$info{'sso.login'} = $env{'request.sso.login'}; |
$info{'sso.login'} = $env{'request.sso.login'}; |
my $dom = $env{'user.domain'}; |
|
if (defined($r->dir_config("lonSSOUserLogoutScriptFile_$info{domain}"))) { |
if (defined($r->dir_config("lonSSOUserLogoutScriptFile_$info{domain}"))) { |
if (open(my $fh,'<',$r->dir_config("lonSSOUserLogoutScriptFile_$info{domain}"))) { |
if (open(my $fh,'<',$r->dir_config("lonSSOUserLogoutScriptFile_$info{domain}"))) { |
$ssologoutscript .= join('',<$fh>); |
$ssologoutscript .= join('',<$fh>); |
close($fh); |
close($fh); |
} |
} |
} |
} |
if ($env{'request.sso.login'} |
if (defined($r->dir_config('lonSSOUserLogoutScriptFile'))) { |
&& defined($r->dir_config('lonSSOUserLogoutScriptFile'))) { |
|
if (open(my $fh,'<',$r->dir_config('lonSSOUserLogoutScriptFile'))) { |
if (open(my $fh,'<',$r->dir_config('lonSSOUserLogoutScriptFile'))) { |
$ssologoutscript .= join('',<$fh>); |
$ssologoutscript .= join('',<$fh>); |
close($fh); |
close($fh); |
Line 314 sub handler {
|
Line 312 sub handler {
|
} |
} |
if ($env{'request.linkprot'}) { |
if ($env{'request.linkprot'}) { |
$info{'linkprot'} = $env{'request.linkprot'}; |
$info{'linkprot'} = $env{'request.linkprot'}; |
} elsif ($env{'request.linkkey'}) { |
if ($env{'request.linkprotuser'}) { |
|
$info{'linkprotuser'} = $env{'request.linkprotuser'}; |
|
} |
|
} elsif ($env{'request.linkkey'} ne '') { |
$info{'linkkey'} = $env{'request.linkkey'}; |
$info{'linkkey'} = $env{'request.linkkey'}; |
} |
} |
if ($env{'request.deeplink.login'}) { |
if ($env{'request.deeplink.login'}) { |