#!/usr/local/bin/perl # edit_known.cgi # Edit or create a known host require './ssh-lib.pl'; &ReadParse(); if ($in{'new'}) { &ui_print_header(undef, $text{'known_create'}, ""); $msg = $text{'known_desc1'}; } else { &ui_print_header(undef, $text{'known_edit'}, ""); @knowns = &list_knowns(); $known = $knowns[$in{'idx'}]; } # Show main key details print "$msg
\n" if ($msg); print "
\n"; &ui_print_footer("list_knowns.cgi", $text{'knowns_return'}, "", $text{'index_return'});