#!/usr/bin/perl
# tta_status.cgi
# Display Status de los Servicios de Tarantella.
# STTA Rev. 1.3 Copyright (c) 2001-2002 Jesús Pérez Lorenzo  --- license GNU GPL 

 require './stta-lib.pl';
 &foreign_require("proc", "proc-lib.pl");

 &headerstta($text{'index_ttastatus'}, "", "ttastatus",undef,1,1,$text{headpage_rigth} );
 print "<hr><p>\n"; 
 print "<table width=100% border>\n";
 print "<tr $tb> <td><b>$text{'titidx_ttastatus'}</b></td> </tr>\n";
 print "<tr $cb> <td><table width=100%>\n";
 print "<tr><td><pre>\n";
       print "<pre>\n";
        $type_cmd="status";
        $str=$config{'tta_status'};
        if ( $str eq "" ) {
             print "<b>$text{'index_cmderr'}</b>\n"; 
        } else {
             &run_tta_cmd($str,$type_cmd);
        }
       print "</pre>\n";
# print "<hr>\n";
# print "<tr><center><b>-- oOo --</b></center></tr>\n";
 print "</table></table><p>\n";
 &footer($config{'back_return'},$text{'index'});
 do "footer.pl";
 exit;



