From 666f8065cd416870d236ae2063dd836fb35d18a0 Mon Sep 17 00:00:00 2001 From: "joanofarctangent@gmail.com" Date: Tue, 18 Jan 2011 18:50:59 -0800 Subject: Committing half-finished changes to newuser.cgi because Jules is a jerk --- pinyweb/cgi-bin/newuser.cgi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'pinyweb/cgi-bin/newuser.cgi') 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' ), "
"; +print label( { -for => 'email' }, "Email Address: " ), textfield( -name => 'email' ), "
"; -print( "Content-type: text/plain\n\n" ); +print "

"; +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'; -- cgit v1.2.3