#!/usr/local/bin/perl # list_auths.cgi # List public keys that are allowed to login to this account require './ssh-lib.pl'; &ui_print_header(undef, $text{'auths_title'}, ""); @links = ( "$text{'auths_add1'}", "$text{'auths_add2'}" ); print "$text{'auths_desc'}

\n"; @auths = &list_auths(); if (@auths) { print &ui_links_row(\@links); print &ui_columns_start([ $text{'auths_name'}, $text{'auths_key'} ]); foreach $a (@auths) { print &ui_columns_row([ "". "$a->{'name'}", "".substr($a->{'key'}, 0, 40)." ... ". substr($a->{'key'}, -40)."", ]); } print &ui_columns_end(); } else { print "$text{'auths_none'}

\n"; } print &ui_links_row(\@links); &ui_print_footer("", $text{'index_return'});