summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/newuser.cgi
diff options
context:
space:
mode:
authorjoanofarctangent@gmail.com <iduffe@dev.piny.svcs.cs.pdx.edu>2011-01-18 18:50:59 -0800
committerjoanofarctangent@gmail.com <iduffe@dev.piny.svcs.cs.pdx.edu>2011-01-18 18:50:59 -0800
commit666f8065cd416870d236ae2063dd836fb35d18a0 (patch)
tree4d7b21f103e7a75dfd4021ae2db44154ab41be61 /pinyweb/cgi-bin/newuser.cgi
parentd2ab0334d3239a2e67e80452918d93a3b7f212fb (diff)
downloadpiny-code-666f8065cd416870d236ae2063dd836fb35d18a0.tar.gz
piny-code-666f8065cd416870d236ae2063dd836fb35d18a0.zip
Committing half-finished changes to newuser.cgi because Jules is a jerk
Diffstat (limited to 'pinyweb/cgi-bin/newuser.cgi')
-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';