--- loncom/cgi/takeoffline.pl 2009/01/06 08:08:44 1.5
+++ loncom/cgi/takeoffline.pl 2015/03/11 03:33:22 1.6.12.1
@@ -2,7 +2,7 @@
$|=1;
# Take machine offline, reroute traffic
#
-# $Id: takeoffline.pl,v 1.5 2009/01/06 08:08:44 raeburn Exp $
+# $Id: takeoffline.pl,v 1.6.12.1 2015/03/11 03:33:22 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -31,6 +31,7 @@ use strict;
use lib '/home/httpd/lib/perl/';
use Apache::lonlocal;
use Apache::loncommon;
+use Apache::lonnet;
use LONCAPA::loncgi;
use LONCAPA::lonauthcgi;
@@ -62,6 +63,7 @@ sub main {
} else {
my $js = < '.&mt("When a LON-CAPA server is 'taken offline' using this utility, the standard log-in page will be replaced with one of the following:").
+ print ' '.&mt("When a LON-CAPA server is 'taken offline' using this utility, the standard log-in page will be replaced with one of the following:").''.&Apache::lonlocal::mt('Take Offline').'
';
my ($is_dc,@okmachines,%servers);
my @poss_domains = &Apache::lonnet::current_machine_domains();
@@ -100,14 +102,14 @@ sub phaseone {
}
my $ip = $ENV{'REMOTE_ADDR'};
my $lonhost = $Apache::lonnet::perlvar{'lonHostID'};
- print '
'.&mt("Once a server is offline, the [_1]'take online'[_2] utility can be used to reverse this, but you should verify that you will still be able to access that script once the server is in an offline state.",'','').'
'; - print ''.&mt("In common with other Domain Status pages the 'take online' script is accessible from certain IP addresses:").'
'.&mt("In common with other Domain Status pages the 'take online' script is accessible from certain IP addresses:").'
'.
- &mt("Once the server is offline you will not be able to log-in directly to select a Domain Coordinator role to use the 'Take online' script, unless IP-based controls provide your access.").'
'.&mt("However, you will be able to log-in to a different server in the LON-CAPA network, select a Domain Coordinator role in this server's domain, and then use: [_1] to migrate you session to this machine.","
/adm/switchserver?otherserver=$lonhost").'
'.
+ &mt("Once the server is offline you will not be able to log-in directly to select a Domain Coordinator role to use the 'Take online' script, unless IP-based controls provide your access.").'
'.&mt("However, you will be able to log-in to a different server in the LON-CAPA network, select a Domain Coordinator role in this server's domain, and then use: [_1] to migrate you session to this machine.","
/adm/switchserver?otherserver=$lonhost").'