///////////// ///////////// ///////////// /////////////
//Login and Database Access class.
//Developed by Khadim Naby , Modified by Raja Shahzad Naveed.
Discription: This package contains login class and database operations classes.
code samples have been provided for different database queries(insert,delete,update,select).
some usefull functions included in the package are :
**********************
function GetUSStatesArray($AddSelect=true);
function createRandomPassword();
function ValidEmail($email);
function GetDuration($TimeGivenInSecands,$time=true,$valueTbc='2');
function GetScriptName();
function GetFileName();
function StartSessionIfNot();
function RedirectTo($URL,$AndExit=true);
function GetServerName();
function GetHostName();
function GetCurrenURL();
function GetReferer();
function GetFormGet($VarName);
function GetIP();
***********************
Steps To Setup up the Class.
1- Change the config.php according to your Server Configurations.
2- Setup your "login table" and "Query to your table" in
includes\agentLogin.class.php
3- PreSqlFunctions.php and EasyFunctions.php contains some commenly
used functions (check them out , they might help in developement)
4- defaultFunx.php contains code samples for select, update, delete and insert
queries.
5- Last change :make a folder "includes" where ur all files are , and cut and paste
following fiels in to it .
agentLogin.class.php
dbConnection.php
defaultFunx.php
EasyFunctions.php
PreSqlFunctions.php
SqlFunctions.php
or change all the Includes in the remaining files :)
|