version 1.83, 2013/11/28 02:23:25
|
version 1.85, 2014/05/20 20:40:46
|
Line 36 use LONCAPA;
|
Line 36 use LONCAPA;
|
use Apache::Constants qw(:common :http REDIRECT); |
use Apache::Constants qw(:common :http REDIRECT); |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::loncommon(); |
use Apache::loncommon(); |
|
use Apache::lonlocal; |
use HTML::TokeParser; |
use HTML::TokeParser; |
use GDBM_File; |
use GDBM_File; |
|
|
Line 404 sub handler {
|
Line 405 sub handler {
|
if ($direction eq 'back') { |
if ($direction eq 'back') { |
&Apache::lonnet::linklog($redirecturl,$currenturl); |
&Apache::lonnet::linklog($redirecturl,$currenturl); |
} |
} |
# ------------------------------------------------- Check for critical messages |
# ------------------------------------- Check for and display critical messages |
if ((time-$env{'user.criticalcheck.time'})>300) { |
my ($redirect, $url) = &Apache::loncommon::critical_redirect(300); |
my @what=&Apache::lonnet::dump |
unless ($redirect) { |
('critical',$env{'user.domain'}, |
$url=&Apache::lonnet::absolute_url().$redirecturl; |
$env{'user.name'}); |
$url = &add_get_param($url, { 'symb' => $redirectsymb}); |
if ($what[0]) { |
} |
if (($what[0] ne 'con_lost') && |
|
($what[0]!~/^error\:/)) { |
|
$redirecturl='/adm/email?critical=display'; |
|
$redirectsymb=''; |
|
} |
|
} |
|
&Apache::lonnet::appenv({'user.criticalcheck.time'=>time}); |
|
} |
|
|
|
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
my $url=&Apache::lonnet::absolute_url().$redirecturl; |
|
$url = &add_get_param($url, { 'symb' => $redirectsymb}); |
|
$r->header_out(Location => $url); |
$r->header_out(Location => $url); |
return REDIRECT; |
return REDIRECT; |
} else { |
} else { |