version 1.46, 2003/08/25 15:24:43
|
version 1.49, 2003/09/11 20:54:11
|
Line 40 use Apache::Constants qw(:common);
|
Line 40 use Apache::Constants qw(:common);
|
use Apache::File (); |
use Apache::File (); |
use Apache::lonnet(); |
use Apache::lonnet(); |
use Apache::loncommon(); |
use Apache::loncommon(); |
|
use Apache::lonauth(); |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 49 sub handler {
|
Line 50 sub handler {
|
return OK if $r->header_only; |
return OK if $r->header_only; |
|
|
|
|
|
# Are we re-routing? |
|
if (-e '/home/httpd/html/lon-status/reroute.txt') { |
|
&Apache::lonauth::reroute($r); |
|
return OK; |
|
} |
|
|
&Apache::loncommon::get_unprocessed_cgi |
&Apache::loncommon::get_unprocessed_cgi |
($ENV{'QUERY_STRING'}.'&'.$ENV{'request.querystring'}, |
($ENV{'QUERY_STRING'}.'&'.$ENV{'request.querystring'}, |
['interface','username','domain','firsturl','localpath','localres']); |
['interface','username','domain','firsturl','localpath','localres']); |
Line 109 sub handler {
|
Line 116 sub handler {
|
# ---------------------------------------- Are we access server and overloaded? |
# ---------------------------------------- Are we access server and overloaded? |
if (($role eq 'access') && |
if (($role eq 'access') && |
(($userloadpercent>100.0)||($loadpercent>100.0))) { |
(($userloadpercent>100.0)||($loadpercent>100.0))) { |
$otherserver=Apache::lonnet::spareserver($loadpercent,$userloadpercent); |
my $unloaded=Apache::lonnet::spareserver($loadpercent,$userloadpercent); |
|
if ($unloaded) { $otherserver=$unloaded; } |
} |
} |
|
|
# ----------------------------------------------------------- Get announcements |
# ----------------------------------------------------------- Get announcements |
Line 169 ENDTROUBLE
|
Line 177 ENDTROUBLE
|
|
|
# ----------------------------------------------- Apparently we are in business |
# ----------------------------------------------- Apparently we are in business |
|
|
my $domainlogo=&Apache::loncommon::domainlogo(); |
my $domainlogo=&Apache::loncommon::domainlogo($domain); |
$servadm=~s/\,/\<br \/\>/g; |
$servadm=~s/\,/\<br \/\>/g; |
$sysadm=~s/\,/\<br \/\>/g; |
$sysadm=~s/\,/\<br \/\>/g; |
|
|