Author Topic: Registration Page  (Read 1339 times)

solemnwarning

  • Member
  • **
  • Posts: 747
  • Kudos: 338
    • http://www.solemnwarning.net
Registration Page
« on: 30 January 2005, 06:47 »
I Need To Make A 2 Register Pages 1. To Signup For EMail And 1 To Signup For Webhosting It Has To Execute Sever Commands On One Of My Servers, As Root

Also I Want The Server To Send A Confirmation EMail Containing A Link So That Scripts Cant AutoRegister, Or A Randomly Generated Image With A Number

HTML Form Fields:
txtuser, TextButton
txtpassword, TextBox
txtconfirmpass, TextBox
othermail, TextBox
realname, TextBox
sitename, TextBox (Only On Webhosting Signup)
Submit, Button

EMail Account Commands:

useradd -g 501 -d /mnt/temp/mailusers/$txtuser -s /sbin/nologin -p $txtpassword $txtuser
echo "[ $(date) ] $txtuser \t $txtpassword \t $realname \t $othermail" >> /mnt/temp/users/mails

Webhosting Commands:

useradd -g 502 -d /mnt/temp/www/$txtuser -s /sbin/nologin -p $txtpassword $txtuser
echo "[ $(date) ] $txtuser \t $txtpassword \t $realname \t $othermail" >> /mnt/temp/users/webhosts
mkdir /mnt/temp/www/$txtuser/httpdocs
mkdir /mnt/temp/www/$txtuser/cgi-bin
echo "Alias /$sitename/ /mnt/temp/www/$txtuser/httpdocs/" >> /etc/httpd/conf/httpd.conf
echo "ScriptAlias /$sitename/cgi-bin/ /mnt/temp/www/$txtuser/cgi-bin/" >> /etc/httpd/conf/httpd.conf
service httpd restart
mysqladmin create $txtuser"_db"
mysqlaccess -u $txtuser -p $txtpassword -h * -d $txtuser"_db"
service mysqld restart

im not sure if those commands are correct but i think they are :S

[ January 29, 2005: Message edited by: solemnwarning ]

-----BEGIN GEEK CODE BLOCK-----
 Version: 3.1
 GCS/CM d- s+:+ a--- C++ UL++++>$ P+ L+++ !E W++ !N !o !K-- w !O !M !V PS+ PE- !Y !PGP !t !5 !X !R tv b+ DI+ !D G e- h !r y-
 ------END GEEK CODE BLOCK------