summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin
diff options
context:
space:
mode:
Diffstat (limited to 'pinyweb/cgi-bin')
-rw-r--r--pinyweb/cgi-bin/newuser.cgi16
1 files changed, 11 insertions, 5 deletions
diff --git a/pinyweb/cgi-bin/newuser.cgi b/pinyweb/cgi-bin/newuser.cgi
index 002d2be..7001321 100644
--- a/pinyweb/cgi-bin/newuser.cgi
+++ b/pinyweb/cgi-bin/newuser.cgi
@@ -2,15 +2,21 @@
$| = 1;
use warnings;
-
-use CGI;
-
+use CGI qw/:standard *p/;
use IPC::Open2;
-$q = CGI->new;
+print header( -type => 'text/html' ), start_html( -title => 'piny-web: Create User'), h1('Create User');
+print start_form( -name => 'newuser_form' );
+print start_p, "Enter a username and valid email address for the new user. Please remember that the username may only contain alphanumerics, underscores, periods, and dashes. The username may not begin with a dash, nor may it begin with the strings 'git-' or 'ikiwiki-'.", end_p;
+
+print start_p;
+print label( { -for => 'username' }, "Username: " ), textfield( -name => 'username' ), "<br />";
+print label( { -for => 'email' }, "Email Address: " ), textfield( -name => 'email' ), "<br />";
-print( "Content-type: text/plain\n\n" );
+print "</p>";
+print end_form, end_html;
+=for temporarily commenting this out until i can get the base page to show up
if( $q->param('n') && $q->param('a') && $q->param('p') ) {
unless( open2( OUT, IN, '/usr/bin/sudo', '/usr/sbin/newuser', '--batch', $q->param('a'), $q->param('n') ) ) {
print 'could not execute newrepo';