version 1.70, 2005/10/24 21:32:42
|
version 1.73, 2006/01/19 22:14:38
|
Line 40 use Apache::lonnet;
|
Line 40 use Apache::lonnet;
|
use Apache::lonmenu(); |
use Apache::lonmenu(); |
use Fcntl qw(:flock); |
use Fcntl qw(:flock); |
use Apache::lonlocal; |
use Apache::lonlocal; |
|
use POSIX qw(strftime); |
|
|
my %FORM; |
my %FORM; |
|
|
Line 113 sub success {
|
Line 114 sub success {
|
my %userenv=Apache::lonnet::dump('environment',$domain,$username); |
my %userenv=Apache::lonnet::dump('environment',$domain,$username); |
my ($tmp) = keys(%userenv); |
my ($tmp) = keys(%userenv); |
if ($tmp !~ /^(con_lost|error|no_such_host)/i) { |
if ($tmp !~ /^(con_lost|error|no_such_host)/i) { |
|
# default remote control to off |
|
if ($userenv{'remote'} ne 'on') { $userenv{'remote'} = 'off'; } |
foreach my $key (keys(%userenv)) { |
foreach my $key (keys(%userenv)) { |
$userenv.="environment.$key=$userenv{$key}\n"; |
$userenv.="environment.$key=$userenv{$key}\n"; |
} |
} |
Line 152 sub success {
|
Line 155 sub success {
|
print $idf "browser.localpath=$FORM{'localpath'}\n"; |
print $idf "browser.localpath=$FORM{'localpath'}\n"; |
print $idf "browser.localres=$FORM{'localres'}\n"; |
print $idf "browser.localres=$FORM{'localres'}\n"; |
} |
} |
|
print $idf "server.domain=".$r->dir_config('lonDefDomain')."\n"; |
|
my $timezone=POSIX::strftime("%Z",localtime(time)); |
|
print $idf "server.timezone=$timezone\n"; |
print $idf "request.course.fn=\n"; |
print $idf "request.course.fn=\n"; |
print $idf "request.course.uri=\n"; |
print $idf "request.course.uri=\n"; |
print $idf "request.course.sec=\n"; |
print $idf "request.course.sec=\n"; |