#!/usr/local/bin/perl # index.cgi # Display main menu of GNUPG options require './gnupg-lib.pl'; &ui_print_header(undef, $text{'index_title'}, undef, undef, 0, 1); if (!&has_command($gpgpath)) { print &text('index_egpg', "$gpgpath"),"
\n";
&ui_print_footer("/", $text{'index'});
exit;
}
@keys = &list_keys();
if (!@keys) {
# Offer to setup GNUPG
if (&foreign_check("mailbox")) {
&foreign_require("mailbox", "mailbox-lib.pl");
($froms, $doms) = &mailbox::list_from_addresses();
$email = @$froms ? $froms->[0] : $remote_user."\@".
&get_system_hostname();
}
print "$text{'index_setupdesc'}
\n";
print "