#!/usr/bin/perl
# index.cgi
# Display a list of links for various types of global configuration
# Rev 1.0 8/8/2001

require './tarantella-lib.pl';
&ReadParse(); 

&header($text{'index_title'}, "", undef, 1, 1, undef, &restart_button()."<br>"."");
# check for the base directory
if (!(-d $config{'tta_dir'})) {
	&header($text{'index_title'}, "", undef, 1, 1);
	print "<hr><p>\n";
	print &text('index_eroot', "<tt>$config{'tta_dir'}</tt>",
		    "/config.cgi?$module_name"),"<p>\n";
	print "<hr>\n";
	&footer("/", $text{'index'});
	exit;
	}

# check for the executable
if (!-x $config{'tta_daemon'} || -d $config{'tta_daemon'}) {
	&header($text{'index_title'}, "", undef, 1, 1);
	print "<hr><p>\n";
	print &text('index_eserver', "<tt>$config{'tta_daemon'}</tt>",
		    "/config.cgi?$module_name"),"<p>\n";
	print "<hr>\n";
	&footer("/", $text{'index'});
	exit;
	}
do "index/master.pl";
$interface=$config{'interface'}; 
        if ($interface eq "tabs" ) {
            do "index/index_tabs.pl";
        } else {
            $out_titles=1;    
            do "index/index_table.pl";
        }
do "footer.pl";
