version 1.29, 2002/05/06 14:20:27
|
version 1.32, 2002/09/14 05:45:45
|
Line 103 sub success {
|
Line 103 sub success {
|
if (($httpbrowser=~/mac/i) || |
if (($httpbrowser=~/mac/i) || |
($httpbrowser=~/powerpc/i)) { $clientos='mac'; } |
($httpbrowser=~/powerpc/i)) { $clientos='mac'; } |
if ($httpbrowser=~/win/i) { $clientos='win'; } |
if ($httpbrowser=~/win/i) { $clientos='win'; } |
|
if ($httpbrowser=~/embed/i) { $clientos='pda'; } |
|
|
# ------------------------------------------------------------- Get environment |
# ------------------------------------------------------------- Get environment |
|
|
my $userenv=Apache::lonnet::reply("dump:$domain:$username:environment", |
my $userenv; |
$authhost); |
my %userenv=Apache::lonnet::dump('environment',$domain,$username); |
if (($userenv eq 'con_lost') || |
my ($tmp) = keys(%userenv); |
($userenv =~ /^error\:/)) { |
if ($tmp !~ /^(con_lost|error|no_such_host)/i) { |
$userenv=''; |
foreach my $key (keys(%userenv)) { |
} |
$userenv.="environment.$key=$userenv{$key}\n"; |
$userenv=~s/\&/\nenvironment\./g; |
} |
if ($userenv ne '') { |
|
$userenv='environment.'.$userenv; |
|
} |
} |
# --------------------------------------------------------- Write first profile |
# --------------------------------------------------------- Write first profile |
|
|
Line 162 sub success {
|
Line 161 sub success {
|
|
|
$cookie="lonID=$cookie; path=/"; |
$cookie="lonID=$cookie; path=/"; |
# -------------------------------------------------------- Menu script and info |
# -------------------------------------------------------- Menu script and info |
my $windowinfo=&Apache::lonmenu::open(); |
my $windowinfo=&Apache::lonmenu::open($clientos); |
# ------------------------------------------------------------- Info for Remote |
# ------------------------------------------------------------- Info for Remote |
my $configmenu=&Apache::lonmenu::rawconfig($r); |
my $configmenu=&Apache::lonmenu::rawconfig($r); |
# ------------------------------------------------- Output for successful login |
# ------------------------------------------------- Output for successful login |
Line 185 function checkdef() {
|
Line 184 function checkdef() {
|
} |
} |
|
|
// ---------------------------------------------------------- The wait function |
// ---------------------------------------------------------- The wait function |
|
var canceltim; |
function wait() { |
function wait() { |
if ((menuloaded==1) || (tim==1)) { |
if ((menuloaded==1) || (tim==1)) { |
if (tim==0) { |
if (tim==0) { |