1 |
######################################################################## |
######################################################################## |
|
use CGI; |
|
|
|
|
|
|
|
|
if (-f "$FIG_Config::data/Global/why_down") |
|
|
{ |
|
|
local $/; |
|
|
open my $fh, "<$FIG_Config::data/Global/why_down"; |
|
|
my $down_msg = <$fh>; |
|
|
|
|
|
print CGI::header(); |
|
|
print CGI::head(CGI::title("SEED Server down")); |
|
|
print CGI::start_body(); |
|
|
print CGI::h1("SEED Server down"); |
|
|
print CGI::p("The seed server is not currently running:"); |
|
|
print CGI::pre($down_msg); |
|
|
print CGI::end_body(); |
|
|
exit; |
|
|
} |
|
|
|
|
|
if ($FIG_Config::readonly) |
|
|
{ |
|
|
CGI::param("user", undef); |
|
|
} |
|
|
######################################################################## |
|
|
use CGI; |
|
|
|
|
|
|
|
|
if (-f "$FIG_Config::data/Global/why_down") |
|
|
{ |
|
|
local $/; |
|
|
open my $fh, "<$FIG_Config::data/Global/why_down"; |
|
|
my $down_msg = <$fh>; |
|
|
|
|
|
print CGI::header(); |
|
|
print CGI::head(CGI::title("SEED Server down")); |
|
|
print CGI::start_body(); |
|
|
print CGI::h1("SEED Server down"); |
|
|
print CGI::p("The seed server is not currently running:"); |
|
|
print CGI::pre($down_msg); |
|
|
print CGI::end_body(); |
|
|
exit; |
|
|
} |
|
|
|
|
|
if ($FIG_Config::readonly) |
|
|
{ |
|
|
CGI::param("user", undef); |
|
|
} |
|
|
######################################################################## |
|
2 |
# -*- perl -*- |
# -*- perl -*- |
3 |
# |
# |
4 |
# Copyright (c) 2003-2006 University of Chicago and Fellowship |
# Copyright (c) 2003-2006 University of Chicago and Fellowship |