#!/usr/bin/perl # # New user script # # This script gets called from a web form where users apply for usership # on your server. It creates a executable file that you as admin can # just run and the user gets created without headaches. $| = 1; if ($ENV{'REQUEST_METHOD'} eq 'POST') { $base="/hamster/home"; chop($date = `date`); chop($ddd = `date +\%j\%H\%M`); print "Content-type: text/html\n\n"; print <<"HTML";
Oh boy! You cannot even complete a form! How do you think it makes you look? At least fill in a Full name and one username, else this form is useless!
Please take some time and consider if you are really capable of using a computer and if you should apply for usership. If your previous attempt to fill in a form turned out like this then we do not consider you a good canidate. Take a deep breath. Use your browsers BACK button and try again!
If we think that the IP $contents{'remoteip'} that you appear to work from is not in our domain, extra effort will be made to ensure that you are in fact a valid applicant.
This is how your details will appear to others:
Name | $contents{'fname'} HTML if ($contents{'addtitle'} eq 'addmytitle') { print <<"HTML"; ,$contents{'title'} HTML } else { ; } print <<"HTML"; $contents{'fname'} |
Office | $contents{'office'} |
Username choices: | $contents{'sname1'}, $contents{'sname2'} or $contents{'sname3'} |
Work Tel: $contents{'wtel'} | Home Tel: $contents{'htel'} |
Stud/ID number: | $contents{'idnum'} |
Birthdate: | $contents{'bidate'} |
You will most probably granted the first choice of username, unless it clashes with an existing name, is too short or too close to a swearing word.
PLEASE PHONE netadmin at 555-5555 to arrange a password for your account $contents{'reff'} is your reference person or study leader that will be contacted at email address $contents{'refmail'}. Your account might be stopped if the reference person does not know you or give us a good reason to do so.
Reason why you would like to be a network user:
$contents{'whyi'}
You rate yourself a $contents{'skill'} computer user that will be using $contents{'os'} as your primary operating system. You also have some knowlage on $contents{'oos1'} $contents{'oos2'} $contents{'oos3'} $contents{'oos4'} $contents{'oos5'} $contents{'oos6'} $contents{'oos7'} $contents{'oos8'} $contents{'oos9'}
Please read the section on operating systems carefully to give you a broader understanding on how to connect to the network. HTML if ($contents{'helpme'} eq 'yes') { print <<"HTML"; You are also interrested in giving a helping hand with network related problems. Good! As soon as there is a problem near you, you will be seen as the solution. We'll keep in touch. HTML } else { ; } print <<"HTML";
Your feedback on the questionaire will be stored in a database for future refference. These details will give us direction on how to expand the network services.
You rate the following services:
E-Mail and other communication tools: | $contents{'s1'} |
WWW for info search and research: | $contents{'s2'} |
Wordprocessing and office based work: | $contents{'s3'} |
Cruising internet for fun and pleasure | $contents{'s4'} |
Engineering apps CADCAM, PCB etc. | $contents{'s5'} |
Shareware source | $contents{'s6'} |
Programming apps, VisC, Pascal, VB etc | $contents{'s7'} |
Storage of files and userdata | $contents{'s8'} |
Exam results electronic lecture notes. | $contents{'s9'} |
You would like to see the following services at Our Site (Let's pray together that it will happen soon...):
$contents{'future'}
You think that $contents{'numstaff'} staff member(s) is/are needed to maintain our network.
According to you an amount of $contents{'hypopay'} is fair for a network account per year, as long as you can get the no $contents{'hserv'} service you asked for.
Follow this link to get more detailed information on the services and how to make use of it.