\n";
print " | $text{'user_name'} | \n";
if ($in{'new'} || &get_postgresql_version() >= 7.4) {
print " | \n";
}
else {
print "$user[0] | \n";
}
print "$text{'user_passwd'} | \n";
if ($in{'new'}) {
# For new users, can select empty or specific password
print "",&ui_radio("pass_def", 1,
[ [ 1, $text{'user_none'} ],
[ 0, $text{'user_setto'} ] ]),"\n",
&ui_password("pass", undef, 20)," | \n";
}
else {
# For existing users, can select empty, leave unchanged or
# specific password
print "",&ui_radio("pass_def", 2,
[ [ 2, $text{'user_nochange'} ],
[ 0, $text{'user_setto'} ] ]),"\n",
&ui_password("pass", undef, 20)," | \n";
}
print " | $text{'user_db'} | \n";
printf " $text{'yes'}\n",
$user[2] =~ /t|1/ ? 'checked' : '';
printf " $text{'no'} | \n",
$user[2] =~ /t|1/ ? '' : 'checked';
print "$text{'user_other'} | \n";
printf " $text{'yes'}\n",
$user[4] =~ /t|1/ ? 'checked' : '';
printf " $text{'no'} | \n",
$user[4] =~ /t|1/ ? '' : 'checked';
print " | $text{'user_until'} | \n";
if (!$user[6]) {
printf " %s\n",
$user[6] ? '' : 'checked', $text{'user_forever'};
printf "\n",
$user[6] ? 'checked' : '';
}
print " | \n";
print " |