version 1.52, 2003/04/03 15:23:41
|
version 1.54, 2003/04/03 21:32:23
|
Line 67 ENDMAINMENU
|
Line 67 ENDMAINMENU
|
return $output."<hr />"; |
return $output."<hr />"; |
} elsif ($ENV{'environment.remote'} eq 'off') { |
} elsif ($ENV{'environment.remote'} eq 'off') { |
# Remote Control is switched off |
# Remote Control is switched off |
|
my $escurl=&Apache::lonnet::escape($ENV{'REQUEST_URI'}); |
my $output=(<<ENDINLINEMENU); |
my $output=(<<ENDINLINEMENU); |
<script> |
<script> |
// BEGIN LON-CAPA Internal |
// BEGIN LON-CAPA Internal |
</script> |
</script> |
|
<table bgcolor="#AAAAAA" width="100%" border="2"><tr><td> |
<a href="/adm/menu" target="_top">Main Menu</a> |
<a href="/adm/menu" target="_top">Main Menu</a> |
<a href="/adm/remote?action=launch" target="_top">Launch Remote Control</a> |
<a href="/adm/remote?action=launch&url=$escurl" target="_top">Launch Remote Control</a> |
|
<br /> |
<script> |
<script> |
// END LON-CAPA Internal |
// END LON-CAPA Internal |
</script> |
</script> |
ENDINLINEMENU |
ENDINLINEMENU |
if ($registration) { $output.=&innerregister($forcereg,$target); } |
if ($registration) { $output.=&innerregister($forcereg,$target); } |
return $output."<hr />"; |
return $output."</td></tr></table>"; |
} else { |
} else { |
return ''; |
return ''; |
} |
} |
Line 98 sub registerurl {
|
Line 101 sub registerurl {
|
"\n</script>\n"; |
"\n</script>\n"; |
} |
} |
if (($ENV{'browser.interface'} eq 'textual') || |
if (($ENV{'browser.interface'} eq 'textual') || |
|
($ENV{'environment.remote'} eq 'off') || |
((($ENV{'request.publicaccess'}) || |
((($ENV{'request.publicaccess'}) || |
(!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) && |
(!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) && |
(!$forcereg))) { |
(!$forcereg))) { |
Line 704 sub handler {
|
Line 708 sub handler {
|
$r->send_http_header; |
$r->send_http_header; |
return OK if $r->header_only; |
return OK if $r->header_only; |
|
|
my $utility=&utilityfunctions(); |
|
my $form=&serverform(); |
my $form=&serverform(); |
my $bodytag=&Apache::loncommon::bodytag('Main Menu'); |
my $bodytag=&Apache::loncommon::bodytag('Main Menu'); |
# ------------------------------------------------------------ Print the screen |
# ---- Print the screen, pretent to be in text mode to generate text-based menu |
|
unless ($ENV{'brower.interface'} eq 'textual') { |
|
$ENV{'environment.remote'}='off'; |
|
} |
|
my $utility=&utilityfunctions(); |
$r->print(<<ENDHEADER); |
$r->print(<<ENDHEADER); |
<html><head> |
<html><head> |
<title>LON-CAPA Main Menu</title> |
<title>LON-CAPA Main Menu</title> |