45 lines
1.5 KiB
Perl
Executable File
45 lines
1.5 KiB
Perl
Executable File
#!/usr/bin/perl
|
|
# stta_warn.cgi
|
|
# ... Services with Tarantella.
|
|
# STTA Rev. 1.3 Copyright (c) 2001-2004 Jesús Pérez Lorenzo --- license GNU GPL
|
|
# stta: (@#) 1.31051043346- [2004_01_29_102036]
|
|
|
|
require './stta-lib.pl';
|
|
$config{iferror_services}="warn";
|
|
&headerstta($text{'index_warn'}, "", "",undef,1,0,"$text{'headpage_right'}"."$text{'head_logout'}",&restart_button(),undef,"$text{head_below}");
|
|
|
|
&ReadParse();
|
|
|
|
$cgi = $in{cgi};
|
|
$msg = $in{msg};
|
|
|
|
print "<hr><p>\n";
|
|
print "<table width=100% border>\n";
|
|
print "<tr $tb> <td><font color='$revtext'><b>";
|
|
if ( $cgi) { print $text{'config_eaccess'}; }
|
|
else { print $text{'titidx_warn'};}
|
|
print "</b></td> </tr>\n";
|
|
print "<tr $cb> <td><table width=100%>\n";
|
|
|
|
print "<h1> <font color='#000099'>$text{chk_srv_title} ...</font></h1></center>";
|
|
print "<center>";
|
|
#print "<p><img SRC='images/duke_warn.gif' height=258 width=390></center>";
|
|
print "<p><img align=top SRC='images/duke_warn.gif'></center><hr>";
|
|
if ( $msg) { print "<tr><td><h2> <font color='#000099'><b>$msg</b></font></h2></td></tr><tr>\n";}
|
|
if ( $cgi) {
|
|
if ($debug gt 0 ) {print "<tr><td><h2> <font color='#000099'><b>".&text('noacl_cgi',$cgi)."</b></font></h2></td></tr><tr>\n";}
|
|
}
|
|
$text_str="";
|
|
&checkSTTA_services("all","status",\$text_str);
|
|
$text_str=~s/STTA:/<tr><td><li>/g;
|
|
$text_str=~s/\n/<\/b><\/td><\/tr>/g;
|
|
$text_str=~s/==/<td><b>/g;
|
|
print $text_str;
|
|
print "<tr><tr>\n";
|
|
|
|
print "</table></table>\n";
|
|
&footer($config{'back_return'},$text{'index'});
|
|
do "footer.pl";
|
|
exit;
|
|
|