die ();
}
//include("databaseconn.php"); // Code Commented by chandan 29 Jan 2010
include("../databaseconnversion3.php"); // Code Added by chandan 29 Jan 2010
$login = $_POST['login'];
if($login=="Login")
{
$uname = $_POST['uname'];
$password = $_POST['txtpassword'];
$sql_login = "select * from hoa_community_registration where STRCMP(community_admin_username,'$uname')=0 and STRCMP(community_admin_password,'$password')=0 and IsActive=0";
//echo $sql_login;
//die();
$rs_login = mysql_query($sql_login);
if( mysql_num_rows ($rs_login) > 0)
{
$record_login = mysql_fetch_array($rs_login);
$community_id = $record_login[‘hoa_community_id’];
// echo $community_id;
//die();
if($community_id !=””)
{
$COMMUNITY_ADMIN_MODE = “CommunityAdmin” ;
$_SESSION[“COMMUNITY_ADMIN_MODE”] = $COMMUNITY_ADMIN_MODE ;
$_SESSION[“$COMMUNITY_ADMIN_MODE”];
$_SESSION[“COMMUNITY_ID”]= $community_id ;
$_SESSION[“PACKAGE_USER_NAME”]= $PACKAGE_USER_NAME;
//header(“location:select_template.php?community_id=$community_id”);
//header(“Location:create_websiteProcessNEW.php?community_id=$community_id”);
echo ““;
}
else
{
header(“location:/community-admin-login”);
}
}
else
{
echo ““;
}
}
?>