Sadduser version 0.4.0.2-sql

CHANGELOG:

22-08-08 Simon Horton <simon@sauron.org.uk>

	* NEW VERSION: 0.4.0.2-SQL
	- creation.pas:
	- Fixed bug to allow the correct userlines
	- user_new.userlines := string[1] -> string[3]

21-08-08 Simon Horton <simon@sauron.org.uk>

	* NEW VERSION: 0.4.0.1-SQL

	* sadduser.pas:
	- Commented out the code which still checked
	- for adduser.dat file.
	- This fixed the bug which caused Sadduser
	- to stop when the database file was not found
	- * NEED TO REMOVE CODE WHEN TESTED *

28-07-08 Simon Horton <simon@sauron.org.uk>

	* sadduser.ini:
	- Added admin mail section
	- MAIL_ADMIN_SUBJECT
	- MAIL_ADMIN_MESSAGE

	* data.pas:
	- Added to System_Config record
	- mail_template_location : string;
	- mail_admin_subject : string
	- mail_admin_address : string
	- mail_admin_message : string

	* mail.pas:
	- Added to Send_Mail
	- read mail template file, convert vars and
	- save to mail temp file.

	- Added function Send_Admin_Mail
	- Sends the sysop an email when the new user
	- is created.

	* sadduser.pas:
	- Added to new System_Config to INI read

28-07-08 Simon Horton <simon@sauron.org.uk>

	* data.pas:
	- added to System_Config record:
	- mail_user_subject : string[60];

	* sadduser.pas:
	- Added MAIL_USER_SUBJECT
	- to INI read config

	* mail.pp:
	- Added function Send_Mail;
	- Mails new user welcome message if requested, and
	- and mails sysop if set.

	- Added variables to user/admin mail
	- %USERNAME%
	- %FULLNAME%
	- %LOCATION%
	- %REMOTEHOST%
	- %EMAIL%


26-07-08 Simon Horton <simon@sauron.org.uk>

	* mail.pas: new unit
	- Mail routines for sending welcome mails to new users.
	- Options will be set in sadduser.ini

	* sadduser.ini:
	- Adding new SECTIONS:
	- [MAIL]
	- MAIL_USER_SUBJECT=

25-07-08 Simon Horton <simon@sauron.org.uk>

	* creation.pas:
	Added SQLDB unit to uses

	Changed function Get_User_Size()	
	- Moved to SQL DB
	- Stores SID of new users into NewUser[x].SID
	- Removed code which used adduser.dat

	Changed function Get_User_Info()
	- Moved to SQL DB
	- Removed code which used adduser.dat

	Changed function Check_For_Existing_User()
	- Added check SQL table user_data for existing users

	Change function Create_User_DB()
	- Moved to SQL DB 
	- Removed (DB_PATH : string) from function header
	- Removed create userinfo.data file
	- Removed code not required

	Moved Create_User_DB to start of creation process.
	- If SQL fails then the user will not be created in Linux.

	Added function Remove_User_SQL()
	- Removes the created user from SQL table user_signup 

	Remove function Open_Database
	Remove function Close_Database

	* data.pas:
	Added SignUpSID record -> var NewUser
	- Stores the SID numbers of new users from the SQL table
	- user_signup into an array[500]

	- Converted UserAccDB record to all strings;
	- Added 2 vars:
	- UserAccDB.RemoteHost
	- UserAccDB.SignUpTime

24-07-08 Simon Horton <simon@sauron.org.uk>
	
	* version: 
	New version to SQL 0.4.0.0-SQL

	* MAKEFILE: 
	Include *.sh fp.* to clean routinue

	* sadduser.ini: 
	Added SQL connection configuration
	- [SQL]
	- SQLSERVER=
	- SQLDB=
	- SQLUSER=
	- SQLPW=

	* data.pas:
	Added SQL pchar vars to System_Config record
	sql_server
	sql_db
	sql_user
	sql_pw     

	* sadduser.pas:
	Added SQL data to GetProfile for INI reading
	Added SQL data to debug output
	Added SQL connection/close routinue & debug output
