#!/usr/local/bin/perl
# edit_sync.cgi
# Display options for the automatic setting up of SSH for new users

require './sshd-lib.pl';
&header($text{'sync_title'}, "");
print "<hr>\n";

print "<form action=save_sync.cgi>\n";
print "$text{'sync_desc'}<p>\n";

printf "<input type=checkbox name=create value=1 %s> %s<br>\n",
	$config{'sync_create'} ? 'checked' : '', $text{'sync_create'};
printf "%s <input type=checkbox name=auth value=1 %s> %s<br>\n",
	("&nbsp;" x 5), $config{'sync_auth'} ? 'checked' : '', $text{'sync_auth'};
printf "%s <input type=checkbox name=pass value=1 %s> %s<p>\n",
	("&nbsp;" x 5), $config{'sync_pass'} ? 'checked' : '', $text{'sync_pass'};

#printf "<input type=checkbox name=gnupg value=1 %s> %s<p>\n",
#	$config{'sync_gnupg'} ? 'checked' : '', $text{'sync_gnupg'};

print "<input type=submit value='$text{'save'}'></form>\n";
print "<hr>\n";
&footer("", $text{'index_return'});

