#!/usr/local/bin/perl
# index.cgi
# Display main menu of SSH client/login option types
require './ssh-lib.pl';
&ui_print_header(undef, $text{'index_title'}, undef, undef, 0, 1);
if (!&has_command("ssh")) {
print &text('index_essh', "ssh"),"
\n";
&ui_print_footer("/", $text{'index'});
exit;
}
if (!-d $ssh_directory) {
# Offer to setup SSH
print "
\n";
}
else {
# Show table of options
@links = ( "list_auths.cgi", "list_knowns.cgi",
"edit_keys.cgi", "list_hosts.cgi" );
@titles = ( $text{'auths_title'}, $text{'knowns_title'},
$text{'keys_title'}, $text{'hosts_title'} );
@icons = ( "images/auths.gif", "images/knowns.gif",
"images/keys.gif", "images/hosts.gif" );
&icons_table(\@links, \@titles, \@icons);
}
&ui_print_footer("/", $text{'index'});