#!/usr/local/bin/perl # user_form.cgi # Display a form for creating a new user require './cluster-useradmin-lib.pl'; use Time::Local; &ReadParse(); &foreign_require("useradmin", "user-lib.pl"); &ui_print_header(undef, $text{'uedit_title2'}, ""); @hosts = &list_useradmin_hosts(); @servers = &list_servers(); # build list of used shells and uids foreach $h (@hosts) { foreach $u (@{$h->{'users'}}) { push(@shlist, $u->{'shell'}) if ($u->{'shell'}); $used{$u->{'uid'}}++; } foreach $g (@{$h->{'groups'}}) { push(@glist, $g) if (!$donegroup{$g->{'group'}}++); } } open(SHELLS, ") { s/\r|\n//g; s/#.*$//; push(@shlist, $_) if (/\S/); } close(SHELLS); print "
\n"; &ui_print_footer("", $text{'index_return'}); # date_input(day, month, year, prefix) sub date_input { print ""; print "/"; print "/"; print &date_chooser_button("$_[3]d", "$_[3]m", "$_[3]y"); }