version 1.34, 2005/04/07 06:56:21
|
version 1.35, 2005/05/25 22:31:51
|
Line 92 my $id = $ENV{'QUERY_STRING'};
|
Line 92 my $id = $ENV{'QUERY_STRING'};
|
# usage: &get_env($name,$default) |
# usage: &get_env($name,$default) |
sub get_env { |
sub get_env { |
my $key = 'cgi.'.$id.'.'.(shift()); |
my $key = 'cgi.'.$id.'.'.(shift()); |
return shift if (! exists($env{$key})); |
return shift if (! exists($Apache::lonnet::env{$key})); |
return $env{$key}; |
return $Apache::lonnet::env{$key}; |
} |
} |
|
|
if (! &LONCAPA::loncgi::check_cookie_and_load_env()) { |
if (! &LONCAPA::loncgi::check_cookie_and_load_env()) { |