--- loncom/auth/lonauth.pm 2001/11/29 19:12:44 1.27 +++ loncom/auth/lonauth.pm 2002/05/29 14:51:42 1.31 @@ -1,7 +1,7 @@ # The LearningOnline Network # User Authentication Module # -# $Id: lonauth.pm,v 1.27 2001/11/29 19:12:44 www Exp $ +# $Id: lonauth.pm,v 1.31 2002/05/29 14:51:42 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -103,6 +103,7 @@ sub success { if (($httpbrowser=~/mac/i) || ($httpbrowser=~/powerpc/i)) { $clientos='mac'; } if ($httpbrowser=~/win/i) { $clientos='win'; } + if ($httpbrowser=~/embed/i) { $clientos='pda'; } # ------------------------------------------------------------- Get environment @@ -143,6 +144,7 @@ sub success { $idf->close(); } $ENV{'request.role'}='cm'; + $ENV{'browser.type'}=$clientbrowser; # -------------------------------------------------------------------- Log this &Apache::lonnet::log($domain,$username,$authhost, @@ -161,9 +163,9 @@ sub success { $cookie="lonID=$cookie; path=/"; # -------------------------------------------------------- Menu script and info - my $windowinfo=&Apache::lonmenu::open(); + my $windowinfo=&Apache::lonmenu::open($clientos); # ------------------------------------------------------------- Info for Remote - my $configmenu=&Apache::lonmenu::rawconfig(); + my $configmenu=&Apache::lonmenu::rawconfig($r); # ------------------------------------------------- Output for successful login $r->send_cgi_header(<